123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- #ifndef __CEPCI_H__
- #define __CEPCI_H__
- #include <a_types.h> /* A_UINT32 */
- #define MSI_NUM_REQUEST_LOG2 3
- #define MSI_NUM_REQUEST (1<<MSI_NUM_REQUEST_LOG2)
- #define MSI_ASSIGN_FW 0
- #define MSI_ASSIGN_CE_INITIAL 1
- #define MSI_ASSIGN_CE_MAX 7
- struct pcie_state_s {
- A_UINT32 pipe_cfg_addr;
-
- A_UINT32 svc_to_pipe_map;
-
- A_UINT32 MSI_requested;
- A_UINT32 MSI_granted;
- A_UINT32 MSI_addr;
- A_UINT32 MSI_data;
- A_UINT32 MSI_fw_intr_data;
- A_UINT32 power_mgmt_method;
- A_UINT32 config_flags;
- };
- #define PCIE_CONFIG_FLAG_ENABLE_L1 0x0000001
- #define CE_PKTLOG_PIPE 8
- #define PCIE_CONFIG_FLAG_CLK_GATING_L1 0x0000001
- #define PCIE_CONFIG_FLAG_CLK_SWITCH_WAIT 0x0000002
- #define PCIE_CONFIG_FLAG_AXI_CLK_GATE 0x0000004
- #define PCIE_CONFIG_FLAG_CLK_REQ_L1 0x0000008
- #define PIPE_TO_CE_MAP_CNT 32
- struct CE_pipe_config {
- A_UINT32 pipenum;
- A_UINT32 pipedir;
- A_UINT32 nentries;
- A_UINT32 nbytes_max;
- A_UINT32 flags;
- A_UINT32 reserved;
- };
- #endif
|