Changeset 991f645 in mainline for uspace/srv/hw
- Timestamp:
- 2010-11-18T17:39:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b5a4131
- Parents:
- 51a268f
- Location:
- uspace/srv/hw
- Files:
-
- 6 edited
-
bus/cuda_adb/cuda_adb.c (modified) (8 diffs)
-
bus/cuda_adb/cuda_adb.h (modified) (1 diff)
-
char/i8042/i8042.c (modified) (3 diffs)
-
char/i8042/i8042.h (modified) (1 diff)
-
char/s3c24xx_uart/s3c24xx_uart.c (modified) (1 diff)
-
char/s3c24xx_uart/s3c24xx_uart.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/bus/cuda_adb/cuda_adb.c
r51a268f r991f645 143 143 int main(int argc, char *argv[]) 144 144 { 145 dev _handle_t dev_handle;145 devmap_handle_t devmap_handle; 146 146 int rc; 147 147 int i; … … 151 151 for (i = 0; i < ADB_MAX_ADDR; ++i) { 152 152 adb_dev[i].client_phone = -1; 153 adb_dev[i].dev _handle = 0;153 adb_dev[i].devmap_handle = 0; 154 154 } 155 155 … … 160 160 } 161 161 162 rc = devmap_device_register("adb/kbd", &dev _handle);162 rc = devmap_device_register("adb/kbd", &devmap_handle); 163 163 if (rc != EOK) { 164 164 devmap_hangup_phone(DEVMAP_DRIVER); … … 167 167 } 168 168 169 adb_dev[2].dev _handle = dev_handle;170 adb_dev[8].dev _handle = dev_handle;171 172 rc = devmap_device_register("adb/mouse", &dev _handle);169 adb_dev[2].devmap_handle = devmap_handle; 170 adb_dev[8].devmap_handle = devmap_handle; 171 172 rc = devmap_device_register("adb/mouse", &devmap_handle); 173 173 if (rc != EOK) { 174 174 devmap_hangup_phone(DEVMAP_DRIVER); … … 177 177 } 178 178 179 adb_dev[9].dev _handle = dev_handle;179 adb_dev[9].devmap_handle = devmap_handle; 180 180 181 181 if (cuda_init() < 0) { … … 196 196 ipc_call_t call; 197 197 ipcarg_t method; 198 dev _handle_t dh;198 devmap_handle_t dh; 199 199 int retval; 200 200 int dev_addr, i; … … 206 206 dev_addr = -1; 207 207 for (i = 0; i < ADB_MAX_ADDR; i++) { 208 if (adb_dev[i].dev _handle == dh)208 if (adb_dev[i].devmap_handle == dh) 209 209 dev_addr = i; 210 210 } … … 237 237 */ 238 238 for (i = 0; i < ADB_MAX_ADDR; ++i) { 239 if (adb_dev[i].dev _handle == dh) {239 if (adb_dev[i].devmap_handle == dh) { 240 240 adb_dev[i].client_phone = IPC_GET_ARG5(call); 241 241 } -
uspace/srv/hw/bus/cuda_adb/cuda_adb.h
r51a268f r991f645 104 104 105 105 typedef struct { 106 dev _handle_t dev_handle;106 devmap_handle_t devmap_handle; 107 107 int client_phone; 108 108 } adb_dev_t; -
uspace/srv/hw/char/i8042/i8042.c
r51a268f r991f645 145 145 146 146 snprintf(name, 16, "%s/ps2%c", NAMESPACE, dchar[i]); 147 rc = devmap_device_register(name, &i8042_port[i].dev _handle);147 rc = devmap_device_register(name, &i8042_port[i].devmap_handle); 148 148 if (rc != EOK) { 149 149 devmap_hangup_phone(DEVMAP_DRIVER); … … 218 218 ipc_call_t call; 219 219 ipcarg_t method; 220 dev _handle_t dh;220 devmap_handle_t dh; 221 221 int retval; 222 222 int dev_id, i; … … 230 230 dev_id = -1; 231 231 for (i = 0; i < MAX_DEVS; i++) { 232 if (i8042_port[i].dev _handle == dh)232 if (i8042_port[i].devmap_handle == dh) 233 233 dev_id = i; 234 234 } -
uspace/srv/hw/char/i8042/i8042.h
r51a268f r991f645 52 52 /** Softstate structure, one for each serial port (primary and aux). */ 53 53 typedef struct { 54 dev _handle_t dev_handle;54 devmap_handle_t devmap_handle; 55 55 int client_phone; 56 56 } i8042_port_t; -
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
r51a268f r991f645 92 92 return -1; 93 93 94 rc = devmap_device_register(NAMESPACE "/" NAME, &uart->dev _handle);94 rc = devmap_device_register(NAMESPACE "/" NAME, &uart->devmap_handle); 95 95 if (rc != EOK) { 96 96 devmap_hangup_phone(DEVMAP_DRIVER); -
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.h
r51a268f r991f645 88 88 89 89 /** Device handle */ 90 dev _handle_t dev_handle;90 devmap_handle_t devmap_handle; 91 91 } s3c24xx_uart_t; 92 92
Note:
See TracChangeset
for help on using the changeset viewer.
