Changeset db96017 in mainline for uspace/lib/usbdev/include/usb/dev/hub.h
- Timestamp:
- 2012-04-07T17:41:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b6913b7
- Parents:
- b69e4c0 (diff), 6bb169b5 (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
-
uspace/lib/usbdev/include/usb/dev/hub.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/hub.h
rb69e4c0 rdb96017 38 38 #define LIBUSBDEV_HUB_H_ 39 39 40 #include <ddf/driver.h> 40 41 #include <sys/types.h> 42 #include <errno.h> 41 43 #include <usb/hc.h> 42 44 43 45 int usb_hc_new_device_wrapper(ddf_dev_t *, usb_hc_connection_t *, usb_speed_t, 44 int (*)(int, void *), int, void *, 45 usb_address_t *, devman_handle_t *, 46 ddf_dev_ops_t *, void *, ddf_fun_t **); 46 int (*)(void *), void *, usb_address_t *, ddf_dev_ops_t *, void *, 47 ddf_fun_t **); 47 48 48 49 /** Info about device attached to host controller. … … 55 56 /** Device address. */ 56 57 usb_address_t address; 57 /** D evman handleof the device. */58 d evman_handle_t handle;59 } usb_h c_attached_device_t;58 /** DDF function (external) of the device. */ 59 ddf_fun_t *fun; 60 } usb_hub_attached_device_t; 60 61 61 usb_address_t usb_hc_request_address(usb_hc_connection_t *, usb_speed_t); 62 int usb_hc_register_device(usb_hc_connection_t *, 63 const usb_hc_attached_device_t *); 64 int usb_hc_unregister_device(usb_hc_connection_t *, usb_address_t); 62 int usb_hub_register_device(usb_hc_connection_t *, 63 const usb_hub_attached_device_t *); 64 65 static inline int usb_hub_unregister_device(usb_hc_connection_t *conn, 66 const usb_hub_attached_device_t *attached_device) 67 { 68 assert(conn); 69 if (attached_device == NULL) 70 return EBADMEM; 71 return usb_hc_release_address(conn, attached_device->address); 72 } 65 73 66 74 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
