Changes in uspace/drv/usbhub/port_status.h [cd4b184:39c3d95d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/port_status.h
rcd4b184 r39c3d95d 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup drvusbhub29 * @{30 */31 28 32 29 #ifndef PORT_STATUS_H … … 35 32 #include <bool.h> 36 33 #include <sys/types.h> 37 #include <usb/ request.h>34 #include <usb/devreq.h> 38 35 #include "usbhub_private.h" 39 36 … … 173 170 request->request_type = USB_HUB_REQ_TYPE_SET_PORT_FEATURE; 174 171 request->request = USB_HUB_REQUEST_SET_FEATURE; 175 request->value = USB_HUB_FEATURE_PORT_POWER;176 request->length = 0;177 }178 179 /**180 * set the device request to be a port disable request181 * @param request182 * @param port183 */184 static inline void usb_hub_unset_power_port_request(185 usb_device_request_setup_packet_t * request, uint16_t port186 ){187 request->index = port;188 request->request_type = USB_HUB_REQ_TYPE_SET_PORT_FEATURE;189 request->request = USB_HUB_REQUEST_CLEAR_FEATURE;190 172 request->value = USB_HUB_FEATURE_PORT_POWER; 191 173 request->length = 0; … … 320 302 #endif /* PORT_STATUS_H */ 321 303 322 /**323 * @}324 */
Note:
See TracChangeset
for help on using the changeset viewer.