Changeset bfd7aac in mainline for uspace/srv
- Timestamp:
- 2010-02-17T19:19:08Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1e2e0c1e
- Parents:
- 01a9ef5 (diff), b8da2a3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/srv
- Files:
-
- 6 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/Makefile.build
r01a9ef5 rbfd7aac 72 72 73 73 ifeq ($(UARCH),sparc64) 74 SOURCES += sgcn.c \ 75 serial_console.c 76 CFLAGS += -DSGCN_ENABLED 74 ifeq ($(PROCESSOR), sun4v) 75 SOURCES += niagara.c \ 76 serial_console.c 77 CFLAGS += -DNIAGARA_ENABLED 78 endif 79 80 ifeq ($(MACHINE), serengeti) 81 SOURCES += sgcn.c \ 82 serial_console.c 83 CFLAGS += -DSGCN_ENABLED 84 endif 77 85 endif 78 86 -
uspace/srv/hid/fb/main.c
r01a9ef5 rbfd7aac 41 41 #include "ski.h" 42 42 #include "sgcn.h" 43 #include "niagara.h" 43 44 #include "main.h" 44 45 … … 88 89 } 89 90 #endif 91 #ifdef NIAGARA_ENABLED 92 if ((!initialized) && (sysinfo_value("fb.kind") == 5)) { 93 if (niagara_init() == 0) 94 initialized = true; 95 } 96 #endif 90 97 #ifdef SKI_ENABLED 91 98 if ((!initialized) && (sysinfo_value("fb") != true)) { -
uspace/srv/hid/kbd/Makefile.build
r01a9ef5 rbfd7aac 130 130 131 131 ifeq ($(UARCH),sparc64) 132 ifeq ($( MACHINE),serengeti)132 ifeq ($(PROCESSOR),sun4v) 133 133 SOURCES += \ 134 port/ sgcn.c \134 port/niagara.c \ 135 135 ctl/stty.c 136 136 else 137 SOURCES += \ 137 ifeq ($(MACHINE),serengeti) 138 SOURCES += \ 139 port/sgcn.c \ 140 ctl/stty.c 141 endif 142 ifeq ($(MACHINE),generic) 143 SOURCES += \ 138 144 port/sun.c \ 139 145 port/z8530.c \ 140 146 port/ns16550.c \ 141 147 ctl/sun.c 148 endif 142 149 endif 150 endif 151 152 ifeq ($(UARCH),abs32le) 153 SOURCES += \ 154 port/dummy.c \ 155 ctl/pc.c 143 156 endif 144 157 -
uspace/srv/loader/include/arch.h
r01a9ef5 rbfd7aac 37 37 #define LOADER_ARCH_H_ 38 38 39 void program_run(void *entry_point, void *pcb);39 extern void program_run(void *entry_point, void *pcb); 40 40 41 41 #endif -
uspace/srv/net/Makefile.module
r01a9ef5 rbfd7aac 35 35 36 36 CFLAGS += -Iinclude -I../libadt/include 37 CFLAGS += -Wno-strict-aliasing 37 38 38 39 CHECK_CFLAGS = -fsyntax-only -Wextra -Wno-div-by-zero -Wsystem-headers -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wshadow -Wlarger-than-1500 -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Wunreachable-code -Winline -Winvalid-pch -Wlong-long -Wvariadic-macros -Wdisabled-optimization -Wno-pointer-sign -
uspace/srv/net/include/byteorder.h
r01a9ef5 rbfd7aac 39 39 40 40 #include <byteorder.h> 41 42 41 #include <sys/types.h> 43 42 44 #ifdef ARCH_IS_BIG_ENDIAN45 43 46 // Already in the network byte order. 44 /** Converts the given short number ( 16 bit ) from the host byte order to the network byte order ( big endian ). 45 * @param[in] number The number in the host byte order to be converted. 46 * @returns The number in the network byte order. 47 */ 48 #define htons( number ) host2uint16_t_be( number ) 47 49 48 /** Converts the given short number ( 16bit ) from the host byte order to the network byte order ( big endian ).49 50 51 52 #define htons( number )( number )50 /** Converts the given long number ( 32 bit ) from the host byte order to the network byte order ( big endian ). 51 * @param[in] number The number in the host byte order to be converted. 52 * @returns The number in the network byte order. 53 */ 54 #define htonl( number ) host2uint32_t_be( number ) 53 55 54 /** Converts the given long number ( 32 bit ) from the host byte order to the network byte order ( big endian ).55 * @param[in] number The number in the hostbyte order to be converted.56 * @returns The number in the networkbyte order.57 58 #define htonl( number )( number )56 /** Converts the given short number ( 16 bit ) from the network byte order ( big endian ) to the host byte order. 57 * @param[in] number The number in the network byte order to be converted. 58 * @returns The number in the host byte order. 59 */ 60 #define ntohs( number ) uint16_t_be2host( number ) 59 61 60 /** Converts the given short number ( 16 bit ) from the network byte order ( big endian ) to the host byte order. 61 * @param[in] number The number in the network byte order to be converted. 62 * @returns The number in the host byte order. 63 */ 64 #define ntohs( number ) ( number ) 65 66 /** Converts the given long number ( 32 bit ) from the network byte order ( big endian ) to the host byte order. 67 * @param[in] number The number in the network byte order to be converted. 68 * @returns The number in the host byte order. 69 */ 70 #define ntohl( number ) ( number ) 71 72 #else 73 74 // Has to be swapped. 75 76 /** Converts the given short number ( 16 bit ) from the host byte order to the network byte order ( big endian ). 77 * @param[in] number The number in the host byte order to be converted. 78 * @returns The number in the network byte order. 79 */ 80 #define htons( number ) uint16_t_byteorder_swap(( uint16_t )( number )) 81 82 /** Converts the given long number ( 32 bit ) from the host byte order to the network byte order ( big endian ). 83 * @param[in] number The number in the host byte order to be converted. 84 * @returns The number in the network byte order. 85 */ 86 #define htonl( number ) uint32_t_byteorder_swap( number ) 87 88 /** Converts the given short number ( 16 bit ) from the network byte order ( big endian ) to the host byte order. 89 * @param[in] number The number in the network byte order to be converted. 90 * @returns The number in the host byte order. 91 */ 92 #define ntohs( number ) uint16_t_byteorder_swap(( uint16_t )( number )) 93 94 /** Converts the given long number ( 32 bit ) from the network byte order ( big endian ) to the host byte order. 95 * @param[in] number The number in the network byte order to be converted. 96 * @returns The number in the host byte order. 97 */ 98 #define ntohl( number ) uint32_t_byteorder_swap( number ) 99 100 #endif 62 /** Converts the given long number ( 32 bit ) from the network byte order ( big endian ) to the host byte order. 63 * @param[in] number The number in the network byte order to be converted. 64 * @returns The number in the host byte order. 65 */ 66 #define ntohl( number ) uint32_t_be2host( number ) 101 67 102 68 #endif -
uspace/srv/net/modules.c
r01a9ef5 rbfd7aac 55 55 56 56 int connect_to_service_timeout( services_t need, suseconds_t timeout ){ 57 i ntphone;58 int 57 ipcarg_t phone; 58 int res; 59 59 60 60 while( true ){ 61 res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, ( ipcarg_t * )& phone );62 if( ( res >= 0 ) && ( phone >= 0 )){61 res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, & phone ); 62 if( res >= 0 ){ 63 63 return phone; 64 64 } -
uspace/srv/net/netif/dp8390/dp8390.h
r01a9ef5 rbfd7aac 353 353 port_t de_data_port; 354 354 int de_16bit; 355 intde_ramsize;355 long de_ramsize; 356 356 int de_offset_page; 357 357 int de_startpage; -
uspace/srv/net/netif/dp8390/dp8390_module.c
r01a9ef5 rbfd7aac 208 208 } 209 209 210 int netif_probe_message( device_id_t device_id, int irq, int io ){210 int netif_probe_message( device_id_t device_id, int irq, uintptr_t io ){ 211 211 ERROR_DECLARE; 212 212 … … 280 280 if( device->state != NETIF_ACTIVE ){ 281 281 dep = ( dpeth_t * ) device->specific; 282 dp8390_cmds[ 0 ].addr = ( void * ) ( uint 32_t ) ( dep->de_dp8390_port + DP_ISR );282 dp8390_cmds[ 0 ].addr = ( void * ) ( uintptr_t ) ( dep->de_dp8390_port + DP_ISR ); 283 283 dp8390_cmds[ 2 ].addr = dp8390_cmds[ 0 ].addr; 284 284 ERROR_PROPAGATE( ipc_register_irq( dep->de_irq, device->device_id, device->device_id, & dp8390_code )); -
uspace/srv/net/netif/dp8390/dp8390_port.h
r01a9ef5 rbfd7aac 169 169 /** Type definition of a port. 170 170 */ 171 typedef intport_t;171 typedef long port_t; 172 172 173 173 /* dl_eth.h */ … … 256 256 /** Type definition of the virtual addresses and lengths in bytes. 257 257 */ 258 typedef unsigned intvir_bytes;258 typedef unsigned long vir_bytes; 259 259 260 260 /** Type definition of the input/output vector. -
uspace/srv/net/netif/lo/lo.c
r01a9ef5 rbfd7aac 165 165 } 166 166 167 int netif_probe_message( device_id_t device_id, int irq, int io ){167 int netif_probe_message( device_id_t device_id, int irq, uintptr_t io ){ 168 168 ERROR_DECLARE; 169 169 -
uspace/srv/net/netif/netif_module.h
r01a9ef5 rbfd7aac 60 60 * @returns Other error codes as defined for the specific module message implementation. 61 61 */ 62 int netif_probe_message( device_id_t device_id, int irq, int io );62 int netif_probe_message( device_id_t device_id, int irq, uintptr_t io ); 63 63 64 64 /** Sends the packet queue. -
uspace/srv/net/socket/socket_client.c
r01a9ef5 rbfd7aac 541 541 socket_ref new_socket; 542 542 aid_t message_id; 543 int result; 543 ipcarg_t ipc_result; 544 int result; 544 545 ipc_call_t answer; 545 546 … … 592 593 ipc_data_read_start( socket->phone, cliaddr, * addrlen ); 593 594 fibril_rwlock_write_unlock( & socket_globals.lock ); 594 async_wait_for( message_id, ( ipcarg_t * ) & result ); 595 async_wait_for( message_id, & ipc_result ); 596 result = (int) ipc_result; 595 597 if( result > 0 ){ 596 598 if( result != socket_id ){ … … 734 736 socket_ref socket; 735 737 aid_t message_id; 736 int result; 738 ipcarg_t ipc_result; 739 int result; 737 740 size_t fragments; 738 741 size_t * lengths; … … 793 796 } 794 797 } 795 async_wait_for( message_id, ( ipcarg_t * ) & result ); 798 async_wait_for( message_id, & ipc_result ); 799 result = (int) ipc_result; 796 800 // if successful 797 801 if( result == EOK ){ -
uspace/srv/net/structures/packet/packet_remote.c
r01a9ef5 rbfd7aac 65 65 ERROR_DECLARE; 66 66 67 unsigned intsize;67 ipcarg_t size; 68 68 packet_t next; 69 69 … … 101 101 ERROR_DECLARE; 102 102 103 packet_id_tpacket_id;104 unsigned int size;103 ipcarg_t packet_id; 104 ipcarg_t size; 105 105 packet_t packet; 106 106 107 if( ERROR_OCCURRED( async_req_4_2( phone, NET_PACKET_CREATE_4, max_content, addr_len, max_prefix, max_suffix, ( ipcarg_t * )& packet_id, & size ))){107 if( ERROR_OCCURRED( async_req_4_2( phone, NET_PACKET_CREATE_4, max_content, addr_len, max_prefix, max_suffix, & packet_id, & size ))){ 108 108 return NULL; 109 109 } … … 120 120 ERROR_DECLARE; 121 121 122 packet_id_t packet_id;123 unsigned int size;122 ipcarg_t packet_id; 123 ipcarg_t size; 124 124 packet_t packet; 125 125 126 if( ERROR_OCCURRED( async_req_1_2( phone, NET_PACKET_CREATE_1, content, ( ipcarg_t * )& packet_id, & size ))){126 if( ERROR_OCCURRED( async_req_1_2( phone, NET_PACKET_CREATE_1, content, & packet_id, & size ))){ 127 127 return NULL; 128 128 }
Note:
See TracChangeset
for help on using the changeset viewer.