PCIE Driver API/interface file.
|
enum | Pcie_Mode { PCIE_EP_MODE = 0,
PCIE_LEGACY_EP_MODE,
PCIE_RC_MODE
} |
| These are the possible values for PCIe mode. More...
|
|
enum | Pcie_Gen { PCIE_GEN1 = 1,
PCIE_GEN2 = 2,
PCIE_GEN3 = 3
} |
| Enumeration for PCIE generations. More...
|
|
enum | Pcie_BarPref { PCIE_BAR_NON_PREF = 0,
PCIE_BAR_PREF
} |
| These are the possible values for Prefetch BAR configuration. More...
|
|
enum | Pcie_BarType { PCIE_BAR_TYPE32 = 0,
PCIE_BAR_RSVD,
PCIE_BAR_TYPE64
} |
| These are the possible values for Type BAR configuration. More...
|
|
enum | Pcie_BarMem { PCIE_BAR_MEM_MEM = 0,
PCIE_BAR_MEM_IO
} |
| These are the possible values for Memory BAR configuration. More...
|
|
enum | Pcie_AtuRegionDir { PCIE_ATU_REGION_DIR_OUTBOUND,
PCIE_ATU_REGION_DIR_INBOUND
} |
| Enum to select PCIe ATU(Address translation unit) region direction(Inbound or Outbound). This enum is used while configuring inbound or outbound region. More...
|
|
enum | Pcie_TlpType { PCIE_TLP_TYPE_MEM,
PCIE_TLP_TYPE_IO,
PCIE_TLP_TYPE_CFG
} |
| This enum is used to select PCIe TLP(Transaction layer packet) type while configuring inbound or outbound region. More...
|
|
enum | Pcie_AtuRegionMatchMode { PCIE_ATU_REGION_MATCH_MODE_ADDR,
PCIE_ATU_REGION_MATCH_MODE_BAR
} |
| Enum to select address or BAR match mode. More...
|
|
enum | Pcie_Location { PCIE_LOCATION_LOCAL,
PCIE_LOCATION_REMOTE
} |
| Enumeration for PCIe access type remote/local. More...
|
|
enum | Pcie_LtssmState {
PCIE_LTSSM_DETECT_QUIET =0,
PCIE_LTSSM_DETECT_ACT,
PCIE_LTSSM_POLL_ACTIVE,
PCIE_LTSSM_POLL_COMPLIANCE,
PCIE_LTSSM_POLL_CONFIG,
PCIE_LTSSM_PRE_DETECT_QUIET,
PCIE_LTSSM_DETECT_WAIT,
PCIE_LTSSM_CFG_LINKWD_START,
PCIE_LTSSM_CFG_LINKWD_ACEPT,
PCIE_LTSSM_CFG_LANENUM_WAIT,
PCIE_LTSSM_CFG_LANENUM_ACEPT,
PCIE_LTSSM_CFG_COMPLETE,
PCIE_LTSSM_CFG_IDLE,
PCIE_LTSSM_RCVRY_LOCK,
PCIE_LTSSM_RCVRY_SPEED,
PCIE_LTSSM_RCVRY_RCVRCFG,
PCIE_LTSSM_RCVRY_IDLE,
PCIE_LTSSM_L0,
PCIE_LTSSM_L0S,
PCIE_LTSSM_L123_SEND_EIDLE,
PCIE_LTSSM_L1_IDLE,
PCIE_LTSSM_L2_IDLE,
PCIE_LTSSM_L2_WAKE,
PCIE_LTSSM_DISABLED_ENTRY,
PCIE_LTSSM_DISABLED_IDLE,
PCIE_LTSSM_DISABLED,
PCIE_LTSSM_LPBK_ENTRY,
PCIE_LTSSM_LPBK_ACTIVE,
PCIE_LTSSM_LPBK_EXIT,
PCIE_LTSSM_LPBK_EXIT_TIMEOUT,
PCIE_LTSSM_HOT_RESET_ENTRY,
PCIE_LTSSM_HOT_RESET,
PCIE_LTSSM_RCVRY_EQ0,
PCIE_LTSSM_RCVRY_EQ1,
PCIE_LTSSM_RCVRY_EQ2,
PCIE_LTSSM_RCVRY_EQ3
} |
| Enumeration for possible values for encoding LTSSM state. More...
|
|
|
void | Pcie_init (void) |
| This function initializes the PCIe module. More...
|
|
Pcie_Handle | Pcie_open (uint32_t index) |
| This function opens a given PCIe peripheral. More...
|
|
void | Pcie_close (Pcie_Handle handle) |
| Function to close PCIe peripheral specified by PCIe handle. More...
|
|
Pcie_DeviceCfgBaseAddr * | Pcie_handleGetBases (Pcie_Handle handle) |
| Get the device base address info for the PCIe peripheral. More...
|
|
int32_t | Pcie_setInterfaceMode (Pcie_Handle handle, Pcie_Mode mode) |
| Set interfac mode (RC/EP) More...
|
|
int32_t | Pcie_getMemSpaceReserved (Pcie_Handle handle, uint32_t *resSize) |
| Pcie_getMemSpaceReserved returns amount of reserved space between beginning of hardware's data area and the base returned by Pcie_getMemSpaceRange. More...
|
|
int32_t | Pcie_getMemSpaceRange (Pcie_Handle handle, void **base, uint32_t *size) |
| Returns the PCIe Internal Address Range for the memory space. This range is used for accessing memory. More...
|
|
int32_t | Pcie_cfgBar (Pcie_Handle handle, const Pcie_BarCfg *barCfg) |
| Configure a BAR Register (32 bits) More...
|
|
int32_t | Pcie_atuRegionConfig (Pcie_Handle handle, Pcie_Location location, uint32_t atuRegionIndex, const Pcie_AtuRegionParams *atuRegionParams) |
| Configure address translation registers. More...
|
|
int32_t | Pcie_getVendorId (Pcie_Handle handle, Pcie_Location location, uint32_t *vendorId, uint32_t *deviceId) |
| Get vendor ID and device ID of Pcie Device. More...
|
|
int32_t | Pcie_waitLinkUp (Pcie_Handle handle) |
| Wait for PCIe link training to complete. More...
|
|
int32_t | Pcie_checkLinkParams (Pcie_Handle handle) |
| Verify if the link parameters is established as configured. More...
|
|
int32_t | Pcie_LtssmCtrl (Pcie_Handle handle, uint8_t enable) |
| Enable/disable PCIe link training. More...
|
|
int32_t | Pcie_setLanes (Pcie_Handle handle) |
| Set number of PCIe lanes as configured. More...
|
|
int32_t | Pcie_cfgEP (Pcie_Handle handle) |
| Configure Pcie for EP (End Point) operation. PCIe mode setting is NOT done here (Pcie_setInterfaceMode) More...
|
|
int32_t | Pcie_cfgRC (Pcie_Handle handle) |
| Configure Pcie for RC (Root Complex) operation. PCIe mode setting is NOT done here (Pcie_setInterfaceMode) More...
|
|