Go to the documentation of this file.
33 #include <linux/pci.h>
38 #define RTL_PCI_RX_MPDU_QUEUE 0
39 #define RTL_PCI_RX_CMD_QUEUE 1
40 #define RTL_PCI_MAX_RX_QUEUE 2
42 #define RTL_PCI_MAX_RX_COUNT 64
43 #define RTL_PCI_MAX_TX_QUEUE_COUNT 9
45 #define RT_TXDESC_NUM 128
46 #define RT_TXDESC_NUM_BE_QUEUE 256
52 #define BEACON_QUEUE 4
58 #define RTL_PCI_DEVICE(vend, dev, cfg) \
61 .subvendor = PCI_ANY_ID, \
62 .subdevice = PCI_ANY_ID,\
63 .driver_data = (kernel_ulong_t)&(cfg)
65 #define PCI_MAX_BRIDGE_NUMBER 255
66 #define PCI_MAX_DEVICES 32
67 #define PCI_MAX_FUNCTION 8
69 #define PCI_CONF_ADDRESS 0x0CF8
70 #define PCI_CONF_DATA 0x0CFC
72 #define U1DONTCARE 0xFF
73 #define U2DONTCARE 0xFFFF
74 #define U4DONTCARE 0xFFFFFFFF
76 #define RTL_PCI_8192_DID 0x8192
77 #define RTL_PCI_8192SE_DID 0x8192
78 #define RTL_PCI_8174_DID 0x8174
79 #define RTL_PCI_8173_DID 0x8173
80 #define RTL_PCI_8172_DID 0x8172
81 #define RTL_PCI_8171_DID 0x8171
82 #define RTL_PCI_0045_DID 0x0045
83 #define RTL_PCI_0046_DID 0x0046
84 #define RTL_PCI_0044_DID 0x0044
85 #define RTL_PCI_0047_DID 0x0047
86 #define RTL_PCI_700F_DID 0x700F
87 #define RTL_PCI_701F_DID 0x701F
88 #define RTL_PCI_DLINK_DID 0x3304
89 #define RTL_PCI_8192CET_DID 0x8191
90 #define RTL_PCI_8192CE_DID 0x8178
91 #define RTL_PCI_8191CE_DID 0x8177
92 #define RTL_PCI_8188CE_DID 0x8176
93 #define RTL_PCI_8192CU_DID 0x8191
94 #define RTL_PCI_8192DE_DID 0x8193
95 #define RTL_PCI_8192DE_DID2 0x002B
98 #define RTL_MEM_MAPPED_IO_RANGE_8190PCI 0x1000
99 #define RTL_MEM_MAPPED_IO_RANGE_8192PCIE 0x4000
100 #define RTL_MEM_MAPPED_IO_RANGE_8192SE 0x4000
101 #define RTL_MEM_MAPPED_IO_RANGE_8192CE 0x4000
102 #define RTL_MEM_MAPPED_IO_RANGE_8192DE 0x4000
104 #define RTL_PCI_REVISION_ID_8190PCI 0x00
105 #define RTL_PCI_REVISION_ID_8192PCIE 0x01
106 #define RTL_PCI_REVISION_ID_8192SE 0x10
107 #define RTL_PCI_REVISION_ID_8192CE 0x1
108 #define RTL_PCI_REVISION_ID_8192DE 0x0
110 #define RTL_DEFAULT_HARDWARE_TYPE HARDWARE_TYPE_RTL8192CE
230 #define rtl_pcipriv(hw) (((struct rtl_pci_priv *)(rtl_priv(hw))->priv))
231 #define rtl_pcidev(pcipriv) (&((pcipriv)->dev))
247 static inline u16 pci_read16_sync(
struct rtl_priv *rtlpriv,
u32 addr)
252 static inline u32 pci_read32_sync(
struct rtl_priv *rtlpriv,
u32 addr)
257 static inline void pci_write8_async(
struct rtl_priv *rtlpriv,
u32 addr,
u8 val)
262 static inline void pci_write16_async(
struct rtl_priv *rtlpriv,
268 static inline void pci_write32_async(
struct rtl_priv *rtlpriv,