Changeset 903bac0a in mainline for uspace/srv/bd/ata_bd/ata_bd.c
- Timestamp:
- 2011-08-19T09:00:38Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e2ab36f1
- Parents:
- d894fbd (diff), 42a619b (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/bd/ata_bd/ata_bd.c
rd894fbd r903bac0a 57 57 #include <stdint.h> 58 58 #include <str.h> 59 #include < devmap.h>59 #include <loc.h> 60 60 #include <sys/types.h> 61 61 #include <inttypes.h> … … 176 176 177 177 snprintf(name, 16, "%s/ata%udisk%d", NAMESPACE, ctl_num, i); 178 rc = devmap_device_register(name, &disk[i].devmap_handle);178 rc = loc_service_register(name, &disk[i].service_id); 179 179 if (rc != EOK) { 180 180 printf(NAME ": Unable to register device %s.\n", name); … … 244 244 int rc; 245 245 246 rc = devmap_driver_register(NAME, ata_bd_connection);246 rc = loc_server_register(NAME, ata_bd_connection); 247 247 if (rc < 0) { 248 248 printf(NAME ": Unable to register driver.\n"); … … 277 277 ipc_call_t call; 278 278 sysarg_t method; 279 devmap_handle_t dh;279 service_id_t dsid; 280 280 size_t comm_size; /**< Size of the communication area. */ 281 281 unsigned int flags; … … 285 285 int disk_id, i; 286 286 287 /* Get the device handle. */288 d h= IPC_GET_ARG1(*icall);287 /* Get the device service ID. */ 288 dsid = IPC_GET_ARG1(*icall); 289 289 290 290 /* Determine which disk device is the client connecting to. */ 291 291 disk_id = -1; 292 292 for (i = 0; i < MAX_DISKS; i++) 293 if (disk[i]. devmap_handle == dh)293 if (disk[i].service_id == dsid) 294 294 disk_id = i; 295 295
Note:
See TracChangeset
for help on using the changeset viewer.