Changeset 6843a9c in mainline for uspace/srv/bd/ata_bd/ata_bd.c
- Timestamp:
- 2012-06-29T13:02:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 722912e
- Parents:
- ba72f2b (diff), 0bbd13e (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
rba72f2b r6843a9c 191 191 } 192 192 193 printf( NAME ": Accepting connections\n");193 printf("%s: Accepting connections\n", NAME); 194 194 task_retval(0); 195 195 async_manager(); … … 243 243 static int ata_bd_init(void) 244 244 { 245 async_set_client_connection(ata_bd_connection); 246 int rc = loc_server_register(NAME); 247 if (rc != EOK) { 248 printf("%s: Unable to register driver.\n", NAME); 249 return rc; 250 } 251 245 252 void *vaddr; 246 int rc;247 248 rc = loc_server_register(NAME, ata_bd_connection);249 if (rc < 0) {250 printf(NAME ": Unable to register driver.\n");251 return rc;252 }253 254 253 rc = pio_enable((void *) cmd_physical, sizeof(ata_cmd_t), &vaddr); 255 254 if (rc != EOK) { 256 printf( NAME ": Could not initialize device I/O space.\n");255 printf("%s: Could not initialize device I/O space.\n", NAME); 257 256 return rc; 258 257 } 259 258 260 259 cmd = vaddr; 261 260 262 261 rc = pio_enable((void *) ctl_physical, sizeof(ata_ctl_t), &vaddr); 263 262 if (rc != EOK) { 264 printf( NAME ": Could not initialize device I/O space.\n");263 printf("%s: Could not initialize device I/O space.\n", NAME); 265 264 return rc; 266 265 } 267 266 268 267 ctl = vaddr; 269 270 268 271 269 return EOK; 272 270 } … … 309 307 } 310 308 311 fs_va = as_get_mappable_page(comm_size);312 if (fs_va == NULL) {309 (void) async_share_out_finalize(callid, &fs_va); 310 if (fs_va == AS_MAP_FAILED) { 313 311 async_answer_0(callid, EHANGUP); 314 312 return; 315 313 } 316 317 (void) async_share_out_finalize(callid, fs_va);318 314 319 315 while (true) {
Note:
See TracChangeset
for help on using the changeset viewer.