ReactOS 0.4.16-dev-338-g34e76ad
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  _OHCI_TRANSFER_CONTROL
 
struct  _OHCI_TRANSFER_DESCRIPTOR
 
union  _OHCI_ISO_TRANSFER_CONTROL
 
struct  _OHCI_ISO_TRANSFER_DESCRIPTOR
 
union  _OHCI_ENDPOINT_CONTROL
 
struct  _OHCI_ENDPOINT_DESCRIPTOR
 
struct  _OHCI_HCCA
 
union  _OHCI_REG_CONTROL
 
union  _OHCI_REG_COMMAND_STATUS
 
union  _OHCI_REG_INTERRUPT_STATUS
 
union  _OHCI_REG_INTERRUPT_ENABLE_DISABLE
 
union  _OHCI_REG_FRAME_INTERVAL
 
union  _OHCI_REG_RH_DESCRIPTORA
 
union  _OHCI_REG_RH_STATUS
 
union  _OHCI_REG_RH_PORT_STATUS
 
struct  _OHCI_OPERATIONAL_REGISTERS
 

Macros

#define OHCI_NUMBER_OF_INTERRUPTS   32
 
#define OHCI_MAX_PORT_COUNT   15
 
#define ED_EOF   -1
 
#define OHCI_MAXIMUM_OVERHEAD   210
 
#define OHCI_DEFAULT_FRAME_INTERVAL   11999
 
#define OHCI_MINIMAL_POTPGT   25
 
#define OHCI_HC_STATE_RESET   0
 
#define OHCI_HC_STATE_RESUME   1
 
#define OHCI_HC_STATE_OPERATIONAL   2
 
#define OHCI_HC_STATE_SUSPEND   3
 
#define OHCI_ED_DATA_FLOW_DIRECTION_FROM_TD   0
 
#define OHCI_ED_DATA_FLOW_DIRECTION_OUT   1
 
#define OHCI_ED_DATA_FLOW_DIRECTION_IN   2
 
#define OHCI_ENDPOINT_FULL_SPEED   0
 
#define OHCI_ENDPOINT_LOW_SPEED   1
 
#define OHCI_ENDPOINT_GENERAL_FORMAT   0
 
#define OHCI_ENDPOINT_ISOCHRONOUS_FORMAT   1
 
#define OHCI_TD_INTERRUPT_IMMEDIATE   0
 
#define OHCI_TD_INTERRUPT_NONE   7
 
#define OHCI_TD_DIRECTION_PID_SETUP   0
 
#define OHCI_TD_DIRECTION_PID_OUT   1
 
#define OHCI_TD_DIRECTION_PID_IN   2
 
#define OHCI_TD_DIRECTION_PID_RESERVED   3
 
#define OHCI_TD_DATA_TOGGLE_FROM_ED   0
 
#define OHCI_TD_DATA_TOGGLE_DATA0   2
 
#define OHCI_TD_DATA_TOGGLE_DATA1   3
 
#define OHCI_TD_CONDITION_NO_ERROR   0x00
 
#define OHCI_TD_CONDITION_CRC_ERROR   0x01
 
#define OHCI_TD_CONDITION_BIT_STUFFING   0x02
 
#define OHCI_TD_CONDITION_TOGGLE_MISMATCH   0x03
 
#define OHCI_TD_CONDITION_STALL   0x04
 
#define OHCI_TD_CONDITION_NO_RESPONSE   0x05
 
#define OHCI_TD_CONDITION_PID_CHECK_FAILURE   0x06
 
#define OHCI_TD_CONDITION_UNEXPECTED_PID   0x07
 
#define OHCI_TD_CONDITION_DATA_OVERRUN   0x08
 
#define OHCI_TD_CONDITION_DATA_UNDERRUN   0x09
 
#define OHCI_TD_CONDITION_BUFFER_OVERRUN   0x0C
 
#define OHCI_TD_CONDITION_BUFFER_UNDERRUN   0x0D
 
#define OHCI_TD_CONDITION_NOT_ACCESSED   0x0E
 
#define OHCI_ED_HEAD_POINTER_HALT   0x00000001
 
#define OHCI_ED_HEAD_POINTER_CARRY   0x00000002
 
