Changeset bee37cf in mainline for uspace/srv/bd/ata_bd/ata_bd.c
- Timestamp:
- 2011-07-05T21:21:36Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e2aa83, eb66f236
- Parents:
- 3714e79 (diff), f7a55f9 (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
-
uspace/srv/bd/ata_bd/ata_bd.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/ata_bd/ata_bd.c
r3714e79 rbee37cf 105 105 static void print_syntax(void); 106 106 static int ata_bd_init(void); 107 static void ata_bd_connection(ipc_callid_t iid, ipc_call_t *icall );107 static void ata_bd_connection(ipc_callid_t iid, ipc_call_t *icall, void *); 108 108 static int ata_bd_read_blocks(int disk_id, uint64_t ba, size_t cnt, 109 109 void *buf); … … 274 274 275 275 /** Block device connection handler */ 276 static void ata_bd_connection(ipc_callid_t iid, ipc_call_t *icall )276 static void ata_bd_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 277 277 { 278 278 void *fs_va = NULL; … … 317 317 (void) async_share_out_finalize(callid, fs_va); 318 318 319 while ( 1) {319 while (true) { 320 320 callid = async_get_call(&call); 321 321 method = IPC_GET_IMETHOD(call); 322 switch (method) {323 case IPC_M_PHONE_HUNGUP:322 323 if (!method) { 324 324 /* The other side has hung up. */ 325 325 async_answer_0(callid, EOK); 326 326 return; 327 } 328 329 switch (method) { 327 330 case BD_READ_BLOCKS: 328 331 ba = MERGE_LOUP32(IPC_GET_ARG1(call),
Note:
See TracChangeset
for help on using the changeset viewer.
