Changeset 7bdcc45 in mainline for uspace/srv/hw
- Timestamp:
- 2010-12-16T16:38:49Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7837101
- Parents:
- 8e58f94 (diff), eb221e5 (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/hw
- Files:
-
- 8 edited
-
bus/cuda_adb/cuda_adb.c (modified) (2 diffs)
-
char/i8042/i8042.c (modified) (5 diffs)
-
char/s3c24xx_uart/s3c24xx_uart.c (modified) (6 diffs)
-
cir/fhc/fhc.c (modified) (2 diffs)
-
cir/obio/obio.c (modified) (2 diffs)
-
netif/dp8390/dp8390.c (modified) (3 diffs)
-
netif/dp8390/dp8390_module.c (modified) (4 diffs)
-
netif/dp8390/ne2000.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/bus/cuda_adb/cuda_adb.c
r8e58f94 r7bdcc45 195 195 ipc_callid_t callid; 196 196 ipc_call_t call; 197 ipcarg_t method;197 sysarg_t method; 198 198 devmap_handle_t dh; 199 199 int retval; … … 220 220 while (1) { 221 221 callid = async_get_call(&call); 222 method = IPC_GET_ METHOD(call);222 method = IPC_GET_IMETHOD(call); 223 223 switch (method) { 224 224 case IPC_M_PHONE_HUNGUP: -
uspace/srv/hw/char/i8042/i8042.c
r8e58f94 r7bdcc45 46 46 #include <stdio.h> 47 47 #include <errno.h> 48 #include <inttypes.h> 48 49 49 50 #include "i8042.h" … … 201 202 ipc_register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd); 202 203 ipc_register_irq(inr_b, device_assign_devno(), 0, &i8042_kbd); 203 printf("%s: registered for interrupts %d and %d\n", NAME, inr_a, inr_b); 204 printf("%s: registered for interrupts %" PRIun " and %" PRIun "\n", 205 NAME, inr_a, inr_b); 204 206 205 207 wait_ready(); … … 217 219 ipc_callid_t callid; 218 220 ipc_call_t call; 219 ipcarg_t method;221 sysarg_t method; 220 222 devmap_handle_t dh; 221 223 int retval; … … 246 248 while (1) { 247 249 callid = async_get_call(&call); 248 method = IPC_GET_ METHOD(call);250 method = IPC_GET_IMETHOD(call); 249 251 switch (method) { 250 252 case IPC_M_PHONE_HUNGUP: … … 262 264 break; 263 265 case IPC_FIRST_USER_METHOD: 264 printf(NAME ": write % dto devid %d\n",266 printf(NAME ": write %" PRIun " to devid %d\n", 265 267 IPC_GET_ARG1(call), dev_id); 266 268 i8042_port_write(dev_id, IPC_GET_ARG1(call)); -
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
r8e58f94 r7bdcc45 48 48 #include <sysinfo.h> 49 49 #include <errno.h> 50 #include <inttypes.h> 50 51 51 52 #include "s3c24xx_uart.h" … … 95 96 if (rc != EOK) { 96 97 devmap_hangup_phone(DEVMAP_DRIVER); 97 printf(NAME ": Unable to register device %s.\n"); 98 printf(NAME ": Unable to register device %s.\n", 99 NAMESPACE "/" NAME); 98 100 return -1; 99 101 } … … 114 116 ipc_callid_t callid; 115 117 ipc_call_t call; 116 ipcarg_t method;118 sysarg_t method; 117 119 int retval; 118 120 … … 122 124 while (1) { 123 125 callid = async_get_call(&call); 124 method = IPC_GET_ METHOD(call);126 method = IPC_GET_IMETHOD(call); 125 127 switch (method) { 126 128 case IPC_M_PHONE_HUNGUP: … … 134 136 break; 135 137 case CHAR_WRITE_BYTE: 136 printf(NAME ": write % dto device\n",138 printf(NAME ": write %" PRIun " to device\n", 137 139 IPC_GET_ARG1(call)); 138 140 s3c24xx_uart_sendb(uart, (uint8_t) IPC_GET_ARG1(call)); … … 185 187 uart->client_phone = -1; 186 188 187 printf(NAME ": device at physical address 0x%x, inr %d.\n",188 uart->paddr, inr);189 printf(NAME ": device at physical address %p, inr %" PRIun ".\n", 190 (void *) uart->paddr, inr); 189 191 190 192 async_set_interrupt_received(s3c24xx_uart_irq_handler); -
uspace/srv/hw/cir/fhc/fhc.c
r8e58f94 r7bdcc45 82 82 83 83 callid = async_get_call(&call); 84 switch (IPC_GET_ METHOD(call)) {84 switch (IPC_GET_IMETHOD(call)) { 85 85 case BUS_CLEAR_INTERRUPT: 86 86 inr = IPC_GET_ARG1(call); … … 129 129 } 130 130 131 printf(NAME ": FHC UART registers at %p, % dbytes\n", fhc_uart_phys,131 printf(NAME ": FHC UART registers at %p, %zu bytes\n", fhc_uart_phys, 132 132 fhc_uart_size); 133 133 134 134 async_set_client_connection(fhc_connection); 135 ipcarg_t phonead;135 sysarg_t phonead; 136 136 ipc_connect_to_me(PHONE_NS, SERVICE_FHC, 0, 0, &phonead); 137 137 -
uspace/srv/hw/cir/obio/obio.c
r8e58f94 r7bdcc45 92 92 93 93 callid = async_get_call(&call); 94 switch (IPC_GET_ METHOD(call)) {94 switch (IPC_GET_IMETHOD(call)) { 95 95 case BUS_CLEAR_INTERRUPT: 96 96 inr = IPC_GET_ARG1(call); … … 134 134 135 135 async_set_client_connection(obio_connection); 136 ipcarg_t phonead;136 sysarg_t phonead; 137 137 ipc_connect_to_me(PHONE_NS, SERVICE_OBIO, 0, 0, &phonead); 138 138 -
uspace/srv/hw/netif/dp8390/dp8390.c
r8e58f94 r7bdcc45 432 432 dep->de_write_iovec.iod_iovec[0].iov_size = size; 433 433 dep->de_write_iovec.iod_iovec_s = 1; 434 dep->de_write_iovec.iod_iovec_addr = NULL;434 dep->de_write_iovec.iod_iovec_addr = (uintptr_t) NULL; 435 435 436 436 if (size < ETH_MIN_PACK_SIZE || size > ETH_MAX_PACK_SIZE_TAGGED) … … 1015 1015 dep->de_read_iovec.iod_iovec[0].iov_size = length; 1016 1016 dep->de_read_iovec.iod_iovec_s = 1; 1017 dep->de_read_iovec.iod_iovec_addr = NULL;1017 dep->de_read_iovec.iod_iovec_addr = (uintptr_t) NULL; 1018 1018 1019 1019 last = page + (length - 1) / DP_PAGESIZE; … … 1516 1516 if (!wdeth_probe(dep) && !ne_probe(dep) && !el2_probe(dep)) 1517 1517 { 1518 printf("%s: No ethernet card found at 0x%x\n",1519 dep->de_name, dep->de_base_port);1518 printf("%s: No ethernet card found at %#lx\n", 1519 dep->de_name, dep->de_base_port); 1520 1520 dep->de_mode= DEM_DISABLED; 1521 1521 return; -
uspace/srv/hw/netif/dp8390/dp8390_module.c
r8e58f94 r7bdcc45 63 63 * @param[in] call The interrupt call. 64 64 */ 65 #define IRQ_GET_DEVICE(call) (device_id_t) IPC_GET_ METHOD(*call)65 #define IRQ_GET_DEVICE(call) (device_id_t) IPC_GET_IMETHOD(*call) 66 66 67 67 /** Returns the interrupt status register from the interrupt call. … … 127 127 dep->received_count = 0; 128 128 fibril_rwlock_write_unlock(&netif_globals.lock); 129 nil_received_msg(phone, device_id, received, NULL);129 nil_received_msg(phone, device_id, received, SERVICE_NONE); 130 130 }else{ 131 131 fibril_rwlock_write_unlock(&netif_globals.lock); … … 306 306 307 307 int netif_initialize(void){ 308 ipcarg_t phonehash;308 sysarg_t phonehash; 309 309 310 310 async_set_interrupt_received(irq_handler); … … 343 343 344 344 /* End if said to either by the message or the processing result */ 345 if ((IPC_GET_ METHOD(call) == IPC_M_PHONE_HUNGUP) || (res == EHANGUP))345 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || (res == EHANGUP)) 346 346 return; 347 347 -
uspace/srv/hw/netif/dp8390/ne2000.c
r8e58f94 r7bdcc45 267 267 if (!debug) 268 268 { 269 printf("%s: NE%d000 at % X:%d\n",270 dep->de_name, dep->de_16bit ? 2 : 1,271 dep->de_base_port, dep->de_irq);269 printf("%s: NE%d000 at %#lx:%d\n", 270 dep->de_name, dep->de_16bit ? 2 : 1, 271 dep->de_base_port, dep->de_irq); 272 272 } 273 273 else 274 274 { 275 275 printf("%s: Novell NE%d000 ethernet card at I/O address " 276 "0x%X, memory size 0x%X, irq %d\n",277 dep->de_name, dep->de_16bit ? 2 : 1,278 dep->de_base_port, dep->de_ramsize, dep->de_irq);276 "%#lx, memory size %#lx, irq %d\n", 277 dep->de_name, dep->de_16bit ? 2 : 1, 278 dep->de_base_port, dep->de_ramsize, dep->de_irq); 279 279 } 280 280 }
Note:
See TracChangeset
for help on using the changeset viewer.
