Changeset 8ff0bd2 in mainline for uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
- Timestamp:
- 2011-09-04T11:30:58Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 03bc76a
- Parents:
- d2c67e7 (diff), deac215e (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
-
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
rd2c67e7 r8ff0bd2 39 39 #include <ddi.h> 40 40 #include <libarch/ddi.h> 41 #include < devmap.h>41 #include <loc.h> 42 42 #include <ipc/char.h> 43 43 #include <async.h> … … 52 52 53 53 // FIXME: remove this header 54 #include < kernel/ipc/ipc_methods.h>54 #include <abi/ipc/methods.h> 55 55 56 56 #define NAME "s3c24ser" … … 71 71 static s3c24xx_uart_t *uart; 72 72 73 static void s3c24xx_uart_connection(ipc_callid_t iid, ipc_call_t *icall); 73 static void s3c24xx_uart_connection(ipc_callid_t iid, ipc_call_t *icall, 74 void *arg); 74 75 static void s3c24xx_uart_irq_handler(ipc_callid_t iid, ipc_call_t *call); 75 76 static int s3c24xx_uart_init(s3c24xx_uart_t *uart); … … 82 83 printf(NAME ": S3C24xx on-chip UART driver\n"); 83 84 84 rc = devmap_driver_register(NAME, s3c24xx_uart_connection);85 rc = loc_server_register(NAME, s3c24xx_uart_connection); 85 86 if (rc < 0) { 86 printf(NAME ": Unable to register driver.\n");87 printf(NAME ": Unable to register server.\n"); 87 88 return -1; 88 89 } … … 95 96 return -1; 96 97 97 rc = devmap_device_register(NAMESPACE "/" NAME, &uart->devmap_handle);98 rc = loc_service_register(NAMESPACE "/" NAME, &uart->service_id); 98 99 if (rc != EOK) { 99 100 printf(NAME ": Unable to register device %s.\n", … … 113 114 114 115 /** Character device connection handler. */ 115 static void s3c24xx_uart_connection(ipc_callid_t iid, ipc_call_t *icall) 116 static void s3c24xx_uart_connection(ipc_callid_t iid, ipc_call_t *icall, 117 void *arg) 116 118 { 117 119 ipc_callid_t callid;
Note:
See TracChangeset
for help on using the changeset viewer.
