xref: /dragonfly/sys/dev/drm/include/asm/cpufeatures.h (revision e2a4a6b1)
1944aa869SFrançois Tigeot /*
24ee023ecSFrançois Tigeot  * Copyright (c) 2017-2020 François Tigeot <ftigeot@wolfpond.org>
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 
30*e2a4a6b1SFrançois Tigeot #define X86_FEATURE_PAT		( 0*32+16)
31944aa869SFrançois Tigeot #define X86_FEATURE_CLFLUSH	( 0*32+19) /* CLFLUSH instruction */
32944aa869SFrançois Tigeot 
334ee023ecSFrançois Tigeot #define X86_FEATURE_XMM4_1	( 4*32+19) /* SSE 4.1, first appeared in 2007 */
344ee023ecSFrançois Tigeot 
35c59a5c48SFrançois Tigeot #define X86_FEATURE_HYPERVISOR	( 4*32+31) /* Running on a hypervisor */
36c59a5c48SFrançois Tigeot 
37*e2a4a6b1SFrançois Tigeot 
38944aa869SFrançois Tigeot #endif	/* _ASM_CPUFEATURES_H_ */
39