#define OHCI_ED_HEAD_POINTER_MASK   0XFFFFFFF0
 
#define OHCI_ED_HEAD_POINTER_FLAGS_MASK   0X0000000F
 

Typedefs

typedef union _OHCI_TRANSFER_CONTROL OHCI_TRANSFER_CONTROL
 
typedef union _OHCI_TRANSFER_CONTROLPOHCI_TRANSFER_CONTROL
 
typedef struct _OHCI_TRANSFER_DESCRIPTOR OHCI_TRANSFER_DESCRIPTOR
 
typedef struct _OHCI_TRANSFER_DESCRIPTORPOHCI_TRANSFER_DESCRIPTOR
 
typedef union _OHCI_ISO_TRANSFER_CONTROL OHCI_ISO_TRANSFER_CONTROL
 
typedef union _OHCI_ISO_TRANSFER_CONTROLPOHCI_ISO_TRANSFER_CONTROL
 
typedef struct _OHCI_ISO_TRANSFER_DESCRIPTOR OHCI_ISO_TRANSFER_DESCRIPTOR
 
typedef struct _OHCI_ISO_TRANSFER_DESCRIPTORPOHCI_ISO_TRANSFER_DESCRIPTOR
 
typedef union _OHCI_ENDPOINT_CONTROL OHCI_ENDPOINT_CONTROL
 
typedef union _OHCI_ENDPOINT_CONTROLPOHCI_ENDPOINT_CONTROL
 
typedef struct _OHCI_ENDPOINT_DESCRIPTOR OHCI_ENDPOINT_DESCRIPTOR
 
typedef struct _OHCI_ENDPOINT_DESCRIPTORPOHCI_ENDPOINT_DESCRIPTOR
 
typedef struct _OHCI_HCCA OHCI_HCCA
 
typedef struct _OHCI_HCCAPOHCI_HCCA
 
typedef union _OHCI_REG_CONTROL OHCI_REG_CONTROL
 
typedef union _OHCI_REG_CONTROLPOHCI_REG_CONTROL
 
typedef union _OHCI_REG_COMMAND_STATUS OHCI_REG_COMMAND_STATUS
 
typedef union _OHCI_REG_COMMAND_STATUSPOHCI_REG_COMMAND_STATUS
 
typedef union _OHCI_REG_INTERRUPT_STATUS OHCI_REG_INTERRUPT_STATUS
 
typedef union _OHCI_REG_INTERRUPT_STATUSPOHCI_REG_INTERRUPT_STATUS
 
typedef union _OHCI_REG_INTERRUPT_ENABLE_DISABLE OHCI_REG_INTERRUPT_ENABLE_DISABLE
 
typedef union _OHCI_REG_INTERRUPT_ENABLE_DISABLEPOHCI_REG_INTERRUPT_ENABLE_DISABLE
 
typedef union _OHCI_REG_FRAME_INTERVAL OHCI_REG_FRAME_INTERVAL
 
typedef union _OHCI_REG_FRAME_INTERVALPOHCI_REG_FRAME_INTERVAL
 
typedef union _OHCI_REG_RH_DESCRIPTORA OHCI_REG_RH_DESCRIPTORA
 
typedef union _OHCI_REG_RH_DESCRIPTORAPOHCI_REG_RH_DESCRIPTORA
 
typedef union _OHCI_REG_RH_STATUS OHCI_REG_RH_STATUS
 
typedef union _OHCI_REG_RH_STATUSPOHCI_REG_RH_STATUS
 
typedef union _OHCI_REG_RH_PORT_STATUS OHCI_REG_RH_PORT_STATUS
 
typedef union _OHCI_REG_RH_PORT_STATUSPOHCI_REG_RH_PORT_STATUS
 
typedef struct _OHCI_OPERATIONAL_REGISTERS OHCI_OPERATIONAL_REGISTERS
 
typedef struct _OHCI_OPERATIONAL_REGISTERSPOHCI_OPERATIONAL_REGISTERS
 

