xref: /freebsd/sys/amd64/vmm/vmm_util.h (revision 366f60834ff8ef709f132fe8976c96a5e2caace9)
1*366f6083SPeter Grehan /*-
2*366f6083SPeter Grehan  * Copyright (c) 2011 NetApp, Inc.
3*366f6083SPeter Grehan  * All rights reserved.
4*366f6083SPeter Grehan  *
5*366f6083SPeter Grehan  * Redistribution and use in source and binary forms, with or without
6*366f6083SPeter Grehan  * modification, are permitted provided that the following conditions
7*366f6083SPeter Grehan  * are met:
8*366f6083SPeter Grehan  * 1. Redistributions of source code must retain the above copyright
9*366f6083SPeter Grehan  *    notice, this list of conditions and the following disclaimer.
10*366f6083SPeter Grehan  * 2. Redistributions in binary form must reproduce the above copyright
11*366f6083SPeter Grehan  *    notice, this list of conditions and the following disclaimer in the
12*366f6083SPeter Grehan  *    documentation and/or other materials provided with the distribution.
13*366f6083SPeter Grehan  *
14*366f6083SPeter Grehan  * THIS SOFTWARE IS PROVIDED BY NETAPP, INC ``AS IS'' AND
15*366f6083SPeter Grehan  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*366f6083SPeter Grehan  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*366f6083SPeter Grehan  * ARE DISCLAIMED.  IN NO EVENT SHALL NETAPP, INC OR CONTRIBUTORS BE LIABLE
18*366f6083SPeter Grehan  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*366f6083SPeter Grehan  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*366f6083SPeter Grehan  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*366f6083SPeter Grehan  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*366f6083SPeter Grehan  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*366f6083SPeter Grehan  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*366f6083SPeter Grehan  * SUCH DAMAGE.
25*366f6083SPeter Grehan  *
26*366f6083SPeter Grehan  * $FreeBSD$
27*366f6083SPeter Grehan  */
28*366f6083SPeter Grehan 
29*366f6083SPeter Grehan #ifndef _VMM_UTIL_H_
30*366f6083SPeter Grehan #define	_VMM_UTIL_H_
31*366f6083SPeter Grehan 
32*366f6083SPeter Grehan struct trapframe;
33*366f6083SPeter Grehan 
34*366f6083SPeter Grehan boolean_t	vmm_is_intel(void);
35*366f6083SPeter Grehan boolean_t	vmm_is_amd(void);
36*366f6083SPeter Grehan boolean_t	vmm_supports_1G_pages(void);
37*366f6083SPeter Grehan 
38*366f6083SPeter Grehan void		dump_trapframe(struct trapframe *tf);
39*366f6083SPeter Grehan 
40*366f6083SPeter Grehan #endif
41