Changeset ffa2c8ef in mainline for uspace/srv/bd/ata_bd/ata_bd.c
- Timestamp:
- 2011-01-29T11:36:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46b881c
- Parents:
- 64d2b10
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/ata_bd/ata_bd.c
r64d2b10 rffa2c8ef 51 51 #include <libarch/ddi.h> 52 52 #include <ddi.h> 53 #include <ipc/ipc.h>54 53 #include <ipc/bd.h> 55 54 #include <async.h> … … 282 281 283 282 if (disk_id < 0 || disk[disk_id].present == false) { 284 ipc_answer_0(iid, EINVAL);283 async_answer_0(iid, EINVAL); 285 284 return; 286 285 } 287 286 288 287 /* Answer the IPC_M_CONNECT_ME_TO call. */ 289 ipc_answer_0(iid, EOK);288 async_answer_0(iid, EOK); 290 289 291 290 if (!async_share_out_receive(&callid, &comm_size, &flags)) { 292 ipc_answer_0(callid, EHANGUP);291 async_answer_0(callid, EHANGUP); 293 292 return; 294 293 } … … 296 295 fs_va = as_get_mappable_page(comm_size); 297 296 if (fs_va == NULL) { 298 ipc_answer_0(callid, EHANGUP);297 async_answer_0(callid, EHANGUP); 299 298 return; 300 299 } … … 308 307 case IPC_M_PHONE_HUNGUP: 309 308 /* The other side has hung up. */ 310 ipc_answer_0(callid, EOK);309 async_answer_0(callid, EOK); 311 310 return; 312 311 case BD_READ_BLOCKS: … … 331 330 break; 332 331 case BD_GET_BLOCK_SIZE: 333 ipc_answer_1(callid, EOK, block_size);332 async_answer_1(callid, EOK, block_size); 334 333 continue; 335 334 case BD_GET_NUM_BLOCKS: 336 ipc_answer_2(callid, EOK, LOWER32(disk[disk_id].blocks),335 async_answer_2(callid, EOK, LOWER32(disk[disk_id].blocks), 337 336 UPPER32(disk[disk_id].blocks)); 338 337 continue; … … 341 340 break; 342 341 } 343 ipc_answer_0(callid, retval);342 async_answer_0(callid, retval); 344 343 } 345 344 }
Note:
See TracChangeset
for help on using the changeset viewer.