LibXenon
Bare-metal Xbox 360 homebrew library
|
Go to the source code of this file.
Data Structures | |
struct | usb_device_descr_s |
struct | usb_endpoint_descr_s |
struct | usb_config_descr_s |
struct | usb_interface_descr_s |
struct | usb_string_descr_s |
struct | usb_power_descr_s |
struct | usb_common_descr_s |
struct | usb_device_status_s |
struct | usb_hub_descr_s |
struct | usb_hub_status_s |
struct | usb_port_status_s |
struct | usb_device_request_s |
struct | usb_hid_descr_s |
Typedefs | |
typedef struct usb_device_descr_s | usb_device_descr_t |
typedef struct usb_endpoint_descr_s | usb_endpoint_descr_t |
typedef struct usb_config_descr_s | usb_config_descr_t |
typedef struct usb_interface_descr_s | usb_interface_descr_t |
typedef struct usb_string_descr_s | usb_string_descr_t |
typedef struct usb_power_descr_s | usb_power_descr_t |
typedef struct usb_common_descr_s | usb_common_descr_t |
typedef struct usb_device_status_s | usb_device_status_t |
typedef struct usb_hub_descr_s | usb_hub_descr_t |
typedef struct usb_hub_status_s | usb_hub_status_t |
typedef struct usb_port_status_s | usb_port_status_t |
typedef struct usb_device_request_s | usb_device_request_t |
typedef struct usb_hid_descr_s | usb_hid_descr_t |
#define CONFIG_BUS_POWERED 0x80 |
Definition at line 207 of file usbchap9.h.
#define CONFIG_REMOTE_WAKEUP 0x20 |
Definition at line 209 of file usbchap9.h.
#define CONFIG_SELF_POWERED 0x40 |
Definition at line 208 of file usbchap9.h.
#define GETUSBFIELD | ( | s, | |
f | |||
) | (((s)->f##Low) | ((s)->f##High << 8)) |
Definition at line 347 of file usbchap9.h.
#define MAXIMUM_USB_STRING_LENGTH 255 |
Definition at line 53 of file usbchap9.h.
#define PUTUSBFIELD | ( | s, | |
f, | |||
v | |||
) |
Definition at line 348 of file usbchap9.h.
Definition at line 373 of file usbchap9.h.
#define REQSW | ( | req, | |
attr | |||
) | (((req) << 8) | (attr)) |
Definition at line 374 of file usbchap9.h.
#define USB_CONFIG_BUS_POWERED 0x80 |
Definition at line 92 of file usbchap9.h.
#define USB_CONFIG_POWERED_MASK 0xc0 |
Definition at line 90 of file usbchap9.h.
#define USB_CONFIG_REMOTE_WAKEUP 0x20 |
Definition at line 94 of file usbchap9.h.
#define USB_CONFIG_SELF_POWERED 0x40 |
Definition at line 93 of file usbchap9.h.
#define USB_CONFIGURATION_DESCRIPTOR_TYPE 0x02 |
Definition at line 63 of file usbchap9.h.
#define USB_CONTROL_ENDPOINT_MIN_SIZE 8 |
Definition at line 174 of file usbchap9.h.
Definition at line 71 of file usbchap9.h.
#define USB_DEVICE_CLASS_AUDIO 0x01 |
Definition at line 144 of file usbchap9.h.
#define USB_DEVICE_CLASS_COMMUNICATIONS 0x02 |
Definition at line 145 of file usbchap9.h.
#define USB_DEVICE_CLASS_HUB 0x09 |
Definition at line 152 of file usbchap9.h.
#define USB_DEVICE_CLASS_HUMAN_INTERFACE 0x03 |
Definition at line 146 of file usbchap9.h.
#define USB_DEVICE_CLASS_MONITOR 0x04 |
Definition at line 147 of file usbchap9.h.
#define USB_DEVICE_CLASS_PHYSICAL_INTERFACE 0x05 |
Definition at line 148 of file usbchap9.h.
#define USB_DEVICE_CLASS_POWER 0x06 |
Definition at line 149 of file usbchap9.h.
#define USB_DEVICE_CLASS_PRINTER 0x07 |
Definition at line 150 of file usbchap9.h.
#define USB_DEVICE_CLASS_RESERVED 0x00 |
Definition at line 143 of file usbchap9.h.
#define USB_DEVICE_CLASS_STORAGE 0x08 |
Definition at line 151 of file usbchap9.h.
#define USB_DEVICE_CLASS_VENDOR_SPECIFIC 0xFF |
Definition at line 153 of file usbchap9.h.
#define USB_DEVICE_DESCRIPTOR_TYPE 0x01 |
Definition at line 62 of file usbchap9.h.
#define USB_ENDPOINT_ADDRESS | ( | addr | ) | ((addr) & 0x0F) |
Definition at line 110 of file usbchap9.h.
#define USB_ENDPOINT_DESCRIPTOR_TYPE 0x05 |
Definition at line 66 of file usbchap9.h.
#define USB_ENDPOINT_DIR_IN | ( | addr | ) | ((addr) & USB_ENDPOINT_DIRECTION_MASK) |
Definition at line 108 of file usbchap9.h.
#define USB_ENDPOINT_DIR_OUT | ( | addr | ) | (!((addr) & USB_ENDPOINT_DIRECTION_MASK)) |
Definition at line 107 of file usbchap9.h.
#define USB_ENDPOINT_DIRECTION_IN 0x80 /* bit set means IN */ |
Definition at line 101 of file usbchap9.h.
#define USB_ENDPOINT_DIRECTION_MASK 0x80 |
Definition at line 100 of file usbchap9.h.
#define USB_ENDPOINT_TYPE_BULK 0x02 |
Definition at line 82 of file usbchap9.h.
#define USB_ENDPOINT_TYPE_CONTROL 0x00 |
Definition at line 80 of file usbchap9.h.
#define USB_ENDPOINT_TYPE_INTERRUPT 0x03 |
Definition at line 83 of file usbchap9.h.
#define USB_ENDPOINT_TYPE_ISOCHRONOUS 0x01 |
Definition at line 81 of file usbchap9.h.
#define USB_ENDPOINT_TYPE_MASK 0x03 |
Definition at line 78 of file usbchap9.h.
#define USB_FEATURE_ENDPOINT_STALL 0x0000 |
Definition at line 159 of file usbchap9.h.
#define USB_FEATURE_POWER_D0 0x0002 |
Definition at line 161 of file usbchap9.h.
#define USB_FEATURE_POWER_D1 0x0003 |
Definition at line 162 of file usbchap9.h.
#define USB_FEATURE_POWER_D2 0x0004 |
Definition at line 163 of file usbchap9.h.
#define USB_FEATURE_POWER_D3 0x0005 |
Definition at line 164 of file usbchap9.h.
#define USB_FEATURE_REMOTE_WAKEUP 0x0001 |
Definition at line 160 of file usbchap9.h.
#define USB_GETSTATUS_REMOTE_WAKEUP_ENABLED 0x02 |
Definition at line 59 of file usbchap9.h.
#define USB_GETSTATUS_SELF_POWERED 0x01 |
Definition at line 58 of file usbchap9.h.
#define USB_HID_DESCRIPTOR_TYPE 0x21 |
Definition at line 68 of file usbchap9.h.
#define USB_HUB_DESCR_SIZE 8 |
Definition at line 287 of file usbchap9.h.
#define USB_HUB_DESCRIPTOR_TYPE 0x29 |
Definition at line 69 of file usbchap9.h.
#define USB_HUB_FEATURE_C_LOCAL_POWER 0 |
Definition at line 330 of file usbchap9.h.
#define USB_HUB_FEATURE_C_OVER_CURRENT 1 |
Definition at line 331 of file usbchap9.h.
#define USB_HUBCHAR_PWR_GANGED 0 |
Definition at line 300 of file usbchap9.h.
#define USB_HUBCHAR_PWR_IND 1 |
Definition at line 301 of file usbchap9.h.
#define USB_HUBCHAR_PWR_NONE 2 |
Definition at line 302 of file usbchap9.h.
#define USB_HUBREQ_CLEAR_FEATURE 1 |
Definition at line 324 of file usbchap9.h.
#define USB_HUBREQ_GET_DESCRIPTOR 6 |
Definition at line 327 of file usbchap9.h.
#define USB_HUBREQ_GET_STATE 2 |
Definition at line 325 of file usbchap9.h.
#define USB_HUBREQ_GET_STATUS 0 |
Definition at line 323 of file usbchap9.h.
#define USB_HUBREQ_SET_DESCRIPTOR 7 |
Definition at line 328 of file usbchap9.h.
#define USB_HUBREQ_SET_FEATURE 3 |
Definition at line 326 of file usbchap9.h.
#define USB_INTERFACE_CLASS_HUB 0x09 |
Definition at line 222 of file usbchap9.h.
#define USB_INTERFACE_DESCRIPTOR_TYPE 0x04 |
Definition at line 65 of file usbchap9.h.
#define USB_PORT_FEATURE_C_PORT_CONNECTION 16 |
Definition at line 340 of file usbchap9.h.
#define USB_PORT_FEATURE_C_PORT_ENABLE 17 |
Definition at line 341 of file usbchap9.h.
#define USB_PORT_FEATURE_C_PORT_OVER_CURRENT 19 |
Definition at line 343 of file usbchap9.h.
#define USB_PORT_FEATURE_C_PORT_RESET 20 |
Definition at line 344 of file usbchap9.h.
#define USB_PORT_FEATURE_C_PORT_SUSPEND 18 |
Definition at line 342 of file usbchap9.h.
#define USB_PORT_FEATURE_CONNECTION 0 |
Definition at line 333 of file usbchap9.h.
#define USB_PORT_FEATURE_ENABLE 1 |
Definition at line 334 of file usbchap9.h.
#define USB_PORT_FEATURE_LOW_SPEED 9 |
Definition at line 339 of file usbchap9.h.
#define USB_PORT_FEATURE_OVER_CURRENT 3 |
Definition at line 336 of file usbchap9.h.
#define USB_PORT_FEATURE_POWER 8 |
Definition at line 338 of file usbchap9.h.
#define USB_PORT_FEATURE_RESET 4 |
Definition at line 337 of file usbchap9.h.
#define USB_PORT_FEATURE_SUSPEND 2 |
Definition at line 335 of file usbchap9.h.
#define USB_PORT_STATUS_CONNECT 0x0001 |
Definition at line 309 of file usbchap9.h.
#define USB_PORT_STATUS_ENABLED 0x0002 |
Definition at line 310 of file usbchap9.h.
#define USB_PORT_STATUS_LOWSPD 0x0200 |
Definition at line 315 of file usbchap9.h.
#define USB_PORT_STATUS_OVERCUR 0x0008 |
Definition at line 312 of file usbchap9.h.
#define USB_PORT_STATUS_POWER 0x0100 |
Definition at line 314 of file usbchap9.h.
#define USB_PORT_STATUS_RESET 0x0010 |
Definition at line 313 of file usbchap9.h.
#define USB_PORT_STATUS_SUSPEND 0x0004 |
Definition at line 311 of file usbchap9.h.
#define USB_POWER_DESCRIPTOR_TYPE 0x06 |
Definition at line 67 of file usbchap9.h.
#define USB_REQUEST_CLEAR_FEATURE 0x01 |
Definition at line 124 of file usbchap9.h.
#define USB_REQUEST_GET_CONFIGURATION 0x08 |
Definition at line 131 of file usbchap9.h.
#define USB_REQUEST_GET_DESCRIPTOR 0x06 |
Definition at line 129 of file usbchap9.h.
#define USB_REQUEST_GET_INTERFACE 0x0A |
Definition at line 133 of file usbchap9.h.
#define USB_REQUEST_GET_STATUS 0x00 |
Definition at line 123 of file usbchap9.h.
#define USB_REQUEST_SET_ADDRESS 0x05 |
Definition at line 128 of file usbchap9.h.
#define USB_REQUEST_SET_CONFIGURATION 0x09 |
Definition at line 132 of file usbchap9.h.
#define USB_REQUEST_SET_DESCRIPTOR 0x07 |
Definition at line 130 of file usbchap9.h.
#define USB_REQUEST_SET_FEATURE 0x03 |
Definition at line 126 of file usbchap9.h.
#define USB_REQUEST_SET_INTERFACE 0x0B |
Definition at line 134 of file usbchap9.h.
#define USB_REQUEST_SYNC_FRAME 0x0C |
Definition at line 135 of file usbchap9.h.
#define USB_STRING_DESCRIPTOR_TYPE 0x03 |
Definition at line 64 of file usbchap9.h.
#define USB_SUPPORT_D0_COMMAND 0x01 |
Definition at line 247 of file usbchap9.h.
#define USB_SUPPORT_D1_COMMAND 0x02 |
Definition at line 248 of file usbchap9.h.
#define USB_SUPPORT_D1_WAKEUP 0x10 |
Definition at line 252 of file usbchap9.h.
#define USB_SUPPORT_D2_COMMAND 0x04 |
Definition at line 249 of file usbchap9.h.
#define USB_SUPPORT_D2_WAKEUP 0x20 |
Definition at line 253 of file usbchap9.h.
#define USB_SUPPORT_D3_COMMAND 0x08 |
Definition at line 250 of file usbchap9.h.
#define USBREQ_DIR_IN 0x80 |
Definition at line 362 of file usbchap9.h.
#define USBREQ_DIR_OUT 0x00 |
Definition at line 363 of file usbchap9.h.
#define USBREQ_REC_DEVICE 0x00 |
Definition at line 368 of file usbchap9.h.
#define USBREQ_REC_ENDPOINT 0x02 |
Definition at line 370 of file usbchap9.h.
#define USBREQ_REC_INTERFACE 0x01 |
Definition at line 369 of file usbchap9.h.
#define USBREQ_REC_OTHER 0x03 |
Definition at line 371 of file usbchap9.h.
#define USBREQ_TYPE_CLASS 0x20 |
Definition at line 365 of file usbchap9.h.
#define USBREQ_TYPE_RSVD 0x60 |
Definition at line 367 of file usbchap9.h.
#define USBREQ_TYPE_STD 0x00 |
Definition at line 364 of file usbchap9.h.
#define USBREQ_TYPE_VENDOR 0x40 |
Definition at line 366 of file usbchap9.h.
#define USBWORD | ( | x | ) | ((x) & 0xFF),(((x) >> 8) & 0xFF) |
Definition at line 172 of file usbchap9.h.
typedef struct usb_common_descr_s usb_common_descr_t |
typedef struct usb_config_descr_s usb_config_descr_t |
typedef struct usb_device_descr_s usb_device_descr_t |
typedef struct usb_device_request_s usb_device_request_t |
typedef struct usb_device_status_s usb_device_status_t |
typedef struct usb_endpoint_descr_s usb_endpoint_descr_t |
typedef struct usb_hid_descr_s usb_hid_descr_t |
typedef struct usb_hub_descr_s usb_hub_descr_t |
typedef struct usb_hub_status_s usb_hub_status_t |
typedef struct usb_interface_descr_s usb_interface_descr_t |
typedef struct usb_port_status_s usb_port_status_t |
typedef struct usb_power_descr_s usb_power_descr_t |
typedef struct usb_string_descr_s usb_string_descr_t |