Changeset 11ac272 in mainline for uspace/drv/usbhub/port_status.h


Ignore:
Timestamp:
2011-03-18T15:03:26Z (13 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3036735, d8e61b0d
Parents:
b64eac6 (diff), a7528a16 (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:

fixes: deadlock with default address, usb speeds

File:
1 edited

Legend:

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

    rb64eac6 r11ac272  
    270270}
    271271
     272//low speed device attached
     273static inline bool usb_port_high_speed(usb_port_status_t * status){
     274        return usb_port_get_bit(status,10);
     275}
     276
     277static inline void usb_port_set_high_speed(usb_port_status_t * status,bool high_speed){
     278        usb_port_set_bit(status,10,high_speed);
     279}
     280
     281static inline usb_speed_t usb_port_speed(usb_port_status_t * status){
     282        if(usb_port_low_speed(status))
     283                return USB_SPEED_LOW;
     284        if(usb_port_high_speed(status))
     285                return USB_SPEED_HIGH;
     286        return USB_SPEED_FULL;
     287}
     288
    272289
    273290//connect change
Note: See TracChangeset for help on using the changeset viewer.