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

Go to the source code of this file.

Data Structures

struct  bfa_plog_rec_s
 
struct  bfa_plog_mid_strings_s
 
struct  bfa_plog_eid_strings_s
 
struct  bfa_plog_s
 

Macros

#define BFA_PL_NLOG_ENTS   256
 
#define BFA_PL_LOG_REC_INCR(_x)   ((_x)++, (_x) %= BFA_PL_NLOG_ENTS)
 
#define BFA_PL_STRING_LOG_SZ   32 /* number of chars in string log */
 
#define BFA_PL_INT_LOG_SZ   8 /* number of integers in the integer log */
 
#define BFA_PL_MID_STRLEN   8
 
#define BFA_PL_ENAME_STRLEN   8
 
#define BFA_PL_SIG_LEN   8
 
#define BFA_PL_SIG_STR   "12pl123"
 

Enumerations

enum  bfa_plog_log_type { BFA_PL_LOG_TYPE_INVALID = 0, BFA_PL_LOG_TYPE_INT = 1, BFA_PL_LOG_TYPE_STRING = 2 }
 
enum  bfa_plog_mid {
  BFA_PL_MID_INVALID = 0, BFA_PL_MID_DEBUG = 1, BFA_PL_MID_DRVR = 2, BFA_PL_MID_HAL = 3,
  BFA_PL_MID_HAL_FCXP = 4, BFA_PL_MID_HAL_UF = 5, BFA_PL_MID_FCS = 6, BFA_PL_MID_LPS = 7,
  BFA_PL_MID_MAX = 8
}
 
enum  bfa_plog_eid {
  BFA_PL_EID_INVALID = 0, BFA_PL_EID_IOC_DISABLE = 1, BFA_PL_EID_IOC_ENABLE = 2, BFA_PL_EID_PORT_DISABLE = 3,
  BFA_PL_EID_PORT_ENABLE = 4, BFA_PL_EID_PORT_ST_CHANGE = 5, BFA_PL_EID_TX = 6, BFA_PL_EID_TX_ACK1 = 7,
  BFA_PL_EID_TX_RJT = 8, BFA_PL_EID_TX_BSY = 9, BFA_PL_EID_RX = 10, BFA_PL_EID_RX_ACK1 = 11,
  BFA_PL_EID_RX_RJT = 12, BFA_PL_EID_RX_BSY = 13, BFA_PL_EID_CT_IN = 14, BFA_PL_EID_CT_OUT = 15,
  BFA_PL_EID_DRIVER_START = 16, BFA_PL_EID_RSCN = 17, BFA_PL_EID_DEBUG = 18, BFA_PL_EID_MISC = 19,
  BFA_PL_EID_FIP_FCF_DISC = 20, BFA_PL_EID_FIP_FCF_CVL = 21, BFA_PL_EID_LOGIN = 22, BFA_PL_EID_LOGO = 23,
  BFA_PL_EID_TRUNK_SCN = 24, BFA_PL_EID_MAX
}
 

Functions

void bfa_plog_init (struct bfa_plog_s *plog)
 
void bfa_plog_str (struct bfa_plog_s *plog, enum bfa_plog_mid mid, enum bfa_plog_eid event, u16 misc, char *log_str)
 
void bfa_plog_intarr (struct bfa_plog_s *plog, enum bfa_plog_mid mid, enum bfa_plog_eid event, u16 misc, u32 *intarr, u32 num_ints)
 
void bfa_plog_fchdr (struct bfa_plog_s *plog, enum bfa_plog_mid mid, enum bfa_plog_eid event, u16 misc, struct fchs_s *fchdr)
 
void bfa_plog_fchdr_and_pl (struct bfa_plog_s *plog, enum bfa_plog_mid mid, enum bfa_plog_eid event, u16 misc, struct fchs_s *fchdr, u32 pld_w0)
 

Macro Definition Documentation

#define BFA_PL_ENAME_STRLEN   8

Definition at line 122 of file bfa_plog.h.