Functions

 C_ASSERT (sizeof(OHCI_TRANSFER_CONTROL)==sizeof(ULONG))
 
 C_ASSERT (sizeof(OHCI_TRANSFER_DESCRIPTOR)==16)
 
 C_ASSERT (sizeof(OHCI_ISO_TRANSFER_CONTROL)==sizeof(ULONG))
 
 C_ASSERT (sizeof(OHCI_ISO_TRANSFER_DESCRIPTOR)==32)
 
 C_ASSERT (sizeof(OHCI_ENDPOINT_CONTROL)==sizeof(ULONG))
 
 C_ASSERT (sizeof(OHCI_ENDPOINT_DESCRIPTOR)==16)
 
 C_ASSERT (sizeof(OHCI_HCCA)==256)
 
 C_ASSERT (sizeof(OHCI_REG_CONTROL)==sizeof(ULONG))
 
 C_ASSERT (sizeof(OHCI_REG_COMMAND_STATUS)==sizeof(ULONG))
 
 C_ASSERT (sizeof(OHCI_REG_INTERRUPT_STATUS)==sizeof(ULONG))
 
 C_ASSERT (sizeof(OHCI_REG_INTERRUPT_ENABLE_DISABLE)==sizeof(ULONG))
 
 C_ASSERT (sizeof(OHCI_REG_FRAME_INTERVAL)==sizeof(ULONG))
 
 C_ASSERT (sizeof(OHCI_REG_RH_DESCRIPTORA)==sizeof(ULONG))
 
 C_ASSERT (sizeof(OHCI_REG_RH_STATUS)==sizeof(ULONG))
 
 C_ASSERT (sizeof(OHCI_REG_RH_PORT_STATUS)==sizeof(ULONG))
 

Macro Definition Documentation

◆ ED_EOF

#define ED_EOF   -1

Definition at line 10 of file hardware.h.

◆ OHCI_DEFAULT_FRAME_INTERVAL

#define OHCI_DEFAULT_FRAME_INTERVAL   11999

Definition at line 12 of file hardware.h.

◆ OHCI_ED_DATA_FLOW_DIRECTION_FROM_TD

#define OHCI_ED_DATA_FLOW_DIRECTION_FROM_TD   0

Definition at line 22 of file hardware.h.

◆ OHCI_ED_DATA_FLOW_DIRECTION_IN

#define OHCI_ED_DATA_FLOW_DIRECTION_IN   2

Definition at line 24 of file hardware.h.

◆ OHCI_ED_DATA_FLOW_DIRECTION_OUT

#define OHCI_ED_DATA_FLOW_DIRECTION_OUT   1

Definition at line 23 of file hardware.h.

◆ OHCI_ED_HEAD_POINTER_CARRY

#define OHCI_ED_HEAD_POINTER_CARRY   0x00000002

Definition at line 125 of file hardware.h.

◆ OHCI_ED_HEAD_POINTER_FLAGS_MASK

#define OHCI_ED_HEAD_POINTER_FLAGS_MASK   0X0000000F

Definition at line 127 of file hardware.h.

◆ OHCI_ED_HEAD_POINTER_HALT

#define OHCI_ED_HEAD_POINTER_HALT   0x00000001

Definition at line 124 of file hardware.h.

◆ OHCI_ED_HEAD_POINTER_MASK

#define OHCI_ED_HEAD_POINTER_MASK   0XFFFFFFF0

Definition at line 126 of file hardware.h.

◆ OHCI_ENDPOINT_FULL_SPEED

#define OHCI_ENDPOINT_FULL_SPEED   0

Definition at line 26 of file hardware.h.

◆ OHCI_ENDPOINT_GENERAL_FORMAT

#define OHCI_ENDPOINT_GENERAL_FORMAT   0

Definition at line 29 of file hardware.h.

◆ OHCI_ENDPOINT_ISOCHRONOUS_FORMAT

#define OHCI_ENDPOINT_ISOCHRONOUS_FORMAT   1

Definition at line 30 of file hardware.h.

◆ OHCI_ENDPOINT_LOW_SPEED

#define OHCI_ENDPOINT_LOW_SPEED   1

Definition at line 27 of file hardware.h.

◆ OHCI_HC_STATE_OPERATIONAL

#define OHCI_HC_STATE_OPERATIONAL   2

