Changes in uspace/drv/usbhub/usbhub_private.h [5097bed4:e080332] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub_private.h
r5097bed4 re080332 43 43 #include <bool.h> 44 44 #include <driver.h> 45 #include <futex.h>46 47 45 #include <usb/usb.h> 48 46 #include <usb/usbdrv.h> … … 68 66 69 67 /** 70 * create hub structure instance68 * @brief create hub structure instance 71 69 * 72 70 * Set the address and port count information most importantly. … … 81 79 extern usb_general_list_t usb_hub_list; 82 80 83 /** lock for hub list*/84 extern futex_t usb_hub_list_lock;85 86 81 87 82 /** 88 * perform complete control read transaction83 * @brief perform complete control read transaction 89 84 * 90 85 * manages all three steps of transaction: setup, read and finalize … … 104 99 105 100 /** 106 * perform complete control write transaction101 * @brief perform complete control write transaction 107 102 * 108 * ma nages all three steps of transaction: setup, write and finalize103 * maanges all three steps of transaction: setup, write and finalize 109 104 * @param phone 110 105 * @param target … … 119 114 void * sent_buffer, size_t sent_size 120 115 ); 116 117 118 /** 119 * set the device request to be a set address request 120 * @param request 121 * @param addr 122 * \TODO this will be obsolete see usb/dev_req.h 123 */ 124 static inline void usb_hub_set_set_address_request( 125 usb_device_request_setup_packet_t * request, uint16_t addr 126 ){ 127 request->index = 0; 128 request->request_type = 0;/// \TODO this is not very nice sollution, we ned constant 129 request->request = USB_DEVREQ_SET_ADDRESS; 130 request->value = addr; 131 request->length = 0; 132 } 121 133 122 134 /**
Note:
See TracChangeset
for help on using the changeset viewer.