Changeset 135486d in mainline for uspace/srv/bd/ata_bd/ata_bd.c
- Timestamp:
- 2012-08-15T14:44:59Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- affaf2e, b546231
- Parents:
- 4802dd7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/ata_bd/ata_bd.c
r4802dd7 r135486d 104 104 static void ata_bd_connection(ipc_callid_t iid, ipc_call_t *icall, void *); 105 105 106 static int ata_bd_open(bd_srv _t *);106 static int ata_bd_open(bd_srvs_t *, bd_srv_t *); 107 107 static int ata_bd_close(bd_srv_t *); 108 108 static int ata_bd_read_blocks(bd_srv_t *, uint64_t ba, size_t cnt, void *buf, … … 146 146 static disk_t *bd_srv_disk(bd_srv_t *bd) 147 147 { 148 return (disk_t *)bd-> arg;148 return (disk_t *)bd->srvs->sarg; 149 149 } 150 150 … … 312 312 } 313 313 314 bd_conn(iid, icall, &ata_disk[disk_id].bd );314 bd_conn(iid, icall, &ata_disk[disk_id].bds); 315 315 } 316 316 … … 336 336 fibril_mutex_initialize(&d->lock); 337 337 338 bd_srv _init(&d->bd);339 d->bd .ops = &ata_bd_ops;340 d->bd .arg = d;338 bd_srvs_init(&d->bds); 339 d->bds.ops = &ata_bd_ops; 340 d->bds.sarg = d; 341 341 342 342 /* Try identify command. */ … … 467 467 } 468 468 469 static int ata_bd_open(bd_srv _t *bd)469 static int ata_bd_open(bd_srvs_t *bds, bd_srv_t *bd) 470 470 { 471 471 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.