Changeset bd5f3b7 in mainline for uspace/srv/bd/ata_bd/ata_bd.c
- Timestamp:
- 2011-08-21T13:07:35Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 00aece0, f1a9e87
- Parents:
- 86a34d3e (diff), a6480d5 (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
r86a34d3e rbd5f3b7 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> … … 80 80 */ 81 81 static const size_t identify_data_size = 512; 82 83 /** Size of the communication area. */84 static size_t comm_size;85 82 86 83 /** I/O base address of the command registers. */ … … 179 176 180 177 snprintf(name, 16, "%s/ata%udisk%d", NAMESPACE, ctl_num, i); 181 rc = devmap_device_register(name, &disk[i].devmap_handle);178 rc = loc_service_register(name, &disk[i].service_id); 182 179 if (rc != EOK) { 183 180 printf(NAME ": Unable to register device %s.\n", name); … … 247 244 int rc; 248 245 249 rc = devmap_driver_register(NAME, ata_bd_connection);246 rc = loc_server_register(NAME, ata_bd_connection); 250 247 if (rc < 0) { 251 248 printf(NAME ": Unable to register driver.\n"); … … 280 277 ipc_call_t call; 281 278 sysarg_t method; 282 devmap_handle_t dh; 279 service_id_t dsid; 280 size_t comm_size; /**< Size of the communication area. */ 283 281 unsigned int flags; 284 282 int retval; … … 287 285 int disk_id, i; 288 286 289 /* Get the device handle. */290 d h= IPC_GET_ARG1(*icall);287 /* Get the device service ID. */ 288 dsid = IPC_GET_ARG1(*icall); 291 289 292 290 /* Determine which disk device is the client connecting to. */ 293 291 disk_id = -1; 294 292 for (i = 0; i < MAX_DISKS; i++) 295 if (disk[i]. devmap_handle == dh)293 if (disk[i].service_id == dsid) 296 294 disk_id = i; 297 295
Note:
See TracChangeset
for help on using the changeset viewer.