Changeset d6e2938 in mainline for uspace/drv/bus/usb/usbhub/port_status.h
- Timestamp:
- 2011-09-23T12:17:27Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 48a31be
- Parents:
- bba0f1fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/port_status.h
rbba0f1fc rd6e2938 47 47 */ 48 48 typedef uint32_t usb_port_status_t; 49 // TODO Mind the endiannes, changes are in the first byte of the second word 50 // status is in the first byte of the first word 51 #define USB_HUB_PORT_STATUS_CONNECTION (1 << (USB_HUB_FEATURE_PORT_CONNECTION)) 52 #define USB_HUB_PORT_STATUS_ENABLED (1 << (USB_HUB_FEATURE_PORT_ENABLE)) 53 #define USB_HUB_PORT_STATUS_SUSPEND (1 << (USB_HUB_FEATURE_PORT_SUSPEND)) 54 #define USB_HUB_PORT_STATUS_OC (1 << (USB_HUB_FEATURE_PORT_OVER_CURRENT)) 55 #define USB_HUB_PORT_STATUS_RESET (1 << (USB_HUB_FEATURE_PORT_RESET)) 56 #define USB_HUB_PORT_STATUS_POWER (1 << (USB_HUB_FEATURE_PORT_POWER)) 57 #define USB_HUB_PORT_STATUS_LOW_SPEED (1 << (USB_HUB_FEATURE_PORT_LOW_SPEED)) 58 59 #define USB_HUB_PORT_C_STATUS_CONNECTION \ 60 (1 << (USB_HUB_FEATURE_C_PORT_CONNECTION)) 61 #define USB_HUB_PORT_C_STATUS_ENABLED \ 62 (1 << (USB_HUB_FEATURE_C_PORT_ENABLE)) 63 #define USB_HUB_PORT_C_STATUS_SUSPEND \ 64 (1 << (USB_HUB_FEATURE_C_PORT_SUSPEND)) 65 #define USB_HUB_PORT_C_STATUS_OC \ 66 (1 << (USB_HUB_FEATURE_C_PORT_OVER_CURRENT)) 67 #define USB_HUB_PORT_C_STATUS_RESET \ 68 (1 << (USB_HUB_FEATURE_C_PORT_RESET)) 49 69 50 70 /** … … 57 77 typedef uint32_t usb_hub_status_t; 58 78 // TODO Mind the endiannes, changes are in the first byte of the second word 59 // status is in the first byte of the first word79 // status is in the first byte of the first word 60 80 #define USB_HUB_STATUS_OVER_CURRENT \ 61 81 (1 << (USB_HUB_FEATURE_HUB_OVER_CURRENT))
Note:
See TracChangeset
for help on using the changeset viewer.