Changeset b8622e2 in mainline for uspace/drv/usbhub/port_status.h


Ignore:
Timestamp:
2011-02-25T16:59:24Z (14 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3a1aa20, 81c508c
Parents:
3b0fb049 (diff), dff940f8 (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.
Message:

merge from smekideki: hub driver uses new api and works

File:
1 edited

Legend:

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

    r3b0fb049 rb8622e2  
    177177}
    178178
     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;
     190        request->value = USB_HUB_FEATURE_PORT_POWER;
     191        request->length = 0;
     192}
     193
    179194/** get i`th bit of port status */
    180195static inline bool usb_port_get_bit(usb_port_status_t * status, int idx)
Note: See TracChangeset for help on using the changeset viewer.