Definition at line 18 of file hardware.h.

◆ OHCI_HC_STATE_RESET

#define OHCI_HC_STATE_RESET   0

Definition at line 16 of file hardware.h.

◆ OHCI_HC_STATE_RESUME

#define OHCI_HC_STATE_RESUME   1

Definition at line 17 of file hardware.h.

◆ OHCI_HC_STATE_SUSPEND

#define OHCI_HC_STATE_SUSPEND   3

Definition at line 19 of file hardware.h.

◆ OHCI_MAX_PORT_COUNT

#define OHCI_MAX_PORT_COUNT   15

Definition at line 9 of file hardware.h.

◆ OHCI_MAXIMUM_OVERHEAD

#define OHCI_MAXIMUM_OVERHEAD   210

Definition at line 11 of file hardware.h.

◆ OHCI_MINIMAL_POTPGT

#define OHCI_MINIMAL_POTPGT   25

Definition at line 13 of file hardware.h.

◆ OHCI_NUMBER_OF_INTERRUPTS

#define OHCI_NUMBER_OF_INTERRUPTS   32

Definition at line 8 of file hardware.h.

◆ OHCI_TD_CONDITION_BIT_STUFFING

#define OHCI_TD_CONDITION_BIT_STUFFING   0x02

Definition at line 47 of file hardware.h.

◆ OHCI_TD_CONDITION_BUFFER_OVERRUN

#define OHCI_TD_CONDITION_BUFFER_OVERRUN   0x0C

Definition at line 55 of file hardware.h.

◆ OHCI_TD_CONDITION_BUFFER_UNDERRUN

#define OHCI_TD_CONDITION_BUFFER_UNDERRUN   0x0D

Definition at line 56 of file hardware.h.

◆ OHCI_TD_CONDITION_CRC_ERROR

#define OHCI_TD_CONDITION_CRC_ERROR   0x01

Definition at line 46 of file hardware.h.

◆ OHCI_TD_CONDITION_DATA_OVERRUN

#define OHCI_TD_CONDITION_DATA_OVERRUN   0x08

Definition at line 53 of file hardware.h.

◆ OHCI_TD_CONDITION_DATA_UNDERRUN

#define OHCI_TD_CONDITION_DATA_UNDERRUN   0x09

Definition at line 54 of file hardware.h.

◆ OHCI_TD_CONDITION_NO_ERROR

#define OHCI_TD_CONDITION_NO_ERROR   0x00

Definition at line 45 of file hardware.h.

◆ OHCI_TD_CONDITION_NO_RESPONSE

#define OHCI_TD_CONDITION_NO_RESPONSE   0x05

Definition at line 50 of file hardware.h.

◆ OHCI_TD_CONDITION_NOT_ACCESSED

#define OHCI_TD_CONDITION_NOT_ACCESSED   0x0E

Definition at line 57 of file hardware.h.

◆ OHCI_TD_CONDITION_PID_CHECK_FAILURE

#define OHCI_TD_CONDITION_PID_CHECK_FAILURE   0x06

Definition at line 51 of file hardware.h.

◆ OHCI_TD_CONDITION_STALL

#define OHCI_TD_CONDITION_STALL   0x04

Definition at line 49 of file hardware.h.

◆ OHCI_TD_CONDITION_TOGGLE_MISMATCH

#define OHCI_TD_CONDITION_TOGGLE_MISMATCH   0x03

Definition at line 48 of file hardware.h.

◆ OHCI_TD_CONDITION_UNEXPECTED_PID

#define OHCI_TD_CONDITION_UNEXPECTED_PID   0x07

Definition at line 52 of file hardware.h.

◆ OHCI_TD_DATA_TOGGLE_DATA0

#define OHCI_TD_DATA_TOGGLE_DATA0   2

Definition at line 42 of file hardware.h.

◆ OHCI_TD_DATA_TOGGLE_DATA1

#define OHCI_TD_DATA_TOGGLE_DATA1   3

Definition at line 43 of file hardware.h.

◆ OHCI_TD_DATA_TOGGLE_FROM_ED

#define OHCI_TD_DATA_TOGGLE_FROM_ED   0

Definition at line 41 of file hardware.h.

