Go to the documentation of this file.
15 #define QDIO_MAX_QUEUES_PER_IRQ 4
16 #define QDIO_MAX_BUFFERS_PER_Q 128
17 #define QDIO_MAX_BUFFERS_MASK (QDIO_MAX_BUFFERS_PER_Q - 1)
18 #define QDIO_MAX_ELEMENTS_PER_BUFFER 16
19 #define QDIO_SBAL_SIZE 256
21 #define QDIO_QETH_QFMT 0
22 #define QDIO_ZFCP_QFMT 1
23 #define QDIO_IQDIO_QFMT 2
47 #define QDR_AC_MULTI_BUFFER_ENABLE 0x01
85 #define QIB_AC_OUTBOUND_PCI_SUPPORTED 0x40
86 #define QIB_RFLAGS_ENABLE_QEBSM 0x80
87 #define QIB_RFLAGS_ENABLE_DATA_DIV 0x02
176 #define SBAL_EFLAGS_LAST_ENTRY 0x40
177 #define SBAL_EFLAGS_CONTIGUOUS 0x20
178 #define SBAL_EFLAGS_FIRST_FRAG 0x04
179 #define SBAL_EFLAGS_MIDDLE_FRAG 0x08
180 #define SBAL_EFLAGS_LAST_FRAG 0x0c
181 #define SBAL_EFLAGS_MASK 0x6f
183 #define SBAL_SFLAGS0_PCI_REQ 0x40
184 #define SBAL_SFLAGS0_DATA_CONTINUATION 0x20
187 #define SBAL_SFLAGS0_TYPE_STATUS 0x00
188 #define SBAL_SFLAGS0_TYPE_WRITE 0x08
189 #define SBAL_SFLAGS0_TYPE_READ 0x10
190 #define SBAL_SFLAGS0_TYPE_WRITE_READ 0x18
191 #define SBAL_SFLAGS0_MORE_SBALS 0x04
192 #define SBAL_SFLAGS0_COMMAND 0x02
193 #define SBAL_SFLAGS0_LAST_SBAL 0x00
194 #define SBAL_SFLAGS0_ONLY_SBAL SBAL_SFLAGS0_COMMAND
195 #define SBAL_SFLAGS0_MIDDLE_SBAL SBAL_SFLAGS0_MORE_SBALS
196 #define SBAL_SFLAGS0_FIRST_SBAL (SBAL_SFLAGS0_MORE_SBALS | SBAL_SFLAGS0_COMMAND)
274 #define QDIO_OUTBUF_STATE_FLAG_NONE 0x00
275 #define QDIO_OUTBUF_STATE_FLAG_PENDING 0x01
277 #define CHSC_AC1_INITIATE_INPUTQ 0x80
281 #define AC1_SIGA_INPUT_NEEDED 0x40
282 #define AC1_SIGA_OUTPUT_NEEDED 0x20
283 #define AC1_SIGA_SYNC_NEEDED 0x10
284 #define AC1_AUTOMATIC_SYNC_ON_THININT 0x08
285 #define AC1_AUTOMATIC_SYNC_ON_OUT_PCI 0x04
286 #define AC1_SC_QEBSM_AVAILABLE 0x02
287 #define AC1_SC_QEBSM_ENABLED 0x01
289 #define CHSC_AC2_MULTI_BUFFER_AVAILABLE 0x0080
290 #define CHSC_AC2_MULTI_BUFFER_ENABLED 0x0040
291 #define CHSC_AC2_DATA_DIV_AVAILABLE 0x0010
292 #define CHSC_AC2_DATA_DIV_ENABLED 0x0002
294 #define CHSC_AC3_FORMAT2_CQ_AVAILABLE 0x8000
323 int,
int,
unsigned long);
326 #define QDIO_ERROR_ACTIVATE 0x0001
327 #define QDIO_ERROR_GET_BUF_STATE 0x0002
328 #define QDIO_ERROR_SET_BUF_STATE 0x0004
329 #define QDIO_ERROR_SLSB_STATE 0x0100
331 #define QDIO_ERROR_FATAL 0x00ff
332 #define QDIO_ERROR_TEMPORARY 0xff00
335 #define QDIO_FLAG_CLEANUP_USING_CLEAR 0x01
336 #define QDIO_FLAG_CLEANUP_USING_HALT 0x02
381 #define QDIO_STATE_INACTIVE 0x00000002
382 #define QDIO_STATE_ESTABLISHED 0x00000004
383 #define QDIO_STATE_ACTIVE 0x00000008
384 #define QDIO_STATE_STOPPED 0x00000010
386 #define QDIO_FLAG_SYNC_INPUT 0x01
387 #define QDIO_FLAG_SYNC_OUTPUT 0x02
388 #define QDIO_FLAG_PCI_OUT 0x10