Go to the documentation of this file.
22 #ifndef _MWIFIEX_PCIE_H
23 #define _MWIFIEX_PCIE_H
25 #include <linux/pci.h>
31 #define PCIE8766_DEFAULT_FW_NAME "mrvl/pcie8766_uapsta.bin"
34 #define MWIFIEX_MAX_TXRX_BD 0x20
35 #define MWIFIEX_TXBD_MASK 0x3F
36 #define MWIFIEX_RXBD_MASK 0x3F
38 #define MWIFIEX_MAX_EVT_BD 0x04
39 #define MWIFIEX_EVTBD_MASK 0x07
42 #define PCIE_SCRATCH_0_REG 0xC10
43 #define PCIE_SCRATCH_1_REG 0xC14
44 #define PCIE_CPU_INT_EVENT 0xC18
45 #define PCIE_CPU_INT_STATUS 0xC1C
46 #define PCIE_HOST_INT_STATUS 0xC30
47 #define PCIE_HOST_INT_MASK 0xC34
48 #define PCIE_HOST_INT_STATUS_MASK 0xC3C
49 #define PCIE_SCRATCH_2_REG 0xC40
50 #define PCIE_SCRATCH_3_REG 0xC44
51 #define PCIE_SCRATCH_4_REG 0xCD0
52 #define PCIE_SCRATCH_5_REG 0xCD4
53 #define PCIE_SCRATCH_6_REG 0xCD8
54 #define PCIE_SCRATCH_7_REG 0xCDC
55 #define PCIE_SCRATCH_8_REG 0xCE0
56 #define PCIE_SCRATCH_9_REG 0xCE4
57 #define PCIE_SCRATCH_10_REG 0xCE8
58 #define PCIE_SCRATCH_11_REG 0xCEC
59 #define PCIE_SCRATCH_12_REG 0xCF0
61 #define CPU_INTR_DNLD_RDY BIT(0)
62 #define CPU_INTR_DOOR_BELL BIT(1)
63 #define CPU_INTR_SLEEP_CFM_DONE BIT(2)
64 #define CPU_INTR_RESET BIT(3)
66 #define HOST_INTR_DNLD_DONE BIT(0)
67 #define HOST_INTR_UPLD_RDY BIT(1)
68 #define HOST_INTR_CMD_DONE BIT(2)
69 #define HOST_INTR_EVENT_RDY BIT(3)
70 #define HOST_INTR_MASK (HOST_INTR_DNLD_DONE | \
71 HOST_INTR_UPLD_RDY | \
72 HOST_INTR_CMD_DONE | \
75 #define MWIFIEX_BD_FLAG_ROLLOVER_IND BIT(7)
76 #define MWIFIEX_BD_FLAG_FIRST_DESC BIT(0)
77 #define MWIFIEX_BD_FLAG_LAST_DESC BIT(1)
78 #define REG_CMD_ADDR_LO PCIE_SCRATCH_0_REG
79 #define REG_CMD_ADDR_HI PCIE_SCRATCH_1_REG
80 #define REG_CMD_SIZE PCIE_SCRATCH_2_REG
82 #define REG_CMDRSP_ADDR_LO PCIE_SCRATCH_4_REG
83 #define REG_CMDRSP_ADDR_HI PCIE_SCRATCH_5_REG
86 #define REG_TXBD_RDPTR PCIE_SCRATCH_6_REG
88 #define REG_TXBD_WRPTR PCIE_SCRATCH_7_REG
90 #define REG_RXBD_RDPTR PCIE_SCRATCH_8_REG
92 #define REG_RXBD_WRPTR PCIE_SCRATCH_9_REG
94 #define REG_EVTBD_RDPTR PCIE_SCRATCH_10_REG
96 #define REG_EVTBD_WRPTR PCIE_SCRATCH_11_REG
98 #define REG_DRV_READY PCIE_SCRATCH_12_REG
101 #define MAX_WRITE_IOMEM_RETRY 2
103 #define MWIFIEX_PCIE_BLOCK_SIZE_FW_DNLD 256
105 #define FW_AWAKE_COOKIE (0xAA55AA55)