◆ OHCI_TD_DIRECTION_PID_IN

#define OHCI_TD_DIRECTION_PID_IN   2

Definition at line 38 of file hardware.h.

◆ OHCI_TD_DIRECTION_PID_OUT

#define OHCI_TD_DIRECTION_PID_OUT   1

Definition at line 37 of file hardware.h.

◆ OHCI_TD_DIRECTION_PID_RESERVED

#define OHCI_TD_DIRECTION_PID_RESERVED   3

Definition at line 39 of file hardware.h.

◆ OHCI_TD_DIRECTION_PID_SETUP

#define OHCI_TD_DIRECTION_PID_SETUP   0

Definition at line 36 of file hardware.h.

◆ OHCI_TD_INTERRUPT_IMMEDIATE

#define OHCI_TD_INTERRUPT_IMMEDIATE   0

Definition at line 33 of file hardware.h.

◆ OHCI_TD_INTERRUPT_NONE

#define OHCI_TD_INTERRUPT_NONE   7

Definition at line 34 of file hardware.h.

Typedef Documentation

◆ OHCI_ENDPOINT_CONTROL

◆ OHCI_ENDPOINT_DESCRIPTOR

◆ OHCI_HCCA

◆ OHCI_ISO_TRANSFER_CONTROL

◆ OHCI_ISO_TRANSFER_DESCRIPTOR

◆ OHCI_OPERATIONAL_REGISTERS

◆ OHCI_REG_COMMAND_STATUS

◆ OHCI_REG_CONTROL

◆ OHCI_REG_FRAME_INTERVAL

◆ OHCI_REG_INTERRUPT_ENABLE_DISABLE

◆ OHCI_REG_INTERRUPT_STATUS

◆ OHCI_REG_RH_DESCRIPTORA

◆ OHCI_REG_RH_PORT_STATUS

◆ OHCI_REG_RH_STATUS

◆ OHCI_TRANSFER_CONTROL

◆ OHCI_TRANSFER_DESCRIPTOR

◆ POHCI_ENDPOINT_CONTROL

◆ POHCI_ENDPOINT_DESCRIPTOR

◆ POHCI_HCCA

◆ POHCI_ISO_TRANSFER_CONTROL

◆ POHCI_ISO_TRANSFER_DESCRIPTOR

◆ POHCI_OPERATIONAL_REGISTERS

◆ POHCI_REG_COMMAND_STATUS

◆ POHCI_REG_CONTROL

◆ POHCI_REG_FRAME_INTERVAL

◆ POHCI_REG_INTERRUPT_ENABLE_DISABLE

◆ POHCI_REG_INTERRUPT_STATUS

◆ POHCI_REG_RH_DESCRIPTORA

◆ POHCI_REG_RH_PORT_STATUS

◆ POHCI_REG_RH_STATUS

◆ POHCI_TRANSFER_CONTROL

◆ POHCI_TRANSFER_DESCRIPTOR

Function Documentation

◆ C_ASSERT() [1/15]

◆ C_ASSERT() [2/15]

C_ASSERT ( sizeof(OHCI_ENDPOINT_DESCRIPTOR = =16)

◆ C_ASSERT() [3/15]

C_ASSERT ( sizeof(OHCI_HCCA = =256)

◆ C_ASSERT() [4/15]

◆ C_ASSERT() [5/15]

C_ASSERT ( sizeof(OHCI_ISO_TRANSFER_DESCRIPTOR = =32)

◆ C_ASSERT() [6/15]

◆ C_ASSERT() [7/15]

C_ASSERT ( sizeof(OHCI_REG_CONTROL = =sizeof(ULONG))

◆ C_ASSERT() [8/15]

◆ C_ASSERT() [9/15]

◆ C_ASSERT() [10/15]

◆ C_ASSERT() [11/15]

◆ C_ASSERT() [12/15]

◆ C_ASSERT() [13/15]

C_ASSERT ( sizeof(OHCI_REG_RH_STATUS = =sizeof(ULONG))

◆ C_ASSERT() [14/15]

◆ C_ASSERT() [15/15]

C_ASSERT ( sizeof(OHCI_TRANSFER_DESCRIPTOR = =16)