/* SPDX-License-Identifier: GPL-2.0-only */ /* * Linux network driver for QLogic BR-series Converged Network Adapter. */ /* * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. * Copyright (c) 2014-2015 QLogic Corporation * All rights reserved * www.qlogic.com */ #ifndef __BFA_DEFS_MFG_COMM_H__ #define __BFA_DEFS_MFG_COMM_H__ #include "bfa_defs.h" /* Manufacturing block version */ #define BFA_MFG_VERSION … #define BFA_MFG_VERSION_UNINIT … /* Manufacturing block encrypted version */ #define BFA_MFG_ENC_VER … /* Manufacturing block version 1 length */ #define BFA_MFG_VER1_LEN … /* Manufacturing block header length */ #define BFA_MFG_HDR_LEN … #define BFA_MFG_SERIALNUM_SIZE … #define STRSZ(_n) … /* Manufacturing card type */ enum { … }; /* Check if Mezz card */ #define bfa_mfg_is_mezz(type) … enum { … }; #define bfa_mfg_adapter_prop_init_gpio(gpio, card_type, prop) … /* VPD data length */ #define BFA_MFG_VPD_LEN … #define BFA_MFG_VPD_LEN_INVALID … #define BFA_MFG_VPD_PCI_HDR_OFF … #define BFA_MFG_VPD_PCI_VER_MASK … #define BFA_MFG_VPD_PCI_VDR_MASK … /* VPD vendor tag */ enum { … }; /* BFA adapter flash vpd data definition. * * All numerical fields are in big-endian format. */ struct bfa_mfg_vpd { … } __packed; #endif /* __BFA_DEFS_MFG_H__ */