linux/drivers/scsi/bfa/bfa_defs.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
 * Copyright (c) 2014- QLogic Corporation.
 * All rights reserved
 * www.qlogic.com
 *
 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter.
 */

#ifndef __BFA_DEFS_H__
#define __BFA_DEFS_H__

#include "bfa_fc.h"
#include "bfad_drv.h"

#define BFA_MFG_SERIALNUM_SIZE
#define STRSZ(_n)

/*
 * Manufacturing card type
 */
enum {};

#pragma pack(1)

/*
 * Check if Mezz card
 */
#define bfa_mfg_is_mezz(type)

/*
 * Check if the card having old wwn/mac handling
 */
#define bfa_mfg_is_old_wwn_mac_model(type)

#define bfa_mfg_increment_wwn_mac(m, i)

/*
 * VPD data length
 */
#define BFA_MFG_VPD_LEN

/*
 * VPD vendor tag
 */
enum {};

/*
 * All numerical fields are in big-endian format.
 */
struct bfa_mfg_vpd_s {};

#pragma pack()

/*
 * Status return values
 */
enum bfa_status {};
#define bfa_status_t

enum bfa_eproto_status {};
#define bfa_eproto_status_t

enum bfa_boolean {};
#define bfa_boolean_t

#define BFA_STRING_32
#define BFA_VERSION_LEN

/*
 * ---------------------- adapter definitions ------------
 */

/*
 * BFA adapter level attributes.
 */
enum {};

struct bfa_adapter_attr_s {};

/*
 * ---------------------- IOC definitions ------------
 */

enum {};

/*
 * Driver and firmware versions.
 */
struct bfa_ioc_driver_attr_s {};

/*
 * IOC PCI device attributes
 */
struct bfa_ioc_pci_attr_s {};

/*
 * IOC states
 */
enum bfa_ioc_state {};

/*
 * IOC firmware stats
 */
struct bfa_fw_ioc_stats_s {};

/*
 * IOC driver stats
 */
struct bfa_ioc_drv_stats_s {};

/*
 * IOC statistics
 */
struct bfa_ioc_stats_s {};

enum bfa_ioc_type_e {};

/*
 * IOC attributes returned in queries
 */
struct bfa_ioc_attr_s {};

/*
 *			AEN related definitions
 */
enum bfa_aen_category {};

/* BFA adapter level events */
enum bfa_adapter_aen_event {};

struct bfa_adapter_aen_data_s {};

/* BFA physical port Level events */
enum bfa_port_aen_event {};

enum bfa_port_aen_sfp_pom {};

struct bfa_port_aen_data_s {};

/* BFA AEN logical port events */
enum bfa_lport_aen_event {};

struct bfa_lport_aen_data_s {};

/* BFA ITNIM events */
enum bfa_itnim_aen_event {};

struct bfa_itnim_aen_data_s {};

/* BFA audit events */
enum bfa_audit_aen_event {};

struct bfa_audit_aen_data_s {};

/* BFA IOC level events */
enum bfa_ioc_aen_event {};

struct bfa_ioc_aen_data_s {};

/*
 * ---------------------- mfg definitions ------------
 */

/*
 * Checksum size
 */
#define BFA_MFG_CHKSUM_SIZE

#define BFA_MFG_PARTNUM_SIZE
#define BFA_MFG_SUPPLIER_ID_SIZE
#define BFA_MFG_SUPPLIER_PARTNUM_SIZE
#define BFA_MFG_SUPPLIER_SERIALNUM_SIZE
#define BFA_MFG_SUPPLIER_REVISION_SIZE
/*
 * Initial capability definition
 */
#define BFA_MFG_IC_FC
#define BFA_MFG_IC_ETH

/*
 * Adapter capability mask definition
 */
#define BFA_CM_HBA
#define BFA_CM_CNA
#define BFA_CM_NIC
#define BFA_CM_FC16G
#define BFA_CM_SRIOV
#define BFA_CM_MEZZ

#pragma pack(1)

/*
 * All numerical fields are in big-endian format.
 */
struct bfa_mfg_block_s {};

#pragma pack()

/*
 * ---------------------- pci definitions ------------
 */

/*
 * PCI device and vendor ID information
 */
enum {};

#define bfa_asic_id_cb(__d)
#define bfa_asic_id_ct(__d)
#define bfa_asic_id_ct2(__d)
#define bfa_asic_id_ctc(__d)

/*
 * PCI sub-system device and vendor ID information
 */
enum {};

/*
 * Maximum number of device address ranges mapped through different BAR(s)
 */
