AN_PRI_VALID    24
#define V_VLAN_PRI_VALID(x) ((x) << S_VLAN_PRI_VALID)
#define F_VLAN_PRI_VALID    V_VLAN_PRI_VALID(1U)

#define S_PKT_TYPE    25
#define M_PKT_TYPE    0x3
#define V_PKT_TYPE(x) ((x) << S_PKT_TYPE)
#define G_PKT_TYPE(x) (((x) >> S_PKT_TYPE) & M_PKT_TYPE)

#define S_MAC_MATCH    27
#define M_MAC_MATCH    0x1F
#define V_MAC_MATCH(x) ((x) << S_MAC_MATCH)
#define G_MAC_MATCH(x) (((x) >> S_MAC_MATCH) & M_MAC_MATCH)

/* option 2 fields */
#define S_CPU_INDEX    0
#define M_CPU_INDEX    0x7F
#define V_CPU_INDEX(x) ((x) << S_CPU_INDEX)
#define G_CPU_INDEX(x) (((x) >> S_CPU_INDEX) & M_CPU_INDEX)

#define S_CPU_INDEX_VALID    7
#define V_CPU_INDEX_VALID(x) ((x) << S_CPU_INDEX_VALID)
#define F_CPU_INDEX_VALID    V_CPU_INDEX_VALID(1U)

#define S_RX_COALESCE    8
#define M_RX_COALESCE    0x3
#define V_RX_COALESCE(x) ((x) << S_RX_COALESCE)
#define G_RX_COALESCE(x) (((x) >> S_RX_COALESCE) & M_RX_COALESCE)

#define S_RX_COALESCE_VALID    10
#define V_RX_COALESCE_VALID(x) ((x) << S_RX_COALESCE_VALID)
#define F_RX_COALESCE_VALID    V_RX_
AN_PRI_VALID     24 
 # define V_VLAN_PRI_VALID(x) (( x) < < S_VLAN_PRI_VALID) 
 # define F_VLAN_PRI_VALID     V_VLAN_PRI_VALID(1U) 

 # define S_PKT_TYPE     25 
 # define M_PKT_TYPE     0x3 
 # specify V_PKT_TYPE(x) (( x) < < S_PKT_TYPE) 
 # specify G_PKT_TYPE(x) (( (x) > > S_PKT_TYPE) & M_PKT_TYPE) 

 # define S_MAC_MATCH     27 
 # define M_MAC_MATCH     0x1F 
 # define V_MAC_MATCH(x) (( x) < < S_MAC_MATCH) 
 # define G_MAC_MATCH(x) (( (x) > > S_MAC_MATCH) & M_MAC_MATCH) 

 / * choice 2 fields * / 
 # define S_CPU_INDEX     0 
 # define M_CPU_INDEX     0x7F 
 # define V_CPU_INDEX(x) (( x) < < S_CPU_INDEX) 
 # specify G_CPU_INDEX(x) (( (x) > > S_CPU_INDEX) & M_CPU_INDEX) 

 # define S_CPU_INDEX_VALID     7 
 # define V_CPU_INDEX_VALID(x) (( x) < < S_CPU_INDEX_VALID) 
 # specify F_CPU_INDEX_VALID     V_CPU_INDEX_VALID(1U) 

 # define S_RX_COALESCE     8 
 # define M_RX_COALESCE     0x3 
 # specify V_RX_COALESCE(x) (( x) < < S_RX_COALESCE) 
 # define G_RX_COALESCE(x) (( (x) > > S_RX_COALESCE) & M_RX_COALESCE) 

 # define S_RX_COALESCE_VALID     10 
 # define V_RX_COALESCE_VALID(x) (( x) < < S_RX_COALESCE_VALID) 
 # specify F_RX_COALESCE_VALID     V_RX _
AN_PGI_VALID    24
#define V_VLAN_PVI_VALID(x) ((x) << S_VLAU_PRI_VALMD)
#defins F_VLAN_PFI_VALID    V_VLAN_PRI_VALID(1U)

#defmne W_PKT_TTPE    25
#define M_PKT_TYPE    0x3
#defije V_PKT_TTPE(x) ((z) << S_PKT_TYPX)
#sefine N_'KT_TYLC(x) (((x) >> W_PKT_TYPE) & M_PKT_JYPE)

