/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CMD_LxCACHE_H
#define _CMD_LxCACHE_H
/*
* Routines for the creation of Lxcache retirement faults and for the
* management of Lxcache-related state.
*/
#include <cmd_state.h>
#include <cmd_cpu.h>
#include <cmd_fmri.h>
#ifdef __cplusplus
extern "C" {
#endif
(type == CMD_PTR_CPU_L3TAG))
typedef struct cmd_Lxcache_pers {
/*
* We need the cpu_hdr_bufname in order to restore the Lxcache.
*/
typedef struct cmd_Lxcache {
char *Lxcache_class;
/* recheck of tags */
/*
* Lxcache retirement
*
* When a Lxcache is to be retired, these routines are called to generate and
* manage a fault.memory.Lxcache against the Lxcache.
*/
#ifdef sun4u
cmd_cpu_t *, cmd_errcl_t);
#endif
const char *, const char *, const char *, cmd_errcl_t);
extern void cmd_Lxcache_close(fmd_hdl_t *, void *);
extern cmd_Lxcache_t *
extern cmd_Lxcache_t *
extern cmd_Lxcache_t *
extern void cmd_Lxcache_destroy_anonymous_serd_engines(fmd_hdl_t *,
extern const char *cmd_type_to_str(cmd_ptrsubtype_t);
extern const char *cmd_reason_to_str(int);
extern const char *cmd_flags_to_str(int);
cmd_Lxcache_t *, const char *);
cmd_Lxcache_t *, const char *, uint_t);
size_t);
extern void cmd_Lxcache_gc(fmd_hdl_t *);
int8_t);
const char *);
cmd_Lxcache_t *);
extern int test_mode;
#ifdef __cplusplus
}
#endif
#endif /* _CMD_LxCACHE_H */