Go to the documentation of this file.
14 #define ILO_NAME "hpilo"
23 #define MAX_OPEN (MAX_CCB * MAX_ILO_DEV)
25 #define MAX_WAIT_TIME 10000
29 #define MAX_WAIT (MAX_WAIT_TIME / WAIT_TIME)
79 #define ILOSW_CCB_SZ 64
80 #define ILOHW_CCB_SZ 128
116 #define L2_QENTRY_SZ 12
119 #define CTRL_BITPOS_L2SZ 0
120 #define CTRL_BITPOS_FIFOINDEXMASK 4
121 #define CTRL_BITPOS_DESCLIMIT 18
122 #define CTRL_BITPOS_A 30
123 #define CTRL_BITPOS_G 31
126 #define L2_DB_SIZE 14
127 #define ONE_DB_SIZE (1 << L2_DB_SIZE)
163 #define ILO_START_ALIGN 4096
164 #define ILO_CACHE_SZ 128
182 #define FIFOHANDLESIZE (sizeof(struct fifo) - sizeof(u64))
183 #define FIFOBARTOHANDLE(_fifo) \
184 ((struct fifo *)(((char *)(_fifo)) - FIFOHANDLESIZE))
187 #define ENTRY_BITPOS_QWORDS 0
189 #define ENTRY_BITPOS_DESCRIPTOR 10
191 #define ENTRY_BITPOS_C 22
193 #define ENTRY_BITPOS_O 23
195 #define ENTRY_BITS_QWORDS 10
196 #define ENTRY_BITS_DESCRIPTOR 12
197 #define ENTRY_BITS_C 1
198 #define ENTRY_BITS_O 1
199 #define ENTRY_BITS_TOTAL \
200 (ENTRY_BITS_C + ENTRY_BITS_O + \
201 ENTRY_BITS_QWORDS + ENTRY_BITS_DESCRIPTOR)
204 #define ENTRY_MASK ((1 << ENTRY_BITS_TOTAL) - 1)
205 #define ENTRY_MASK_C (((1 << ENTRY_BITS_C) - 1) << ENTRY_BITPOS_C)
206 #define ENTRY_MASK_O (((1 << ENTRY_BITS_O) - 1) << ENTRY_BITPOS_O)
207 #define ENTRY_MASK_QWORDS \
208 (((1 << ENTRY_BITS_QWORDS) - 1) << ENTRY_BITPOS_QWORDS)
209 #define ENTRY_MASK_DESCRIPTOR \
210 (((1 << ENTRY_BITS_DESCRIPTOR) - 1) << ENTRY_BITPOS_DESCRIPTOR)
212 #define ENTRY_MASK_NOSTATE (ENTRY_MASK >> (ENTRY_BITS_C + ENTRY_BITS_O))