hxge_fm.h revision 3dec9fcdd56adf1b4a563137b4915c8f2d83b881
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_HXGE_HXGE_FM_H
#define _SYS_HXGE_HXGE_FM_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define ERNAME_DETAILED_ERR_TYPE "detailed error type"
#define ERNAME_ERR_DCHAN "dma channel number"
#define ERNAME_PFC_TCAM_ERR "pfc tcam error"
#define ERNAME_PFC_VLAN_ERR "pfc vlan table error"
#define ERNAME_PFC_PKT_DROP "pfc pkt drop error"
#define ERNAME_RDMC_PAR_ERR_LOG "rdmc parity error log"
#define ERNAME_RDC_ERR_TYPE "completion error type"
#define ERNAME_TDC_PREF_PAR_LOG "tdc pref par log"
#define EREPORT_FM_ID_SHIFT 16
#define EREPORT_FM_ID_MASK 0xFF
#define EREPORT_INDEX_MASK 0xFF
#define HXGE_FM_EREPORT_UNKNOWN 0
#define FM_SW_ID 0xFF
#define FM_VMAC_ID VMAC_BLK_ID
#define FM_TXDMA_ID TXDMA_BLK_ID
#define FM_RXDMA_ID RXDMA_BLK_ID
#define FM_PFC_ID PFC_BLK_ID
#define FM_PEU_ID PEU_BLK_ID
typedef uint32_t hxge_fm_ereport_id_t;
typedef struct _hxge_fm_ereport_attr {
char *str;
char *eclass;
/* VMAC ereports */
typedef enum {
/* PFC ereports */
typedef enum {
/* RDMC ereports */
typedef enum {
typedef enum {
/* PEU ereports */
typedef enum {
typedef enum {
#ifdef __cplusplus
}
#endif
#endif /* _SYS_HXGE_HXGE_FM_H */