#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | ohci_regs |
OHCI memory mapped registers structure. More... | |
Defines | |
#define | C_BLE (1 << 5) |
#define | C_CLE (1 << 4) |
#define | C_CSBR_1_1 (0x0) |
#define | C_CSBR_1_2 (0x1) |
#define | C_CSBR_1_3 (0x2) |
#define | C_CSBR_1_4 (0x3) |
#define | C_CSBR_MASK (0x3) |
#define | C_CSBR_SHIFT (0) |
#define | C_HCFS_MASK (0x3) |
#define | C_HCFS_OPERATIONAL (0x2) |
#define | C_HCFS_RESET (0x0) |
#define | C_HCFS_RESUME (0x1) |
#define | C_HCFS_SHIFT (6) |
#define | C_HCFS_SUSPEND (0x3) |
#define | C_IE (1 << 3) |
#define | C_IR (1 << 8) |
#define | C_PLE (1 << 2) |
#define | C_RWC (1 << 9) |
#define | C_RWE (1 << 10) |
#define | CS_BLF (1 << 2) |
#define | CS_CLF (1 << 1) |
#define | CS_HCR (1 << 0) |
#define | CS_OCR (1 << 3) |
#define | CS_SOC_MASK (0x3) |
#define | CS_SOC_SHIFT (16) |
#define | FMI_FI_MASK (0x3fff) |
#define | FMI_FI_SHIFT (0) |
#define | FMI_FSMPS_MASK (0x7fff) |
#define | FMI_FSMPS_SHIFT (16) |
#define | FMI_TOGGLE_FLAG (1 << 31) |
#define | FMN_NUMBER_MASK (0xffff) |
#define | FMR_FR_MASK FMI_FI_MASK |
#define | FMR_FR_SHIFT FMI_FI_SHIFT |
#define | FMR_TOGGLE_FLAG FMI_TOGGLE_FLAG |
#define | HCCA_PTR_MASK 0xffffff00 |
#define | I_FNO (1 << 5) |
#define | I_MI (1 << 31) |
#define | I_OC (1 << 30) |
#define | I_RD (1 << 3) |
#define | I_RHSC (1 << 6) |
#define | I_SF (1 << 2) |
#define | I_SO (1 << 0) |
#define | I_UE (1 << 4) |
#define | I_WDH (1 << 1) |
#define | LST_LST_MASK (0x7fff) |
#define | PS_PS_MASK (0x3fff) |
#define | RHDA_DT_FLAG (1 << 10) |
#define | RHDA_NDS_MASK (0xff) |
#define | RHDA_NDS_SHIFT (0) |
#define | RHDA_NOCP (1 << 12) |
#define | RHDA_NPS_FLAG (1 << 9) |
#define | RHDA_OCPM_FLAG (1 << 11) |
#define | RHDA_POTPGT_MASK (0xff) |
#define | RHDA_POTPGT_SHIFT (24) |
#define | RHDA_PSM_FLAG (1 << 8) |
#define | RHDB_DR_FLAG(port) (((1 << port) & RHDB_DR_MASK) << RHDB_DR_SHIFT) |
#define | RHDB_DR_MASK (0xffff) |
#define | RHDB_DR_SHIFT (0) |
#define | RHDB_PCC_MASK (0xffff) |
#define | RHDB_PCC_SHIFT (16) |
#define | RHDB_PPC_FLAG(port) (((1 << port) & RHDB_DR_MASK) << RHDB_DR_SHIFT) |
#define | RHPS_CCS_FLAG (1 << 0) |
#define | RHPS_CHANGE_WC_MASK 0x1f0000 |
#define | RHPS_CLEAR_PORT_ENABLE RHPS_CCS_FLAG |
#define | RHPS_CLEAR_PORT_POWER RHPS_LSDA_FLAG |
#define | RHPS_CLEAR_PORT_SUSPEND RHPS_POCI_FLAG |
#define | RHPS_CSC_FLAG (1 << 16) |
#define | RHPS_LSDA_FLAG (1 << 9) |
#define | RHPS_OCIC_FLAG (1 << 19) |
#define | RHPS_PES_FLAG (1 << 1) |
#define | RHPS_PESC_FLAG (1 << 17) |
#define | RHPS_POCI_FLAG (1 << 3) |
#define | RHPS_PPS_FLAG (1 << 8) |
#define | RHPS_PRS_FLAG (1 << 4) |
#define | RHPS_PRSC_FLAG (1 << 20) |
#define | RHPS_PSS_FLAG (1 << 2) |
#define | RHPS_PSSC_FLAG (1 << 18) |
#define | RHPS_SET_PORT_ENABLE RHPS_PES_FLAG |
#define | RHPS_SET_PORT_POWER RHPS_PPS_FLAG |
#define | RHPS_SET_PORT_RESET RHPS_PRS_FLAG |
#define | RHPS_SET_PORT_SUSPEND RHPS_PSS_FLAG |
#define | RHS_CLEAR_DRWE (1 << 31) |
#define | RHS_CLEAR_PORT_POWER RHS_LPS_FLAG |
#define | RHS_DRWE_FLAG (1 << 15) |
#define | RHS_LPS_FLAG (1 << 0) |
#define | RHS_LPSC_FLAG (1 << 16) |
#define | RHS_OCI_FLAG (1 << 1) |
#define | RHS_OCIC_FLAG (1 << 17) |
#define | RHS_SET_DRWE RHS_DRWE_FLAG |
#define | RHS_SET_PORT_POWER RHS_LPSC_FLAG |
Typedefs | |
typedef ohci_regs | ohci_regs_t |
OHCI memory mapped registers structure. |
Definition in file ohci_regs.h.