Changeset 0c0f823b in mainline for uspace/lib
- Timestamp:
- 2011-11-14T20:50:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 765678f, d5ba17f
- Parents:
- 612ad864
- Location:
- uspace/lib
- Files:
-
- 3 edited
-
drv/generic/driver.c (modified) (1 diff)
-
drv/include/ddf/driver.h (modified) (2 diffs)
-
usbdev/src/devdrv.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
r612ad864 r0c0f823b 288 288 (void) parent_fun_handle; 289 289 290 res = driver->driver_ops-> add_device(dev);290 res = driver->driver_ops->dev_add(dev); 291 291 292 292 if (res != EOK) { -
uspace/lib/drv/include/ddf/driver.h
r612ad864 r0c0f823b 136 136 typedef struct driver_ops { 137 137 /** Callback method for passing a new device to the device driver */ 138 int (*add_device)(ddf_dev_t *); 139 /** 140 * Notification that the device was succesfully added. 141 * The driver can do any blocking operation without 142 * blocking the device manager. 143 */ 144 void (*device_added)(ddf_dev_t *dev); 138 int (*dev_add)(ddf_dev_t *); 145 139 /** Ask driver to remove a device */ 146 140 int (*dev_remove)(ddf_dev_t *); … … 151 145 /** Ask driver to offline a specific function */ 152 146 int (*fun_offline)(ddf_fun_t *); 147 148 /** 149 * Notification that the device was succesfully added. 150 * The driver can do any blocking operation without 151 * blocking the device manager. 152 * 153 * XXX REMOVE THIS 154 */ 155 void (*device_added)(ddf_dev_t *dev); 153 156 } driver_ops_t; 154 157 -
uspace/lib/usbdev/src/devdrv.c
r612ad864 r0c0f823b 46 46 47 47 static driver_ops_t generic_driver_ops = { 48 . add_device= generic_device_add,48 .dev_add = generic_device_add, 49 49 .dev_remove = generic_device_remove, 50 50 .dev_gone = generic_device_gone,
Note:
See TracChangeset
for help on using the changeset viewer.
