#ifndef __CXGB4_DCB_H
#define __CXGB4_DCB_H
#include <linux/netdevice.h>
#include <linux/dcbnl.h>
#include <net/dcbnl.h>
#ifdef CONFIG_CHELSIO_T4_DCB
#define CXGB4_DCBX_FW_SUPPORT …
#define CXGB4_DCBX_HOST_SUPPORT …
#define CXGB4_MAX_PRIORITY …
#define CXGB4_MAX_TCS …
#define INIT_PORT_DCB_CMD(__pcmd, __port, __op, __action) …
#define INIT_PORT_DCB_READ_PEER_CMD(__pcmd, __port) …
#define INIT_PORT_DCB_READ_LOCAL_CMD(__pcmd, __port) …
#define INIT_PORT_DCB_READ_SYNC_CMD(__pcmd, __port) …
#define INIT_PORT_DCB_WRITE_CMD(__pcmd, __port) …
#define IEEE_FAUX_SYNC(__dev, __dcb) …
enum cxgb4_dcb_state { … };
enum cxgb4_dcb_state_input { … };
enum cxgb4_dcb_fw_msgs { … };
#define CXGB4_MAX_DCBX_APP_SUPPORTED …
struct port_dcb_info { … };
void cxgb4_dcb_state_init(struct net_device *);
void cxgb4_dcb_version_init(struct net_device *);
void cxgb4_dcb_reset(struct net_device *dev);
void cxgb4_dcb_state_fsm(struct net_device *, enum cxgb4_dcb_state_input);
void cxgb4_dcb_handle_fw_update(struct adapter *, const struct fw_port_cmd *);
extern const struct dcbnl_rtnl_ops cxgb4_dcb_ops;
static inline __u8 bitswap_1(unsigned char val)
{ … }
extern const char * const dcb_ver_array[];
#define CXGB4_DCB_ENABLED …
#else
static inline void cxgb4_dcb_state_init(struct net_device *dev)
{
}
#define CXGB4_DCB_ENABLED …
#endif
#endif