Changeset 7bdcc45 in mainline for uspace/srv/hw/char
- 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/char
- Files:
-
- 2 edited
-
i8042/i8042.c (modified) (5 diffs)
-
s3c24xx_uart/s3c24xx_uart.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.
