Go to the documentation of this file.
23 #include <asm/byteorder.h>
25 #define ISL38XX_CB_RX_QSIZE 8
26 #define ISL38XX_CB_TX_QSIZE 32
29 #define ISL38XX_MAX_WDS_LINKS 8
32 #define ISL38XX_PSM_ACTIVE_STATE 0
33 #define ISL38XX_PSM_POWERSAVE_STATE 1
36 #define ISL38XX_PCI_MEM_SIZE 0x02000
37 #define ISL38XX_MEMORY_WINDOW_SIZE 0x01000
38 #define ISL38XX_DEV_FIRMWARE_ADDRES 0x20000
39 #define ISL38XX_WRITEIO_DELAY 10
40 #define ISL38XX_RESET_DELAY 50
41 #define ISL38XX_WAIT_CYCLE 10
42 #define ISL38XX_MAX_WAIT_CYCLES 10
45 #define ISL38XX_HARDWARE_REG 0x0000
46 #define ISL38XX_CARDBUS_CIS 0x0800
47 #define ISL38XX_DIRECT_MEM_WIN 0x1000
50 #define ISL38XX_DEV_INT_REG 0x0000
51 #define ISL38XX_INT_IDENT_REG 0x0010
52 #define ISL38XX_INT_ACK_REG 0x0014
53 #define ISL38XX_INT_EN_REG 0x0018
54 #define ISL38XX_GEN_PURP_COM_REG_1 0x0020
55 #define ISL38XX_GEN_PURP_COM_REG_2 0x0024
56 #define ISL38XX_CTRL_BLK_BASE_REG ISL38XX_GEN_PURP_COM_REG_1
57 #define ISL38XX_DIR_MEM_BASE_REG 0x0030
58 #define ISL38XX_CTRL_STAT_REG 0x0078
62 #define ISL38XX_PCI_POSTING_FLUSH ISL38XX_INT_EN_REG
78 writel(val, base + offset);
83 #define ISL38XX_DEV_INT_RESET 0x0001
84 #define ISL38XX_DEV_INT_UPDATE 0x0002
85 #define ISL38XX_DEV_INT_WAKEUP 0x0008
86 #define ISL38XX_DEV_INT_SLEEP 0x0010
89 #define ISL38XX_INT_IDENT_UPDATE 0x0002
90 #define ISL38XX_INT_IDENT_INIT 0x0004
91 #define ISL38XX_INT_IDENT_WAKEUP 0x0008
92 #define ISL38XX_INT_IDENT_SLEEP 0x0010
93 #define ISL38XX_INT_SOURCES 0x001E
100 #define ISL38XX_CTRL_STAT_SLEEPMODE 0x00000200
101 #define ISL38XX_CTRL_STAT_CLKRUN 0x00800000
102 #define ISL38XX_CTRL_STAT_RESET 0x10000000
103 #define ISL38XX_CTRL_STAT_RAMBOOT 0x20000000
104 #define ISL38XX_CTRL_STAT_STARTHALTED 0x40000000
105 #define ISL38XX_CTRL_STAT_HOST_OVERRIDE 0x80000000
108 #define ISL38XX_CB_RX_DATA_LQ 0
109 #define ISL38XX_CB_TX_DATA_LQ 1
110 #define ISL38XX_CB_RX_DATA_HQ 2
111 #define ISL38XX_CB_TX_DATA_HQ 3
112 #define ISL38XX_CB_RX_MGMTQ 4
113 #define ISL38XX_CB_TX_MGMTQ 5
114 #define ISL38XX_CB_QCOUNT 6
115 #define ISL38XX_CB_MGMT_QSIZE 4
116 #define ISL38XX_MIN_QTHRESHOLD 4
119 #define MGMT_FRAME_SIZE 1500
120 #define MGMT_TX_FRAME_COUNT 24
121 #define MGMT_RX_FRAME_COUNT 24
122 #define MGMT_FRAME_COUNT (MGMT_TX_FRAME_COUNT + MGMT_RX_FRAME_COUNT)
123 #define CONTROL_BLOCK_SIZE 1024
124 #define PSM_FRAME_SIZE 1536
125 #define PSM_MINIMAL_STATION_COUNT 64
126 #define PSM_FRAME_COUNT PSM_MINIMAL_STATION_COUNT
127 #define PSM_BUFFER_SIZE PSM_FRAME_SIZE * PSM_FRAME_COUNT
128 #define MAX_TRAP_RX_QUEUE 4
129 #define HOST_MEM_BLOCK CONTROL_BLOCK_SIZE + PSM_BUFFER_SIZE
132 #define FRAGMENT_FLAG_MF 0x0001
133 #define MAX_FRAGMENT_SIZE 1536
138 #define MAX_FRAGMENT_SIZE_RX 1600