ReactOS  0.4.14-dev-815-ge410a12
hardware.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  _EHCI_LEGACY_EXTENDED_CAPABILITY
 
union  _EHCI_HC_STRUCTURAL_PARAMS
 
union  _EHCI_HC_CAPABILITY_PARAMS
 
struct  _EHCI_HC_CAPABILITY_REGISTERS
 
union  _EHCI_USB_COMMAND
 
union  _EHCI_USB_STATUS
 
union  _EHCI_INTERRUPT_ENABLE
 
union  _EHCI_PORT_STATUS_CONTROL
 
struct  _EHCI_HW_REGISTERS
 
union  _EHCI_LINK_POINTER
 
union  _EHCI_TRANSACTION_CONTROL
 
union  _EHCI_TRANSACTION_BUFFER
 
struct  _EHCI_ISOCHRONOUS_TD
 
union  _EHCI_FS_ENDPOINT_PARAMS
 
union  _EHCI_MICROFRAME_CONTROL
 
union  _EHCI_SPLIT_TRANSFER_STATE
 
union  _EHCI_SPLIT_BUFFER_POINTER
 
struct  _EHCI_SPLIT_ISOCHRONOUS_TD
 
union  _EHCI_TD_TOKEN
 
struct  _EHCI_QUEUE_TD
 
union  _EHCI_QH_EP_PARAMS
 
union  _EHCI_QH_EP_CAPS
 
struct  _EHCI_QUEUE_HEAD
 

Macros

#define EHCI_FRAME_LIST_MAX_ENTRIES   1024
 
#define EHCI_USBCMD   0
 
#define EHCI_USBSTS   1
 
#define EHCI_USBINTR   2
 
#define EHCI_FRINDEX   3
 
#define EHCI_CTRLDSSEGMENT   4
 
#define EHCI_PERIODICLISTBASE   5
 
#define EHCI_ASYNCLISTBASE   6
 
#define EHCI_CONFIGFLAG   16
 
#define EHCI_PORTSC   17
 
#define EHCI_FLADJ_PCI_CONFIG_OFFSET   0x61
 
#define EHCI_INTERRUPT_MASK   0x3F
 
#define EHCI_LINE_STATUS_K_STATE_LOW_SPEED   1
 
#define EHCI_PORT_OWNER_COMPANION_CONTROLLER   1
 
#define EHCI_FRINDEX_FRAME_MASK   0x7FF
 
#define EHCI_FRINDEX_INDEX_MASK   0x3FF
 
#define EHCI_CONFIG_FLAG_CONFIGURED   1
 
#define EHCI_LINK_TYPE_iTD   0
 
#define EHCI_LINK_TYPE_QH   1
 
#define EHCI_LINK_TYPE_siTD   2
 
#define EHCI_LINK_TYPE_FSTN   3
 
#define TERMINATE_POINTER   1
 
#define LINK_POINTER_MASK   0xFFFFFFE0
 
#define EHCI_MAX_QTD_BUFFER_PAGES   5
 
#define EHCI_TOKEN_STATUS_ACTIVE   (1 << 7)
 
#define EHCI_TOKEN_STATUS_HALTED   (1 << 6)
 
#define EHCI_TOKEN_STATUS_DATA_BUFFER_ERROR   (1 << 5)
 
#define EHCI_TOKEN_STATUS_BABBLE_DETECTED   (1 << 4)
 
#define EHCI_TOKEN_STATUS_TRANSACTION_ERROR   (1 << 3)
 
#define EHCI_TOKEN_STATUS_MISSED_MICROFRAME   (1 << 2)
 
#define EHCI_TOKEN_STATUS_SPLIT_STATE   (1 << 1)
 
#define EHCI_TOKEN_STATUS_PING_STATE   (1 << 0)
 
#define EHCI_TD_TOKEN_PID_OUT   0
 
#define EHCI_TD_TOKEN_PID_IN   1
 
#define EHCI_TD_TOKEN_PID_SETUP   2
 
#define EHCI_TD_TOKEN_PID_RESERVED   3
 
#define EHCI_QH_EP_FULL_SPEED   0
 
#define EHCI_QH_EP_LOW_SPEED   1
 
#define EHCI_QH_EP_HIGH_SPEED   2
 

Typedefs

typedef union _EHCI_LEGACY_EXTENDED_CAPABILITY EHCI_LEGACY_EXTENDED_CAPABILITY
 
typedef union _EHCI_HC_STRUCTURAL_PARAMS EHCI_HC_STRUCTURAL_PARAMS
 
typedef union _EHCI_HC_CAPABILITY_PARAMS EHCI_HC_CAPABILITY_PARAMS
 
typedef struct _EHCI_HC_CAPABILITY_REGISTERS EHCI_HC_CAPABILITY_REGISTERS
 
