cmd_cpu_arch.c revision 2f48339a0c14421b8826b39fc3ab783a064cb77b
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * CDDL HEADER START
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * The contents of this file are subject to the terms of the
2f48339a0c14421b8826b39fc3ab783a064cb77bjc * Common Development and Distribution License (the "License").
2f48339a0c14421b8826b39fc3ab783a064cb77bjc * You may not use this file except in compliance with the License.
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * See the License for the specific language governing permissions
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * and limitations under the License.
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * When distributing Covered Code, include this CDDL HEADER in each
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * If applicable, add the following below this CDDL HEADER, with the
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * fields enclosed by brackets "[]" replaced with your own identifying
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * information: Portions Copyright [yyyy] [name of copyright owner]
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * CDDL HEADER END
2f48339a0c14421b8826b39fc3ab783a064cb77bjc * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * Use is subject to license terms.
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien#pragma ident "%Z%%M% %I% %E% SMI"
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * Support routines for managing per-CPU state.
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien * The unused argument 'clcode' is needed for our sun4v sibling.
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien/*ARGSUSED*/
6dfee4834394825da35b977ca71cdc965bc7b6a4tsiencmd_xr_fill(fmd_hdl_t *hdl, nvlist_t *nvl, cmd_xr_t *xr, cmd_errcl_t clcode)
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien if (nvlist_lookup_uint16(nvl, FM_EREPORT_PAYLOAD_NAME_SYND,
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien return (-1);
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien if (nvlist_lookup_uint8(nvl, FM_EREPORT_PAYLOAD_NAME_SYND_STATUS,
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien return (-1);
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien if (nvlist_lookup_uint64(nvl, FM_EREPORT_PAYLOAD_NAME_AFAR,
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien return (-1);
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien if (nvlist_lookup_uint8(nvl, FM_EREPORT_PAYLOAD_NAME_AFAR_STATUS,
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien return (-1);
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien return (0);
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien return (-1);
6dfee4834394825da35b977ca71cdc965bc7b6a4tsien return (0);
2f48339a0c14421b8826b39fc3ab783a064cb77bjccmd_afar_valid(fmd_hdl_t *hdl, nvlist_t *nvl, cmd_errcl_t clcode,
2f48339a0c14421b8826b39fc3ab783a064cb77bjc FM_EREPORT_PAYLOAD_NAME_AFAR_STATUS, &afar_status) == 0) {
2f48339a0c14421b8826b39fc3ab783a064cb77bjc return (0);
2f48339a0c14421b8826b39fc3ab783a064cb77bjc return (-1);
2f48339a0c14421b8826b39fc3ab783a064cb77bjc return (-1);