cmd_dp.h revision d00f0155af9a9a671eb08a0dc30f5ea0a379c36c
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CMD_DATAPATH_H
#define _CMD_DATAPATH_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <cmd_fmri.h>
/*
* Member Name Data Type Comments
* ----------- --------- -----------
* version uint8 0
* class string "asic"
* ENA uint64 ENA Format 1
* detector fmri aggregated ID data for SC-DE
*
* Datapath ereport subclasses and data payloads:
* There will be two types of ereports (error and fault) which will be
* identified by the "type" member.
*
* ereport.asic.*.cds.cds-dp
* ereport.asic.*.dx.dx-dp
* ereport.asic.*.sdi.sdi-dp
* ereport.asic.*.cp.cp-dp
* ereport.asic.*.rp.rp-dp
*
* Member Name Data Type Comments
* ----------- --------- -----------
* erptype uint16 derived from message type: error or
* fault
* t-value uint32 SC's datapath SERD timeout threshold
* dp-list-sz uint8 number of dp-list array elements
* dp-list array of uint16 Safari IDs of affected cpus
* sn-list array of uint64 Serial numbers of affected cpus
*/
#define CMD_DP_VERSION_0 0
#define CMD_DP_VERSION CMD_DP_VERSION_0
/* Portion of datapath structure to be persisted */
typedef struct cmd_dp_pers {
typedef struct cmd_dp {
} cmd_dp_t;
#define CMD_DP_MAXSIZE sizeof (cmd_dp_pers_t)
#define CMD_DP_MINSIZE sizeof (cmd_dp_pers_t)
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
extern void cmd_dp_close(fmd_hdl_t *, void *);
extern void cmd_dp_validate(fmd_hdl_t *);
extern int cmd_dp_error(fmd_hdl_t *);
extern int cmd_dp_get_mcid(uint64_t, int *);
extern void cmd_dp_fini(fmd_hdl_t *);
#endif /* _CMD_DATAPATH_H */