Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/port_status.h

    r39c3d95d rcd4b184  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28/** @addtogroup drvusbhub
     29 * @{
     30 */
    2831
    2932#ifndef PORT_STATUS_H
     
    3235#include <bool.h>
    3336#include <sys/types.h>
    34 #include <usb/devreq.h>
     37#include <usb/request.h>
    3538#include "usbhub_private.h"
    3639
     
    170173        request->request_type = USB_HUB_REQ_TYPE_SET_PORT_FEATURE;
    171174        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 request
     181 * @param request
     182 * @param port
     183 */
     184static inline void usb_hub_unset_power_port_request(
     185usb_device_request_setup_packet_t * request, uint16_t port
     186){
     187        request->index = port;
     188        request->request_type = USB_HUB_REQ_TYPE_SET_PORT_FEATURE;
     189        request->request = USB_HUB_REQUEST_CLEAR_FEATURE;
    172190        request->value = USB_HUB_FEATURE_PORT_POWER;
    173191        request->length = 0;
     
    302320#endif  /* PORT_STATUS_H */
    303321
     322/**
     323 * @}
     324 */
Note: See TracChangeset for help on using the changeset viewer.