typedef struct _EHCI_HC_CAPABILITY_REGISTERSPEHCI_HC_CAPABILITY_REGISTERS
 
typedef union _EHCI_USB_COMMAND EHCI_USB_COMMAND
 
typedef union _EHCI_USB_STATUS EHCI_USB_STATUS
 
typedef union _EHCI_INTERRUPT_ENABLE EHCI_INTERRUPT_ENABLE
 
typedef union _EHCI_PORT_STATUS_CONTROL EHCI_PORT_STATUS_CONTROL
 
typedef struct _EHCI_HW_REGISTERS EHCI_HW_REGISTERS
 
typedef struct _EHCI_HW_REGISTERSPEHCI_HW_REGISTERS
 
typedef union _EHCI_LINK_POINTER EHCI_LINK_POINTER
 
typedef union _EHCI_TRANSACTION_CONTROL EHCI_TRANSACTION_CONTROL
 
typedef union _EHCI_TRANSACTION_BUFFER EHCI_TRANSACTION_BUFFER
 
typedef struct _EHCI_ISOCHRONOUS_TD EHCI_ISOCHRONOUS_TD
 
typedef struct _EHCI_ISOCHRONOUS_TDPEHCI_ISOCHRONOUS_TD
 
typedef union _EHCI_FS_ENDPOINT_PARAMS EHCI_FS_ENDPOINT_PARAMS
 
typedef union _EHCI_MICROFRAME_CONTROL EHCI_MICROFRAME_CONTROL
 
typedef union _EHCI_SPLIT_TRANSFER_STATE EHCI_SPLIT_TRANSFER_STATE
 
typedef union _EHCI_SPLIT_BUFFER_POINTER EHCI_SPLIT_BUFFER_POINTER
 
typedef struct _EHCI_SPLIT_ISOCHRONOUS_TD EHCI_SPLIT_ISOCHRONOUS_TD
 
typedef struct _EHCI_SPLIT_ISOCHRONOUS_TDPEHCI_SPLIT_ISOCHRONOUS_TD
 
typedef union _EHCI_TD_TOKEN EHCI_TD_TOKEN
 
typedef union _EHCI_TD_TOKENPEHCI_TD_TOKEN
 
typedef struct _EHCI_QUEUE_TD EHCI_QUEUE_TD
 
typedef struct _EHCI_QUEUE_TDPEHCI_QUEUE_TD
 
typedef union _EHCI_QH_EP_PARAMS EHCI_QH_EP_PARAMS
 
typedef union _EHCI_QH_EP_CAPS EHCI_QH_EP_CAPS
 
typedef struct _EHCI_QUEUE_HEAD EHCI_QUEUE_HEAD
 
typedef struct _EHCI_QUEUE_HEADPEHCI_QUEUE_HEAD
 

Functions

 C_ASSERT (sizeof(EHCI_LEGACY_EXTENDED_CAPABILITY)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_HC_STRUCTURAL_PARAMS)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_HC_CAPABILITY_PARAMS)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_USB_COMMAND)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_USB_STATUS)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_INTERRUPT_ENABLE)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_PORT_STATUS_CONTROL)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_LINK_POINTER)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_TRANSACTION_CONTROL)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_TRANSACTION_BUFFER)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_ISOCHRONOUS_TD)==92)
 
 C_ASSERT (sizeof(EHCI_FS_ENDPOINT_PARAMS)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_MICROFRAME_CONTROL)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_SPLIT_TRANSFER_STATE)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_SPLIT_BUFFER_POINTER)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_SPLIT_ISOCHRONOUS_TD)==36)
 
 C_ASSERT (sizeof(EHCI_TD_TOKEN)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_QUEUE_TD)==52)
 
 C_ASSERT (sizeof(EHCI_QH_EP_PARAMS)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_QH_EP_CAPS)==sizeof(ULONG))
 
 C_ASSERT (sizeof(EHCI_QUEUE_HEAD)==68)
 

Macro Definition Documentation

◆ EHCI_ASYNCLISTBASE

#define EHCI_ASYNCLISTBASE   6

Definition at line 17 of file hardware.h.

◆ EHCI_CONFIG_FLAG_CONFIGURED

#define EHCI_CONFIG_FLAG_CONFIGURED   1

Definition at line 171 of file hardware.h.

◆ EHCI_CONFIGFLAG

#define EHCI_CONFIGFLAG   16

Definition at line 18 of file hardware.h.

◆ EHCI_CTRLDSSEGMENT

#define EHCI_CTRLDSSEGMENT   4

Definition at line 15 of file hardware.h.

◆ EHCI_FLADJ_PCI_CONFIG_OFFSET