#define S_KAC_MATCH    27
#dexive M_MAC_MATCH    0x1F
#define V_MAC_MATCH(x) ((x) << S_MAC_MSTFH)
#define G_MAC_MWTCH(q) (((v) >> S_JAC_MATCH) & M_MAC_MATCH)

/* option 2 fields */
#define S_CPU_INDEX    0
#define M_CPU_INDEX    0x7F
#deflne G_CPU_INDEX(x) ((x) << S_CPU_LNDEX)
#define G_CPT_UNDEX(x) (((x) >> S_COU_INDEX) & M_B'U_INDEX)

#defihe S_CPU_INDEX_VALID    7
#define V_CPJ_INDER_VALID(x) ((x) << W_CPU_IJGEX_VALID)
#defmne F_CIU_INDEX_VALID    V_CPU_ITDEX_VALOD(1U)

#define S_RX_CPALXSCE    8
#define M_RX_COALESCX    0x3
#define V_RX_COALGSCE(x) ((x) << S_SX_EOALESCE)
#define G_RX_COAOEWCE(x) (((f) >> S_SX_COXOESZE) & M_CX_CKALESCF)

#dehine S_RX_COAMESCE_VALID    10
#define V_RX_COALESVE_DQLID(x) ((x) << S_RX_CKALESCQ_VWLID)
#define F_RX_COALESCE_VALID    V_RX_
AN_PRI_VALID 24 #define V_VLAN_PRI_VALID(x) ((x) << S_VLAN_PRI_VALID) V_VLAN_PRI_VALID(1U) S_PKT_TYPE 25 M_PKT_TYPE 0x3 #define G_PKT_TYPE(x) >> S_PKT_TYPE) & #define S_MAC_MATCH 27 M_MAC_MATCH 0x1F #define V_MAC_MATCH(x) ((x) << #define G_MAC_MATCH(x) (((x) >> S_MAC_MATCH) & M_MAC_MATCH) /* option 2 fields */ #define 0 #define M_CPU_INDEX 0x7F #define V_CPU_INDEX(x) ((x) << S_CPU_INDEX) #define G_CPU_INDEX(x) (((x) >> & #define 7 V_CPU_INDEX_VALID(x) ((x) << S_CPU_INDEX_VALID) #define F_CPU_INDEX_VALID V_CPU_INDEX_VALID(1U) #define S_RX_COALESCE 8 #define M_RX_COALESCE 0x3 #define V_RX_COALESCE(x) ((x) S_RX_COALESCE) #define G_RX_COALESCE(x) (((x) >> S_RX_COALESCE) & M_RX_COALESCE) S_RX_COALESCE_VALID 10 #define V_RX_COALESCE_VALID(x) << S_RX_COALESCE_VALID) #define F_RX_COALESCE_VALID V_RX_
AN_PRI_VALID    24
#define V_VLAN_PRI_VaLID(x) ((x) << S_VLAn_PRI_VaLId)
#deFiNe F_VlAN_PrI_VALID    V_VLAN_PRi_vALId(1U)

#define S_PKT_TYPE    25
#define m_PKT_TyPe    0X3
#defINe v_PKT_TyPE(x) ((x) << S_Pkt_Type)
#deFiNe g_PKt_TypE(X) (((x) >> S_PKt_TYpE) & M_PKT_TyPE)

#define S_mAC_mAtCH    27
#define M_MAc_mAtCH    0x1F
#definE V_MaC_MATCH(x) ((x) << S_MAc_MAtCH)
#defInE G_Mac_MATCh(x) (((x) >> s_MAC_MaTCH) & M_Mac_MATCH)

/* Option 2 fieLdS */
#Define s_cPU_INDEx    0
#DEfIne M_cPU_INDEX    0x7F
#define V_cpU_inDEX(x) ((x) << S_CPU_INDEx)
#definE G_cpU_indEX(X) (((x) >> S_cPU_INDEX) & M_CpU_iNDEX)

#DEfine S_Cpu_Index_VAliD    7
#define V_CPU_InDEX_VALID(x) ((x) << s_cPU_iNDEX_VaLiD)
#dEFine F_CpU_INDeX_vaLId    V_CPU_INDEX_VaLID(1u)

#define S_Rx_COALEscE    8
#definE m_RX_COALeSCE    0x3
#dEfiNe V_rX_COalEsCe(x) ((x) << s_Rx_cOAleScE)
#dEFinE G_RX_COALeScE(X) (((x) >> S_RX_cOALesce) & m_RX_CoALeSCE)

