Changeset 16639bb in mainline for uspace/srv/bd/ata_bd/ata_bd.c
- Timestamp:
- 2012-08-15T22:13:37Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 83298e8
- Parents:
- f7ea5400 (diff), c5a6076 (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
rf7ea5400 r16639bb 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.