#define BFA_PL_INT_LOG_SZ   8 /* number of integers in the integer log */

Definition at line 27 of file bfa_plog.h.

#define BFA_PL_LOG_REC_INCR (   _x)    ((_x)++, (_x) %= BFA_PL_NLOG_ENTS)

Definition at line 24 of file bfa_plog.h.

#define BFA_PL_MID_STRLEN   8

Definition at line 79 of file bfa_plog.h.

#define BFA_PL_NLOG_ENTS   256

Definition at line 23 of file bfa_plog.h.

#define BFA_PL_SIG_LEN   8

Definition at line 127 of file bfa_plog.h.

#define BFA_PL_SIG_STR   "12pl123"

Definition at line 128 of file bfa_plog.h.

#define BFA_PL_STRING_LOG_SZ   32 /* number of chars in string log */

Definition at line 26 of file bfa_plog.h.

Enumeration Type Documentation

Enumerator:
BFA_PL_EID_INVALID 
BFA_PL_EID_IOC_DISABLE 
BFA_PL_EID_IOC_ENABLE 
BFA_PL_EID_PORT_DISABLE 
BFA_PL_EID_PORT_ENABLE 
BFA_PL_EID_PORT_ST_CHANGE 
BFA_PL_EID_TX 
BFA_PL_EID_TX_ACK1 
BFA_PL_EID_TX_RJT 
BFA_PL_EID_TX_BSY 
BFA_PL_EID_RX 
BFA_PL_EID_RX_ACK1 
BFA_PL_EID_RX_RJT 
BFA_PL_EID_RX_BSY 
BFA_PL_EID_CT_IN 
BFA_PL_EID_CT_OUT 
BFA_PL_EID_DRIVER_START 
BFA_PL_EID_RSCN 
BFA_PL_EID_DEBUG 
BFA_PL_EID_MISC 
BFA_PL_EID_FIP_FCF_DISC 
BFA_PL_EID_FIP_FCF_CVL 
BFA_PL_EID_LOGIN 
BFA_PL_EID_LOGO 
BFA_PL_EID_TRUNK_SCN 
BFA_PL_EID_MAX 

Definition at line 93 of file bfa_plog.h.

Enumerator:
BFA_PL_LOG_TYPE_INVALID 
BFA_PL_LOG_TYPE_INT 
BFA_PL_LOG_TYPE_STRING 

Definition at line 29 of file bfa_plog.h.

Enumerator:
BFA_PL_MID_INVALID 
BFA_PL_MID_DEBUG 
BFA_PL_MID_DRVR 
BFA_PL_MID_HAL 
BFA_PL_MID_HAL_FCXP 
BFA_PL_MID_HAL_UF 
BFA_PL_MID_FCS 
BFA_PL_MID_LPS 
BFA_PL_MID_MAX 

Definition at line 67 of file bfa_plog.h.

Function Documentation

void bfa_plog_fchdr ( struct bfa_plog_s plog,
enum bfa_plog_mid  mid,
enum bfa_plog_eid  event,
u16  misc,
struct fchs_s fchdr 
)

Definition at line 398 of file bfa_svc.c.

void bfa_plog_fchdr_and_pl ( struct bfa_plog_s plog,
enum bfa_plog_mid  mid,
enum bfa_plog_eid  event,
u16  misc,
struct fchs_s fchdr,
u32  pld_w0 
)

Definition at line 418 of file bfa_svc.c.

void bfa_plog_init ( struct bfa_plog_s plog)

Definition at line 341 of file bfa_svc.c.

void bfa_plog_intarr ( struct bfa_plog_s plog,
enum bfa_plog_mid  mid,
enum bfa_plog_eid  event,
u16  misc,
u32 intarr,
u32  num_ints 
)

Definition at line 371 of file bfa_svc.c.

void bfa_plog_str ( struct bfa_plog_s plog,
enum bfa_plog_mid  mid,
enum bfa_plog_eid  event,
u16  misc,
char log_str 
)

Definition at line 351 of file bfa_svc.c.