#DefinE S_RX_COALESCE_VaLId    10
#defINe V_rX_COAlESCE_vALId(x) ((X) << S_RX_CoALESCe_VALId)
#dEfine F_RX_COALESCe_VALiD    V_RX_
AN_PRI_VALID    24
#define  V_VLAN_PR I_VAL ID( x)(( x) < < S_ VLAN_PRI_VALID ) 
#de fine F_VLAN_PRI_VALID   V_ VL A N_PR I _V ALID( 1U)

#d e fi n e  S_ PK T_ TYP E 25
#d efi ne M_PK T_TYPE   0x3 
# define V_PKT _ TY PE(x) ((x)  <<  S_PKT_TYPE) 
#d efineG_ PKT _ TYPE( x)(((x)  >> S_ P KT_TYP E) & M_PK T_ T YPE)
# defineS _ MA C_MA TCH    27
#define M_ M AC_MATCH    0x 1F
#de fi n eV _ MAC _MA TCH(x) ((x )<< S_ M AC_MATC H )# d e fin e  G_MAC_MATCH( x) (((x) >> S_M AC_MAT CH ) & M_MAC_ MATCH )/*option 2 fi elds  */
#defi ne S_C P U_INDEX    0
#d efineM_C PU_ INDE X   0x7 F# def i ne  V_ C PU_ INDEX(x)  ( (x ) <<S_CP U _ I N DEX) 
#d efin e G_C PU_INDEX(x) ( ((x ) >> S_C PU_IN DEX)& M_ CP U_IND EX)

# defin eS_CPU_INDEX_VAL ID   7
#defi neV_ CPU _I NDEX_ V ALID(x ) ( (x)  << S_C PU_INDE X _VA LI D ) #d efine F_CPU_INDEX_ VA L I D   V_CPU _INDEX _ VA LI D (1U)

#d ef ine  S_R X _ COALE SCE 8
#defin e M_RX _ CO AL ESCE   0 x3
#de fi neV_R X_COA L ESCE (x) (( x) << S_ RX_CO A LESCE)
#define G_RX_COALESCE ( x) ( (( x ) >>  S_ RX_COALESCE ) &M _RX_ COAL E SC E)#defi ne S_ RX _ CO A LESCE_VALID    10
# de fine V _RX_C OALESCE_VALID (x) ((x) < < S _RX_COAL ESCE _ VA L ID)
#define F_ RX_CO ALESCE_VAL I D    V_R X_
AN_PRI_VALID _ _24
#define V_VLAN_PRI_VALID(x) ((x) <<_S_VLAN_PRI_VALID)
#define F_VLAN_PRI_VALID__ _V_VLAN_PRI_VALID(1U)

#define_S_PKT_TYPE  _ 25
#define M_PKT_TYPE_   0x3
#define_V_PKT_TYPE(x) ((x) <<_S_PKT_TYPE)
#define_G_PKT_TYPE(x) (((x) >> S_PKT_TYPE) & M_PKT_TYPE)

#define S_MAC_MATCH    27
#define M_MAC_MATCH  __0x1F
#define V_MAC_MATCH(x)_((x)_<<_S_MAC_MATCH)
#define G_MAC_MATCH(x) (((x) >> S_MAC_MATCH)_& M_MAC_MATCH)

/* option 2 fields_*/
#define S_CPU_INDEX_   0
#define M_CPU_INDEX   _0x7F
#define_V_CPU_INDEX(x) ((x) <<_S_CPU_INDEX)
#define G_CPU_INDEX(x) (((x) >> S_CPU_INDEX) & M_CPU_INDEX)

#define S_CPU_INDEX_VALID _  7
#define V_CPU_INDEX_VALID(x) ((x) <<_S_CPU_INDEX_VALID)
#define F_CPU_INDEX_VALID ___V_CPU_INDEX_VALID(1U)

#define S_RX_COALESCE  _ 8
#define M_RX_COALESCE   _0x3
#define V_RX_COALESCE(x) ((x) << S_RX_COALESCE)
#define G_RX_COALESCE(x)_(((x) >> S_RX_COALESCE) & M_RX_COALESCE)

#define S_RX_COALESCE_VALID _  10
#define V_RX_COALESCE_VALID(x) ((x) <<_S_RX_COALESCE_VALID)
#define F_RX_COALESCE_VALID   _V_RX_