#define BFA_PCI_ACCESS_RANGES

/*
 *	Port speed settings. Each specific speed is a bit field. Use multiple
 *	bits to specify speeds to be selected for auto-negotiation.
 */
enum bfa_port_speed {};
#define bfa_port_speed_t

enum {};

#define BOOT_CFG_REV1
#define BOOT_CFG_VLAN

/*
 *      Boot options setting. Boot options setting determines from where
 *      to get the boot lun information
 */
enum bfa_boot_bootopt {};

#pragma pack(1)
/*
 * Boot lun information.
 */
struct bfa_boot_bootlun_s {};
#pragma pack()

/*
 * BOOT boot configuraton
 */
struct bfa_boot_cfg_s {};

struct bfa_boot_pbc_s {};

struct bfa_ethboot_cfg_s {};

/*
 * ASIC block configuration related structures
 */
#define BFA_ABLK_MAX_PORTS
#define BFA_ABLK_MAX_PFS
#define BFA_ABLK_MAX

#pragma pack(1)
enum bfa_mode_s {};

struct bfa_adapter_cfg_mode_s {};

struct bfa_ablk_cfg_pf_s {};

struct bfa_ablk_cfg_port_s {};

struct bfa_ablk_cfg_inst_s {};

struct bfa_ablk_cfg_s {};


/*
 *	SFP module specific
 */
#define SFP_DIAGMON_SIZE

/* SFP state change notification event */
#define BFA_SFP_SCN_REMOVED
#define BFA_SFP_SCN_INSERTED
#define BFA_SFP_SCN_POM
#define BFA_SFP_SCN_FAILED
#define BFA_SFP_SCN_UNSUPPORT
#define BFA_SFP_SCN_VALID

enum bfa_defs_sfp_media_e {};

/*
 * values for xmtr_tech above
 */
enum {};

/*
 * Serial ID: Data Fields -- Address A0h
 * Basic ID field total 64 bytes
 */
struct sfp_srlid_base_s {};

/*
 * Serial ID: Data Fields -- Address A0h
 * Extended id field total 32 bytes
 */
struct sfp_srlid_ext_s {};

/*
 * Diagnostic: Data Fields -- Address A2h
 * Diagnostic and control/status base field total 96 bytes
 */
struct sfp_diag_base_s {};

/*
 * Diagnostic: Data Fields -- Address A2h
 * Diagnostic and control/status extended field total 24 bytes
 */
struct sfp_diag_ext_s {};

/*
 * Diagnostic: Data Fields -- Address A2h
 * General Use Fields: User Writable Table - Features's Control Registers
 * Total 32 bytes
 */
struct sfp_usr_eeprom_s {};

struct sfp_mem_s {};

/*
 * transceiver codes (SFF-8472 Rev 10.2 Table 3.5)
 */
sfp_xcvr_e10g_code_u;

sfp_xcvr_so1_code_u;

sfp_xcvr_so2_code_u;

sfp_xcvr_eth_code_u;

struct sfp_xcvr_fc1_code_s {};

sfp_xcvr_fc2_code_u;

sfp_xcvr_fc3_code_u;

struct sfp_xcvr_s {};

/*
 *	Flash module specific
 */
#define BFA_FLASH_PART_ENTRY_SIZE
#define BFA_FLASH_PART_MAX

enum bfa_flash_part_type {};

/*
 * flash partition attributes
 */
struct bfa_flash_part_attr_s {};

/*
 * flash attributes
 */
struct bfa_flash_attr_s {};

/*
 *	DIAG module specific
 */
#define LB_PATTERN_DEFAULT
#define QTEST_CNT_DEFAULT
#define QTEST_PAT_DEFAULT
#define DPORT_ENABLE_LOOPCNT_DEFAULT

struct bfa_diag_memtest_s {};

struct bfa_diag_memtest_result {};

struct bfa_diag_loopback_result_s {};

enum bfa_diag_dport_test_status {};

enum bfa_diag_dport_test_type {};

enum bfa_diag_dport_test_opmode {};

struct bfa_diag_dport_subtest_result_s {};

struct bfa_diag_dport_result_s {};

struct bfa_diag_ledtest_s {};

struct bfa_diag_loopback_s {};

/*
 *	PHY module specific
 */
enum bfa_phy_status_e {};

/*
 * phy attributes for phy query
 */
struct bfa_phy_attr_s {};

/*
 * phy stats
 */
struct bfa_phy_stats_s {};

#pragma pack()

#endif /* __BFA_DEFS_H__ */