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