Changeset ad7a6c9 in mainline for uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
- Timestamp:
- 2011-03-30T13:10:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4ae90f9
- Parents:
- 6e50466 (diff), d6b81941 (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
r6e50466 rad7a6c9 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); … … 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) { … … 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.