Changeset 16dc887 in mainline for uspace/srv/hw/char
- Timestamp:
- 2011-08-16T14:00:32Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 278ac72, b112055
- Parents:
- 3751a08 (diff), cc574511 (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:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/char/i8042/i8042.c
r3751a08 r16dc887 39 39 #include <ddi.h> 40 40 #include <libarch/ddi.h> 41 #include < devmap.h>41 #include <loc.h> 42 42 #include <async.h> 43 43 #include <async_obsolete.h> … … 135 135 printf(NAME ": i8042 PS/2 port driver\n"); 136 136 137 rc = devmap_driver_register(NAME, i8042_connection);137 rc = loc_server_register(NAME, i8042_connection); 138 138 if (rc < 0) { 139 printf(NAME ": Unable to register driver.\n");139 printf(NAME ": Unable to register server.\n"); 140 140 return rc; 141 141 } … … 148 148 149 149 snprintf(name, 16, "%s/ps2%c", NAMESPACE, dchar[i]); 150 rc = devmap_device_register(name, &i8042_port[i].devmap_handle);150 rc = loc_service_register(name, &i8042_port[i].service_id); 151 151 if (rc != EOK) { 152 152 printf(NAME ": Unable to register device %s.\n", name); … … 221 221 ipc_call_t call; 222 222 sysarg_t method; 223 devmap_handle_t dh;223 service_id_t dsid; 224 224 int retval; 225 225 int dev_id, i; … … 228 228 229 229 /* Get the device handle. */ 230 d h= IPC_GET_ARG1(*icall);230 dsid = IPC_GET_ARG1(*icall); 231 231 232 232 /* Determine which disk device is the client connecting to. */ 233 233 dev_id = -1; 234 234 for (i = 0; i < MAX_DEVS; i++) { 235 if (i8042_port[i]. devmap_handle == dh)235 if (i8042_port[i].service_id == dsid) 236 236 dev_id = i; 237 237 } -
uspace/srv/hw/char/i8042/i8042.h
r3751a08 r16dc887 52 52 /** Softstate structure, one for each serial port (primary and aux). */ 53 53 typedef struct { 54 devmap_handle_t devmap_handle;54 service_id_t service_id; 55 55 int client_phone; 56 56 } i8042_port_t; -
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
r3751a08 r16dc887 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> … … 83 83 printf(NAME ": S3C24xx on-chip UART driver\n"); 84 84 85 rc = devmap_driver_register(NAME, s3c24xx_uart_connection);85 rc = loc_server_register(NAME, s3c24xx_uart_connection); 86 86 if (rc < 0) { 87 printf(NAME ": Unable to register driver.\n");87 printf(NAME ": Unable to register server.\n"); 88 88 return -1; 89 89 } … … 96 96 return -1; 97 97 98 rc = devmap_device_register(NAMESPACE "/" NAME, &uart->devmap_handle);98 rc = loc_service_register(NAMESPACE "/" NAME, &uart->service_id); 99 99 if (rc != EOK) { 100 100 printf(NAME ": Unable to register device %s.\n", -
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.h
r3751a08 r16dc887 87 87 int client_phone; 88 88 89 /** Device handle*/90 devmap_handle_t devmap_handle;89 /** Service ID */ 90 service_id_t service_id; 91 91 } s3c24xx_uart_t; 92 92
Note:
See TracChangeset
for help on using the changeset viewer.