Changes in uspace/srv/bd/ata_bd/ata_bd.c [08232ee:1ee00b7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/ata_bd/ata_bd.c
r08232ee r1ee00b7 55 55 #include <async.h> 56 56 #include <as.h> 57 #include <fibril_sync h.h>57 #include <fibril_sync.h> 58 58 #include <string.h> 59 59 #include <devmap.h> … … 66 66 #include "ata_bd.h" 67 67 68 #define NAME "ata_bd" 69 #define NAMESPACE "bd" 68 #define NAME "ata_bd" 70 69 71 70 /** Physical block size. Should be always 512. */ … … 136 135 if (disk[i].present == false) 137 136 continue; 138 139 snprintf(name, 16, " %s/disk%d", NAMESPACE, i);137 138 snprintf(name, 16, "disk%d", i); 140 139 rc = devmap_device_register(name, &disk[i].dev_handle); 141 140 if (rc != EOK) { 142 141 devmap_hangup_phone(DEVMAP_DRIVER); 143 printf(NAME ": Unable to register device %s.\n", name); 142 printf(NAME ": Unable to register device %s.\n", 143 name); 144 144 return rc; 145 145 } … … 252 252 ipc_answer_0(iid, EOK); 253 253 254 if (! async_share_out_receive(&callid, &comm_size, &flags)) {254 if (!ipc_share_out_receive(&callid, &comm_size, &flags)) { 255 255 ipc_answer_0(callid, EHANGUP); 256 256 return; … … 263 263 } 264 264 265 (void) async_share_out_finalize(callid, fs_va);265 (void) ipc_share_out_finalize(callid, fs_va); 266 266 267 267 while (1) { … … 296 296 ipc_answer_1(callid, EOK, block_size); 297 297 continue; 298 case BD_GET_NUM_BLOCKS:299 ipc_answer_2(callid, EOK, LOWER32(disk[disk_id].blocks),300 UPPER32(disk[disk_id].blocks));301 continue;302 298 default: 303 299 retval = EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.