4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <fm/fmd_api.h>
34 #include <sys/types.h>
36 #define DP_MAX_BUF 16 /* max len of general purpose buffer */
43 struct timespec cda_cpu_delay
; /* CPU offline retry interval */
44 uint_t cda_cpu_tries
; /* Number of CPU offline retries */
45 uint_t cda_cpu_dooffline
; /* Whether to offline CPUs */
46 uint_t cda_cpu_forcedoffline
; /* Whether to do forced CPU offline */
49 typedef struct cda_stats
{
50 fmd_stat_t dp_offs
; /* Successful offlines */
51 fmd_stat_t dp_fails
; /* Failed offlines */
52 fmd_stat_t dp_supp
; /* Suppressed offlines */
53 fmd_stat_t bad_flts
; /* Malformed faults */
54 fmd_stat_t nop_flts
; /* Inapplicable faults */
57 extern cda_stats_t cda_stats
;
60 extern void cda_dp_retire(fmd_hdl_t
*, nvlist_t
*, nvlist_t
*, const char *);