Changeset cf2af94 in mainline for uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
- Timestamp:
- 2011-02-09T11:46:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cb15135a
- Parents:
- a49c4002 (diff), 0b37882 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
ra49c4002 rcf2af94 40 40 #include <libarch/ddi.h> 41 41 #include <devmap.h> 42 #include <ipc/ipc.h>43 42 #include <ipc/char.h> 44 43 #include <async.h> … … 95 94 rc = devmap_device_register(NAMESPACE "/" NAME, &uart->devmap_handle); 96 95 if (rc != EOK) { 97 devmap_hangup_phone(DEVMAP_DRIVER);98 96 printf(NAME ": Unable to register device %s.\n", 99 97 NAMESPACE "/" NAME); … … 116 114 ipc_callid_t callid; 117 115 ipc_call_t call; 118 ipcarg_t method;116 sysarg_t method; 119 117 int retval; 120 118 121 119 /* Answer the IPC_M_CONNECT_ME_TO call. */ 122 ipc_answer_0(iid, EOK);120 async_answer_0(iid, EOK); 123 121 124 122 while (1) { 125 123 callid = async_get_call(&call); 126 method = IPC_GET_ METHOD(call);124 method = IPC_GET_IMETHOD(call); 127 125 switch (method) { 128 126 case IPC_M_PHONE_HUNGUP: 129 127 /* The other side has hung up. */ 130 ipc_answer_0(callid, EOK);128 async_answer_0(callid, EOK); 131 129 return; 132 130 case IPC_M_CONNECT_TO_ME: … … 145 143 break; 146 144 } 147 ipc_answer_0(callid, retval);145 async_answer_0(callid, retval); 148 146 } 149 147 } … … 192 190 async_set_interrupt_received(s3c24xx_uart_irq_handler); 193 191 194 ipc_register_irq(inr, device_assign_devno(), 0, &uart_irq_code);192 register_irq(inr, device_assign_devno(), 0, &uart_irq_code); 195 193 196 194 /* Enable FIFO, Tx trigger level: empty, Rx trigger level: 1 byte. */
Note:
See TracChangeset
for help on using the changeset viewer.