123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #ifndef __CEPCI_H__
- #define __CEPCI_H__
- #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 {
- uint32_t pipe_cfg_addr;
-
- uint32_t svc_to_pipe_map;
-
- uint32_t MSI_requested;
- uint32_t MSI_granted;
- uint32_t MSI_addr;
- uint32_t MSI_data;
- uint32_t MSI_fw_intr_data;
- uint32_t power_mgmt_method;
- uint32_t config_flags;
- };
- #if defined(AR900B)
- #define CE_PKTLOG_PIPE 8
- #endif
- #define PCIE_CONFIG_FLAG_ENABLE_L1 0x0000001
- #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 {
- uint32_t pipenum;
- uint32_t pipedir;
- uint32_t nentries;
- uint32_t nbytes_max;
- uint32_t flags;
- uint32_t reserved;
- };
- #endif
|