1*3db3a4acSRobert Mustacchi /* 2*3db3a4acSRobert Mustacchi * CDDL HEADER START 3*3db3a4acSRobert Mustacchi * 4*3db3a4acSRobert Mustacchi * The contents of this file are subject to the terms of the 5*3db3a4acSRobert Mustacchi * Common Development and Distribution License (the "License"). 6*3db3a4acSRobert Mustacchi * You may not use this file except in compliance with the License. 7*3db3a4acSRobert Mustacchi * 8*3db3a4acSRobert Mustacchi * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*3db3a4acSRobert Mustacchi * or http://www.opensolaris.org/os/licensing. 10*3db3a4acSRobert Mustacchi * See the License for the specific language governing permissions 11*3db3a4acSRobert Mustacchi * and limitations under the License. 12*3db3a4acSRobert Mustacchi * 13*3db3a4acSRobert Mustacchi * When distributing Covered Code, include this CDDL HEADER in each 14*3db3a4acSRobert Mustacchi * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*3db3a4acSRobert Mustacchi * If applicable, add the following below this CDDL HEADER, with the 16*3db3a4acSRobert Mustacchi * fields enclosed by brackets "[]" replaced with your own identifying 17*3db3a4acSRobert Mustacchi * information: Portions Copyright [yyyy] [name of copyright owner] 18*3db3a4acSRobert Mustacchi * 19*3db3a4acSRobert Mustacchi * CDDL HEADER END 20*3db3a4acSRobert Mustacchi */ 21*3db3a4acSRobert Mustacchi /* 22*3db3a4acSRobert Mustacchi * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*3db3a4acSRobert Mustacchi * Use is subject to license terms. 24*3db3a4acSRobert Mustacchi */ 25*3db3a4acSRobert Mustacchi 26*3db3a4acSRobert Mustacchi /* 27*3db3a4acSRobert Mustacchi * This file contains preset event names from the Performance Application 28*3db3a4acSRobert Mustacchi * Programming Interface v3.5 which included the following notice: 29*3db3a4acSRobert Mustacchi * 30*3db3a4acSRobert Mustacchi * Copyright (c) 2005,6 31*3db3a4acSRobert Mustacchi * Innovative Computing Labs 32*3db3a4acSRobert Mustacchi * Computer Science Department, 33*3db3a4acSRobert Mustacchi * University of Tennessee, 34*3db3a4acSRobert Mustacchi * Knoxville, TN. 35*3db3a4acSRobert Mustacchi * All Rights Reserved. 36*3db3a4acSRobert Mustacchi * 37*3db3a4acSRobert Mustacchi * 38*3db3a4acSRobert Mustacchi * Redistribution and use in source and binary forms, with or without 39*3db3a4acSRobert Mustacchi * modification, are permitted provided that the following conditions are met: 40*3db3a4acSRobert Mustacchi * 41*3db3a4acSRobert Mustacchi * * Redistributions of source code must retain the above copyright notice, 42*3db3a4acSRobert Mustacchi * this list of conditions and the following disclaimer. 43*3db3a4acSRobert Mustacchi * * Redistributions in binary form must reproduce the above copyright 44*3db3a4acSRobert Mustacchi * notice, this list of conditions and the following disclaimer in the 45*3db3a4acSRobert Mustacchi * documentation and/or other materials provided with the distribution. 46*3db3a4acSRobert Mustacchi * * Neither the name of the University of Tennessee nor the names of its 47*3db3a4acSRobert Mustacchi * contributors may be used to endorse or promote products derived from 48*3db3a4acSRobert Mustacchi * this software without specific prior written permission. 49*3db3a4acSRobert Mustacchi * 50*3db3a4acSRobert Mustacchi * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 51*3db3a4acSRobert Mustacchi * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 52*3db3a4acSRobert Mustacchi * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 53*3db3a4acSRobert Mustacchi * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 54*3db3a4acSRobert Mustacchi * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 55*3db3a4acSRobert Mustacchi * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 56*3db3a4acSRobert Mustacchi * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 57*3db3a4acSRobert Mustacchi * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 58*3db3a4acSRobert Mustacchi * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 59*3db3a4acSRobert Mustacchi * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 60*3db3a4acSRobert Mustacchi * POSSIBILITY OF SUCH DAMAGE. 61*3db3a4acSRobert Mustacchi * 62*3db3a4acSRobert Mustacchi * 63*3db3a4acSRobert Mustacchi * This open source software license conforms to the BSD License template. 64*3db3a4acSRobert Mustacchi */ 65*3db3a4acSRobert Mustacchi 66*3db3a4acSRobert Mustacchi /* 67*3db3a4acSRobert Mustacchi * Portions Copyright 2009 Advanced Micro Devices, Inc. 68*3db3a4acSRobert Mustacchi * Copyright 2019 Joyent, Inc. 69*3db3a4acSRobert Mustacchi */ 70*3db3a4acSRobert Mustacchi 71*3db3a4acSRobert Mustacchi /* 72*3db3a4acSRobert Mustacchi * Structure definition for AMD PCBE events. 73*3db3a4acSRobert Mustacchi */ 74*3db3a4acSRobert Mustacchi 75*3db3a4acSRobert Mustacchi #ifndef _OPTERON_PCBE_TABLE_H 76*3db3a4acSRobert Mustacchi #define _OPTERON_PCBE_TABLE_H 77*3db3a4acSRobert Mustacchi 78*3db3a4acSRobert Mustacchi /* 79*3db3a4acSRobert Mustacchi * Structure definition for PCBE events. 80*3db3a4acSRobert Mustacchi */ 81*3db3a4acSRobert Mustacchi 82*3db3a4acSRobert Mustacchi #ifdef __cplusplus 83*3db3a4acSRobert Mustacchi extern "C" { 84*3db3a4acSRobert Mustacchi #endif 85*3db3a4acSRobert Mustacchi 86*3db3a4acSRobert Mustacchi #include <sys/types.h> 87*3db3a4acSRobert Mustacchi 88*3db3a4acSRobert Mustacchi 89*3db3a4acSRobert Mustacchi typedef struct _amd_event { 90*3db3a4acSRobert Mustacchi char *name; 91*3db3a4acSRobert Mustacchi uint16_t emask; /* Event mask setting */ 92*3db3a4acSRobert Mustacchi uint8_t unit; 93*3db3a4acSRobert Mustacchi } amd_event_t; 94*3db3a4acSRobert Mustacchi 95*3db3a4acSRobert Mustacchi typedef struct _amd_generic_event { 96*3db3a4acSRobert Mustacchi char *name; 97*3db3a4acSRobert Mustacchi char *event; 98*3db3a4acSRobert Mustacchi uint8_t umask; 99*3db3a4acSRobert Mustacchi } amd_generic_event_t; 100*3db3a4acSRobert Mustacchi 101*3db3a4acSRobert Mustacchi #ifdef __cplusplus 102*3db3a4acSRobert Mustacchi } 103*3db3a4acSRobert Mustacchi #endif 104*3db3a4acSRobert Mustacchi 105*3db3a4acSRobert Mustacchi #endif /* _OPTERON_PCBE_TABLE_H */ 106