xref: /openbsd-src/sys/dev/pci/drm/include/asm/hypervisor.h (revision 1bb76ff151c0aba8e3312a604e4cd2e5195cf4b7)
1 /* Public domain. */
2 
3 #ifndef _ASM_HYPERVISOR_H
4 #define _ASM_HYPERVISOR_H
5 
6 #if defined(__i386__) || defined(__amd64__)
7 
8 #define X86_HYPER_NATIVE	1
9 #define X86_HYPER_MS_HYPERV	2
10 
11 static inline bool
hypervisor_is_type(int type)12 hypervisor_is_type(int type)
13 {
14 	return (type == X86_HYPER_NATIVE);
15 }
16 
17 #endif
18 
19 #endif
20