4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
30 * Niagara services information
39 * Hypervisor service groups
41 #define HSVC_GROUP_SUN4V 0x0000
42 #define HSVC_GROUP_CORE 0x0001
43 #define HSVC_GROUP_INTR 0x0002
44 #define HSVC_GROUP_SOFT_STATE 0x0003
45 #define HSVC_GROUP_TM 0x0080
46 #define HSVC_GROUP_VPCI 0x0100
47 #define HSVC_GROUP_LDC 0x0101
48 #define HSVC_GROUP_VSC 0x0102
49 #define HSVC_GROUP_NCS 0x0103
50 #define HSVC_GROUP_RNG 0x0104
51 #define HSVC_GROUP_PBOOT 0x0105
52 #define HSVC_GROUP_TPM 0x0107
53 #define HSVC_GROUP_SDIO 0x0108
54 #define HSVC_GROUP_SDIO_ERR 0x0109
55 #define HSVC_GROUP_REBOOT_DATA 0x0110
56 #define HSVC_GROUP_NIAGARA_CPU 0x0200
57 #define HSVC_GROUP_FIRE_PERF 0x0201
58 #define HSVC_GROUP_NIAGARA2_CPU 0x0202
59 #define HSVC_GROUP_NIU 0x0204
60 #define HSVC_GROUP_VFALLS_CPU 0x0205
61 #define HSVC_GROUP_KT_CPU 0x0209
62 #define HSVC_GROUP_DIAG 0x0300
66 #include <sys/types.h>
69 * Hypervisor service negotiation data strcture
72 int hsvc_rev
; /* data structure revision number */
73 void *hsvc_private
; /* reserved for the framework */
74 uint64_t hsvc_group
; /* hypervisor API group */
75 uint64_t hsvc_major
; /* API group major number */
76 uint64_t hsvc_minor
; /* API group minor number */
77 char *hsvc_modname
; /* module name */
80 typedef struct hsvc_info hsvc_info_t
;
90 extern int hsvc_register(hsvc_info_t
*hsvcreq
, uint64_t *supported_minor
);
91 extern int hsvc_unregister(hsvc_info_t
*hsvcreq
);
92 extern int hsvc_version(uint64_t hsvc_group
, uint64_t *major
, uint64_t *minor
);
100 #endif /* _SYS_HSVC_H */