Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
bfa_defs_mfg_comm.h File Reference
#include "bfa_defs.h"

Go to the source code of this file.

Data Structures

struct  bfa_mfg_vpd
 

Macros

#define BFA_MFG_VERSION   3
 
#define BFA_MFG_VERSION_UNINIT   0xFF
 
#define BFA_MFG_ENC_VER   2
 
#define BFA_MFG_VER1_LEN   128
 
#define BFA_MFG_HDR_LEN   4
 
#define BFA_MFG_SERIALNUM_SIZE   11
 
#define STRSZ(_n)   (((_n) + 4) & ~3)
 
#define bfa_mfg_is_mezz(type)
 
#define bfa_mfg_adapter_prop_init_gpio(gpio, card_type, prop)
 
#define BFA_MFG_VPD_LEN   512
 
#define BFA_MFG_VPD_LEN_INVALID   0
 
#define BFA_MFG_VPD_PCI_HDR_OFF   137
 
#define BFA_MFG_VPD_PCI_VER_MASK   0x07
 
#define BFA_MFG_VPD_PCI_VDR_MASK   0xf8
 

Enumerations

enum  {
  BFA_MFG_TYPE_CB_MAX = 825, BFA_MFG_TYPE_FC8P2 = 825, BFA_MFG_TYPE_FC8P1 = 815, BFA_MFG_TYPE_FC4P2 = 425,
  BFA_MFG_TYPE_FC4P1 = 415, BFA_MFG_TYPE_CNA10P2 = 1020, BFA_MFG_TYPE_CNA10P1 = 1010, BFA_MFG_TYPE_JAYHAWK = 804,
  BFA_MFG_TYPE_WANCHESE = 1007, BFA_MFG_TYPE_ASTRA = 807, BFA_MFG_TYPE_LIGHTNING_P0 = 902, BFA_MFG_TYPE_LIGHTNING = 1741,
  BFA_MFG_TYPE_PROWLER_F = 1560, BFA_MFG_TYPE_PROWLER_N = 1410, BFA_MFG_TYPE_PROWLER_C = 1710, BFA_MFG_TYPE_PROWLER_D = 1860,
  BFA_MFG_TYPE_CHINOOK = 1867, BFA_MFG_TYPE_INVALID = 0
}
 
enum  {
  CB_GPIO_TTV = (1), CB_GPIO_FC8P2 = (2), CB_GPIO_FC8P1 = (3), CB_GPIO_FC4P2 = (4),
  CB_GPIO_FC4P1 = (5), CB_GPIO_DFLY = (6), CB_GPIO_PROTO = (1 << 7)
}
 
enum  {
  BFA_MFG_VPD_UNKNOWN = 0, BFA_MFG_VPD_IBM = 1, BFA_MFG_VPD_HP = 2, BFA_MFG_VPD_DELL = 3,
  BFA_MFG_VPD_PCI_IBM = 0x08, BFA_MFG_VPD_PCI_HP = 0x10, BFA_MFG_VPD_PCI_DELL = 0x20, BFA_MFG_VPD_PCI_BRCD = 0xf8
}
 

Macro Definition Documentation

#define bfa_mfg_adapter_prop_init_gpio (   gpio,
  card_type,
  prop 
)

Definition at line 82 of file bfa_defs_mfg_comm.h.

#define BFA_MFG_ENC_VER   2

Definition at line 28 of file bfa_defs_mfg_comm.h.

#define BFA_MFG_HDR_LEN   4

Definition at line 34 of file bfa_defs_mfg_comm.h.

#define bfa_mfg_is_mezz (   type)
#define BFA_MFG_SERIALNUM_SIZE   11

Definition at line 36 of file bfa_defs_mfg_comm.h.

#define BFA_MFG_VER1_LEN   128

Definition at line 31 of file bfa_defs_mfg_comm.h.

#define BFA_MFG_VERSION   3

Definition at line 24 of file bfa_defs_mfg_comm.h.

#define BFA_MFG_VERSION_UNINIT   0xFF

Definition at line 25 of file bfa_defs_mfg_comm.h.

#define BFA_MFG_VPD_LEN   512

Definition at line 119 of file bfa_defs_mfg_comm.h.

#define BFA_MFG_VPD_LEN_INVALID   0

Definition at line 120 of file bfa_defs_mfg_comm.h.

#define BFA_MFG_VPD_PCI_HDR_OFF   137

Definition at line 122 of file bfa_defs_mfg_comm.h.

#define BFA_MFG_VPD_PCI_VDR_MASK   0xf8

vendor mask 5 bits

Definition at line 124 of file bfa_defs_mfg_comm.h.

#define BFA_MFG_VPD_PCI_VER_MASK   0x07

version mask 3 bits

Definition at line 123 of file bfa_defs_mfg_comm.h.

#define STRSZ (   _n)    (((_n) + 4) & ~3)

Definition at line 37 of file bfa_defs_mfg_comm.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
BFA_MFG_TYPE_CB_MAX 

Crossbow card type max

BFA_MFG_TYPE_FC8P2 

8G 2port FC card

BFA_MFG_TYPE_FC8P1 

8G 1port FC card

BFA_MFG_TYPE_FC4P2 

4G 2port FC card

BFA_MFG_TYPE_FC4P1 

4G 1port FC card

BFA_MFG_TYPE_CNA10P2 

10G 2port CNA card

BFA_MFG_TYPE_CNA10P1 

10G 1port CNA card

BFA_MFG_TYPE_JAYHAWK 

Jayhawk mezz card

BFA_MFG_TYPE_WANCHESE 

Wanchese mezz card

BFA_MFG_TYPE_ASTRA 

Astra mezz card

BFA_MFG_TYPE_LIGHTNING_P0 

Lightning mezz card - old

BFA_MFG_TYPE_LIGHTNING 

Lightning mezz card

BFA_MFG_TYPE_PROWLER_F 

Prowler FC only cards

BFA_MFG_TYPE_PROWLER_N 

Prowler NIC only cards

BFA_MFG_TYPE_PROWLER_C 

Prowler CNA only cards

BFA_MFG_TYPE_PROWLER_D 

Prowler Dual cards

BFA_MFG_TYPE_CHINOOK 

Chinook cards

BFA_MFG_TYPE_INVALID 

Invalid card type

Definition at line 40 of file bfa_defs_mfg_comm.h.

anonymous enum
Enumerator:
CB_GPIO_TTV 

TTV debug capable cards

CB_GPIO_FC8P2 

8G 2port FC card

CB_GPIO_FC8P1 

8G 1port FC card

CB_GPIO_FC4P2 

4G 2port FC card

CB_GPIO_FC4P1 

4G 1port FC card

CB_GPIO_DFLY 

8G 2port FC mezzanine card

CB_GPIO_PROTO 

8G 2port FC prototypes

Definition at line 72 of file bfa_defs_mfg_comm.h.

anonymous enum
Enumerator:
BFA_MFG_VPD_UNKNOWN 

vendor unknown

BFA_MFG_VPD_IBM 

vendor IBM

BFA_MFG_VPD_HP 

vendor HP

BFA_MFG_VPD_DELL 

vendor DELL

BFA_MFG_VPD_PCI_IBM 

PCI VPD IBM

BFA_MFG_VPD_PCI_HP 

PCI VPD HP

BFA_MFG_VPD_PCI_DELL 

PCI VPD DELL

BFA_MFG_VPD_PCI_BRCD 

PCI VPD Brocade

Definition at line 127 of file bfa_defs_mfg_comm.h.