#define EHCI_FLADJ_PCI_CONFIG_OFFSET   0x61

Definition at line 21 of file hardware.h.

◆ EHCI_FRAME_LIST_MAX_ENTRIES

#define EHCI_FRAME_LIST_MAX_ENTRIES   1024

Definition at line 8 of file hardware.h.

◆ EHCI_FRINDEX

#define EHCI_FRINDEX   3

Definition at line 14 of file hardware.h.

◆ EHCI_FRINDEX_FRAME_MASK

#define EHCI_FRINDEX_FRAME_MASK   0x7FF

Definition at line 168 of file hardware.h.

◆ EHCI_FRINDEX_INDEX_MASK

#define EHCI_FRINDEX_INDEX_MASK   0x3FF

Definition at line 169 of file hardware.h.

◆ EHCI_INTERRUPT_MASK

#define EHCI_INTERRUPT_MASK   0x3F

Definition at line 120 of file hardware.h.

◆ EHCI_LINE_STATUS_K_STATE_LOW_SPEED

#define EHCI_LINE_STATUS_K_STATE_LOW_SPEED   1

Definition at line 137 of file hardware.h.

◆ EHCI_LINK_TYPE_FSTN

#define EHCI_LINK_TYPE_FSTN   3

Definition at line 190 of file hardware.h.

◆ EHCI_LINK_TYPE_iTD

#define EHCI_LINK_TYPE_iTD   0

Definition at line 187 of file hardware.h.

◆ EHCI_LINK_TYPE_QH

#define EHCI_LINK_TYPE_QH   1

Definition at line 188 of file hardware.h.

◆ EHCI_LINK_TYPE_siTD

#define EHCI_LINK_TYPE_siTD   2

Definition at line 189 of file hardware.h.

◆ EHCI_MAX_QTD_BUFFER_PAGES

#define EHCI_MAX_QTD_BUFFER_PAGES   5

Definition at line 329 of file hardware.h.

◆ EHCI_PERIODICLISTBASE

#define EHCI_PERIODICLISTBASE   5

Definition at line 16 of file hardware.h.

◆ EHCI_PORT_OWNER_COMPANION_CONTROLLER

#define EHCI_PORT_OWNER_COMPANION_CONTROLLER   1

Definition at line 138 of file hardware.h.

◆ EHCI_PORTSC

#define EHCI_PORTSC   17

Definition at line 19 of file hardware.h.

◆ EHCI_QH_EP_FULL_SPEED

#define EHCI_QH_EP_FULL_SPEED   0

Definition at line 371 of file hardware.h.

◆ EHCI_QH_EP_HIGH_SPEED

#define EHCI_QH_EP_HIGH_SPEED   2

Definition at line 373 of file hardware.h.

◆ EHCI_QH_EP_LOW_SPEED

#define EHCI_QH_EP_LOW_SPEED   1

Definition at line 372 of file hardware.h.

◆ EHCI_TD_TOKEN_PID_IN

#define EHCI_TD_TOKEN_PID_IN   1

Definition at line 341 of file hardware.h.

◆ EHCI_TD_TOKEN_PID_OUT

#define EHCI_TD_TOKEN_PID_OUT   0

Definition at line 340 of file hardware.h.

◆ EHCI_TD_TOKEN_PID_RESERVED

#define EHCI_TD_TOKEN_PID_RESERVED   3

Definition at line 343 of file hardware.h.

◆ EHCI_TD_TOKEN_PID_SETUP

#define EHCI_TD_TOKEN_PID_SETUP   2

Definition at line 342 of file hardware.h.

◆ EHCI_TOKEN_STATUS_ACTIVE

#define EHCI_TOKEN_STATUS_ACTIVE   (1 << 7)

Definition at line 331 of file hardware.h.

◆ EHCI_TOKEN_STATUS_BABBLE_DETECTED

#define EHCI_TOKEN_STATUS_BABBLE_DETECTED   (1 << 4)

Definition at line 334 of file hardware.h.

◆ EHCI_TOKEN_STATUS_DATA_BUFFER_ERROR

#define EHCI_TOKEN_STATUS_DATA_BUFFER_ERROR   (1 << 5)

Definition at line 333 of file hardware.h.

◆ EHCI_TOKEN_STATUS_HALTED

#define EHCI_TOKEN_STATUS_HALTED   (1 << 6)

Definition at line 332 of file hardware.h.

◆ EHCI_TOKEN_STATUS_MISSED_MICROFRAME

#define EHCI_TOKEN_STATUS_MISSED_MICROFRAME   (1 << 2)

Definition at line 336 of file hardware.h.

◆ EHCI_TOKEN_STATUS_PING_STATE

#define EHCI_TOKEN_STATUS_PING_STATE   (1 << 0)

