Changeset 56184b2 in mainline for uspace/drv/usbhub/usbhub_private.h
- Timestamp:
- 2011-01-07T16:43:23Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 70a9092
- Parents:
- 9b95dbcf (diff), a523af4 (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/usbhub/usbhub_private.h
r9b95dbcf r56184b2 43 43 #include <bool.h> 44 44 #include <driver.h> 45 #include <futex.h> 46 45 47 #include <usb/usb.h> 46 48 #include <usb/usbdrv.h> … … 66 68 67 69 /** 68 * @briefcreate hub structure instance70 * create hub structure instance 69 71 * 70 72 * Set the address and port count information most importantly. … … 79 81 extern usb_general_list_t usb_hub_list; 80 82 83 /** lock for hub list*/ 84 extern futex_t usb_hub_list_lock; 85 81 86 82 87 /** 83 * @briefperform complete control read transaction88 * perform complete control read transaction 84 89 * 85 90 * manages all three steps of transaction: setup, read and finalize … … 99 104 100 105 /** 101 * @briefperform complete control write transaction106 * perform complete control write transaction 102 107 * 103 * ma anges all three steps of transaction: setup, write and finalize108 * manages all three steps of transaction: setup, write and finalize 104 109 * @param phone 105 110 * @param target … … 114 119 void * sent_buffer, size_t sent_size 115 120 ); 116 117 118 /**119 * set the device request to be a set address request120 * @param request121 * @param addr122 * \TODO this will be obsolete see usb/dev_req.h123 */124 static inline void usb_hub_set_set_address_request(125 usb_device_request_setup_packet_t * request, uint16_t addr126 ){127 request->index = 0;128 request->request_type = 0;/// \TODO this is not very nice sollution, we ned constant129 request->request = USB_DEVREQ_SET_ADDRESS;130 request->value = addr;131 request->length = 0;132 }133 121 134 122 /**
Note:
See TracChangeset
for help on using the changeset viewer.