fpc-asm-4v.s revision 110e73f9b5ccaa10e26a8f79807001a5da72604e
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz/*
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * CDDL HEADER START
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz *
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * The contents of this file are subject to the terms of the
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * Common Development and Distribution License (the "License").
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * You may not use this file except in compliance with the License.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz *
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * or http://www.opensolaris.org/os/licensing.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * See the License for the specific language governing permissions
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * and limitations under the License.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz *
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * When distributing Covered Code, include this CDDL HEADER in each
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * If applicable, add the following below this CDDL HEADER, with the
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * fields enclosed by brackets "[]" replaced with your own identifying
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * information: Portions Copyright [yyyy] [name of copyright owner]
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz *
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * CDDL HEADER END
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz */
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz/*
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * Use is subject to license terms.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz */
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#pragma ident "%Z%%M% %I% %E% SMI"
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz/*
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * Assembly language support for sun4v px driver
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz */
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#include <sys/asm_linkage.h>
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#include <sys/machthread.h>
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#include <sys/privregs.h>
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#include <sys/hypervisor_api.h>
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz/*LINTLIBRARY*/
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#if defined(lint)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#include "fpc-impl-4v.h"
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz/*ARGSUSED*/
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzint
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzfpc_get_fire_perfreg(devhandle_t dev_hdl, int regid, uint64_t *data)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz{ return (0); }
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz/*ARGSUSED*/
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzint
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzfpc_set_fire_perfreg(devhandle_t dev_hdl, int regid, uint64_t data)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz{ return (0); }
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#else /* lint */
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz /*
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * fpc_get_fire_perfreg(devhandle_t dev_hdl, int regid, uint64_t *data)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz */
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz ENTRY(fpc_get_fire_perfreg)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz mov FIRE_GET_PERFREG, %o5
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz ta FAST_TRAP
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz brz,a %o0, 1f
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz stx %o1, [%o2]
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz1: retl
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz nop
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz SET_SIZE(fpc_get_fire_perfreg)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz /*
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * fpc_set_fire_perfreg(devhandle_t dev_hdl, int regid, uint64_t data)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz */
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz ENTRY(fpc_set_fire_perfreg)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz mov FIRE_SET_PERFREG, %o5
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz ta FAST_TRAP
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz retl
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz nop
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz SET_SIZE(fpc_set_fire_perfreg)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#endif