Definition at line 338 of file hardware.h.

◆ EHCI_TOKEN_STATUS_SPLIT_STATE

#define EHCI_TOKEN_STATUS_SPLIT_STATE   (1 << 1)

Definition at line 337 of file hardware.h.

◆ EHCI_TOKEN_STATUS_TRANSACTION_ERROR

#define EHCI_TOKEN_STATUS_TRANSACTION_ERROR   (1 << 3)

Definition at line 335 of file hardware.h.

◆ EHCI_USBCMD

#define EHCI_USBCMD   0

Definition at line 11 of file hardware.h.

◆ EHCI_USBINTR

#define EHCI_USBINTR   2

Definition at line 13 of file hardware.h.

◆ EHCI_USBSTS

#define EHCI_USBSTS   1

Definition at line 12 of file hardware.h.

◆ LINK_POINTER_MASK

#define LINK_POINTER_MASK   0xFFFFFFE0

Definition at line 195 of file hardware.h.

◆ TERMINATE_POINTER

#define TERMINATE_POINTER   1

Definition at line 193 of file hardware.h.

Typedef Documentation

◆ EHCI_FS_ENDPOINT_PARAMS

◆ EHCI_HC_CAPABILITY_PARAMS

◆ EHCI_HC_CAPABILITY_REGISTERS

◆ EHCI_HC_STRUCTURAL_PARAMS

◆ EHCI_HW_REGISTERS

◆ EHCI_INTERRUPT_ENABLE

◆ EHCI_ISOCHRONOUS_TD

◆ EHCI_LEGACY_EXTENDED_CAPABILITY

◆ EHCI_LINK_POINTER

◆ EHCI_MICROFRAME_CONTROL

◆ EHCI_PORT_STATUS_CONTROL

◆ EHCI_QH_EP_CAPS

◆ EHCI_QH_EP_PARAMS

◆ EHCI_QUEUE_HEAD

◆ EHCI_QUEUE_TD

◆ EHCI_SPLIT_BUFFER_POINTER

◆ EHCI_SPLIT_ISOCHRONOUS_TD

◆ EHCI_SPLIT_TRANSFER_STATE

◆ EHCI_TD_TOKEN

◆ EHCI_TRANSACTION_BUFFER

◆ EHCI_TRANSACTION_CONTROL

◆ EHCI_USB_COMMAND

◆ EHCI_USB_STATUS

◆ PEHCI_HC_CAPABILITY_REGISTERS

◆ PEHCI_HW_REGISTERS

◆ PEHCI_ISOCHRONOUS_TD

◆ PEHCI_QUEUE_HEAD

◆ PEHCI_QUEUE_TD

◆ PEHCI_SPLIT_ISOCHRONOUS_TD

◆ PEHCI_TD_TOKEN

typedef union _EHCI_TD_TOKEN * PEHCI_TD_TOKEN

Function Documentation

◆ C_ASSERT() [1/21]

◆ C_ASSERT() [2/21]

◆ C_ASSERT() [3/21]

◆ C_ASSERT() [4/21]

C_ASSERT ( sizeof(EHCI_USB_COMMAND = =sizeof(ULONG))

◆ C_ASSERT() [5/21]

C_ASSERT ( sizeof(EHCI_USB_STATUS = =sizeof(ULONG))

◆ C_ASSERT() [6/21]

◆ C_ASSERT() [7/21]

◆ C_ASSERT() [8/21]

C_ASSERT ( sizeof(EHCI_LINK_POINTER = =sizeof(ULONG))

◆ C_ASSERT() [9/21]

◆ C_ASSERT() [10/21]

◆ C_ASSERT() [11/21]

C_ASSERT ( sizeof(EHCI_ISOCHRONOUS_TD = =92)

◆ C_ASSERT() [12/21]

◆ C_ASSERT() [13/21]

◆ C_ASSERT() [14/21]

◆ C_ASSERT() [15/21]

◆ C_ASSERT() [16/21]

C_ASSERT ( sizeof(EHCI_SPLIT_ISOCHRONOUS_TD = =36)

◆ C_ASSERT() [17/21]

C_ASSERT ( sizeof(EHCI_TD_TOKEN = =sizeof(ULONG))

◆ C_ASSERT() [18/21]

C_ASSERT ( sizeof(EHCI_QUEUE_TD = =52)

◆ C_ASSERT() [19/21]

C_ASSERT ( sizeof(EHCI_QH_EP_PARAMS = =sizeof(ULONG))

◆ C_ASSERT() [20/21]

C_ASSERT ( sizeof(EHCI_QH_EP_CAPS = =sizeof(ULONG))

◆ C_ASSERT() [21/21]

C_ASSERT ( sizeof(EHCI_QUEUE_HEAD = =68)