linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h

/* bnx2x_dcb.h: QLogic Everest network driver.
 *
 * Copyright 2009-2013 Broadcom Corporation
 * Copyright 2014 QLogic Corporation
 * All rights reserved
 *
 * Unless you and QLogic execute a separate written software license
 * agreement governing use of this software, this software is licensed to you
 * under the terms of the GNU General Public License version 2, available
 * at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (the "GPL").
 *
 * Notwithstanding the above, under no circumstances may you combine this
 * software in any way with any other QLogic software provided under a
 * license other than the GPL, without QLogic's express prior written
 * consent.
 *
 * Maintained by: Ariel Elior <[email protected]>
 * Written by: Dmitry Kravkov
 *
 */
#ifndef BNX2X_DCB_H
#define BNX2X_DCB_H

#include "bnx2x_hsi.h"

#define LLFC_DRIVER_TRAFFIC_TYPE_MAX
struct bnx2x_dcbx_app_params {};

#define DCBX_COS_MAX_NUM_E2
/* bnx2x currently limits numbers of supported COSes to 3 to be extended to 6 */
#define BNX2X_MAX_COS_SUPPORT
#define DCBX_COS_MAX_NUM_E3B0
#define DCBX_COS_MAX_NUM

struct bnx2x_dcbx_cos_params {};

struct bnx2x_dcbx_pg_params {};

struct bnx2x_dcbx_pfc_params {};

struct bnx2x_dcbx_port_params {};

#define BNX2X_DCBX_CONFIG_INV_VALUE
#define BNX2X_DCBX_OVERWRITE_SETTINGS_DISABLE
#define BNX2X_DCBX_OVERWRITE_SETTINGS_ENABLE
#define BNX2X_DCBX_OVERWRITE_SETTINGS_INVALID
#define BNX2X_IS_ETS_ENABLED(bp)

struct bnx2x_config_lldp_params {};

struct bnx2x_admin_priority_app_table {};

#define DCBX_CONFIG_MAX_APP_PROTOCOL
struct bnx2x_config_dcbx_params {};

#define GET_FLAGS(flags, bits)
#define SET_FLAGS(flags, bits)
#define RESET_FLAGS(flags, bits)

enum {};

#define ETH_TYPE_FCOE
#define TCP_PORT_ISCSI

#define PFC_VALUE_FRAME_SIZE
#define PFC_QUANTA_IN_NANOSEC_FROM_SPEED_MEGA(mega_speed)

#define PFC_BRB1_REG_HIGH_LLFC_LOW_THRESHOLD
#define PFC_BRB1_REG_HIGH_LLFC_HIGH_THRESHOLD

struct cos_entry_help_data {};

struct cos_help_data {};

#define DCBX_ILLEGAL_PG
#define DCBX_PFC_PRI_MASK
#define DCBX_STRICT_PRIORITY
#define DCBX_INVALID_COS_BW
#define DCBX_PFC_PRI_NON_PAUSE_MASK(bp)
#define DCBX_PFC_PRI_PAUSE_MASK(bp)
#define DCBX_PFC_PRI_GET_PAUSE(bp, pg_pri)
#define DCBX_PFC_PRI_GET_NON_PAUSE(bp, pg_pri)
#define DCBX_IS_PFC_PRI_SOME_PAUSE(bp, pg_pri)
#define IS_DCBX_PFC_PRI_ONLY_PAUSE(bp, pg_pri)
#define IS_DCBX_PFC_PRI_ONLY_NON_PAUSE(bp, pg_pri)
#define IS_DCBX_PFC_PRI_MIX_PAUSE(bp, pg_pri)

struct pg_entry_help_data {};

struct pg_help_data {};

/* forward DCB/PFC related declarations */
struct bnx2x;
void bnx2x_dcbx_update(struct work_struct *work);
void bnx2x_dcbx_init_params(struct bnx2x *bp);
void bnx2x_dcbx_set_state(struct bnx2x *bp, bool dcb_on, u32 dcbx_enabled);

enum {};

void bnx2x_dcbx_set_params(struct bnx2x *bp, u32 state);
void bnx2x_dcbx_pmf_update(struct bnx2x *bp);
/* DCB netlink */
#ifdef BCM_DCBNL
extern const struct dcbnl_rtnl_ops bnx2x_dcbnl_ops;
int bnx2x_dcbnl_update_applist(struct bnx2x *bp, bool delall);
#endif /* BCM_DCBNL */

int bnx2x_dcbx_stop_hw_tx(struct bnx2x *bp);
int bnx2x_dcbx_resume_hw_tx(struct bnx2x *bp);

#endif /* BNX2X_DCB_H */