fabric-xlate.h revision 4f764f916501bcb9d3233dc547db1928fc2f22ac
/*
* 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
*/
/*
*/
#ifndef _FABRIC_XLATE_H
#define _FABRIC_XLATE_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* These values are used for the xxx_tgt_trans value in fab_data_t. They are
* originally set in pcie_fault.c and originally defined in pcie_impl.h.
*/
#define PF_ADDR_DMA (1 << 0)
extern char fab_buf[];
/* PCI-E config space data for error handling and fabric ereports */
typedef struct fab_data {
/* Original ereport NVL */
/* Device Information */
/* Ereport Information */
/* Error Registers */
/* Flags */
} fab_data_t;
typedef struct fab_erpt_tbl {
const char *err_class; /* Final Ereport Class */
/* Pointer to function that prepares the ereport body */
const char *tgt_class; /* Target Ereport Class */
typedef struct fab_err_tbl {
/* Pointer to function that prepares the ereport body */
fab_erpt_tbl_t *);
extern void fab_setup_master_table();
/* Main functions for converting "fabric" ereports */
/* Common functions for sending translated ereports */
/* Misc Functions */
extern char *fab_find_rppath_by_devpath(fmd_hdl_t *, const char *);
extern char *fab_get_rpdev(fmd_hdl_t *);
extern void fab_set_fake_rp(fmd_hdl_t *);
#ifdef __cplusplus
}
#endif
#endif /* _FABRIC_XLATE_H */