1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Authors: Joshua Morris <josh.h.morris@us.ibm.com>
6 * Philip Kelleher <pjk1939@linux.vnet.ibm.com>
8 * (C) Copyright 2013 IBM Corporation
11 #ifndef __RSXX_CFG_H__
12 #define __RSXX_CFG_H__
14 /* NOTE: Config values will be saved in network byte order (i.e. Big endian) */
15 #include <linux/types.h>
18 * The card config version must match the driver's expected version. If it does
19 * not, the DMA interfaces will not be attached and the user will need to
20 * initialize/upgrade the card configuration using the card config utility.
22 #define RSXX_CFG_VERSION 4
29 struct card_cfg_data
{
35 __u32 mode
; /* Disabled, manual, auto-tune... */
36 __u32 count
; /* Number of intr to coalesce */
37 __u32 latency
;/* Max wait time (in ns) */
41 struct rsxx_card_cfg
{
42 struct card_cfg_hdr hdr
;
43 struct card_cfg_data data
;
46 /* Vendor ID Values */
47 #define RSXX_VENDOR_ID_IBM 0
48 #define RSXX_VENDOR_ID_DSI 1
49 #define RSXX_VENDOR_COUNT 2
51 /* Interrupt Coalescing Values */
52 #define RSXX_INTR_COAL_DISABLED 0
53 #define RSXX_INTR_COAL_EXPLICIT 1
54 #define RSXX_INTR_COAL_AUTO_TUNE 2
57 #endif /* __RSXX_CFG_H__ */