xref: /dflybsd-src/sys/dev/drm/include/asm/cpufeatures.h (revision c59a5c484fdf34b9afa6e283014e4fff693253cc)
1944aa869SFrançois Tigeot /*
2944aa869SFrançois Tigeot  * Copyright (c) 2017 François Tigeot
3944aa869SFrançois Tigeot  * All rights reserved.
4944aa869SFrançois Tigeot  *
5944aa869SFrançois Tigeot  * Redistribution and use in source and binary forms, with or without
6944aa869SFrançois Tigeot  * modification, are permitted provided that the following conditions
7944aa869SFrançois Tigeot  * are met:
8944aa869SFrançois Tigeot  * 1. Redistributions of source code must retain the above copyright
9944aa869SFrançois Tigeot  *    notice unmodified, this list of conditions, and the following
10944aa869SFrançois Tigeot  *    disclaimer.
11944aa869SFrançois Tigeot  * 2. Redistributions in binary form must reproduce the above copyright
12944aa869SFrançois Tigeot  *    notice, this list of conditions and the following disclaimer in the
13944aa869SFrançois Tigeot  *    documentation and/or other materials provided with the distribution.
14944aa869SFrançois Tigeot  *
15944aa869SFrançois Tigeot  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16944aa869SFrançois Tigeot  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17944aa869SFrançois Tigeot  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18944aa869SFrançois Tigeot  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19944aa869SFrançois Tigeot  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20944aa869SFrançois Tigeot  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21944aa869SFrançois Tigeot  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22944aa869SFrançois Tigeot  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23944aa869SFrançois Tigeot  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24944aa869SFrançois Tigeot  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25944aa869SFrançois Tigeot  */
26944aa869SFrançois Tigeot 
27944aa869SFrançois Tigeot #ifndef _ASM_CPUFEATURES_H_
28944aa869SFrançois Tigeot #define _ASM_CPUFEATURES_H_
29944aa869SFrançois Tigeot 
30944aa869SFrançois Tigeot #define X86_FEATURE_CLFLUSH	( 0*32+19) /* CLFLUSH instruction */
31944aa869SFrançois Tigeot 
32*c59a5c48SFrançois Tigeot #define X86_FEATURE_HYPERVISOR	( 4*32+31) /* Running on a hypervisor */
33*c59a5c48SFrançois Tigeot 
34944aa869SFrançois Tigeot #endif	/* _ASM_CPUFEATURES_H_ */
35