Changeset 5882487 in mainline for uspace/drv/bus/usb/usbmast/main.c
- Timestamp:
- 2012-08-16T09:43:13Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8cbd39
- Parents:
- b52dd1de (diff), c8444d8 (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/drv/bus/usb/usbmast/main.c
rb52dd1de r5882487 82 82 void *arg); 83 83 84 static int usbmast_bd_open(bd_srv _t *);84 static int usbmast_bd_open(bd_srvs_t *, bd_srv_t *); 85 85 static int usbmast_bd_close(bd_srv_t *); 86 86 static int usbmast_bd_read_blocks(bd_srv_t *, aoff64_t, size_t, void *, size_t); … … 100 100 static usbmast_fun_t *bd_srv_usbmast(bd_srv_t *bd) 101 101 { 102 return (usbmast_fun_t *)bd-> arg;102 return (usbmast_fun_t *)bd->srvs->sarg; 103 103 } 104 104 … … 240 240 mfun->lun = lun; 241 241 242 bd_srv _init(&mfun->bd);243 mfun->bd .ops = &usbmast_bd_ops;244 mfun->bd .arg = mfun;242 bd_srvs_init(&mfun->bds); 243 mfun->bds.ops = &usbmast_bd_ops; 244 mfun->bds.sarg = mfun; 245 245 246 246 /* Set up a connection handler. */ … … 311 311 312 312 mfun = (usbmast_fun_t *) ((ddf_fun_t *)arg)->driver_data; 313 bd_conn(iid, icall, &mfun->bd );313 bd_conn(iid, icall, &mfun->bds); 314 314 } 315 315 316 316 /** Open device. */ 317 static int usbmast_bd_open(bd_srv _t *bd)317 static int usbmast_bd_open(bd_srvs_t *bds, bd_srv_t *bd) 318 318 { 319 319 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.