xref: /dflybsd-src/sys/dev/drm/include/asm/processor.h (revision c6002f72cf8c409b6554e9deb4d8f8b2870f2379)
1*c6002f72SFrançois Tigeot /*
2*c6002f72SFrançois Tigeot  * Copyright (c) 2019 François Tigeot <ftigeot@wolfpond.org>
3*c6002f72SFrançois Tigeot  * All rights reserved.
4*c6002f72SFrançois Tigeot  *
5*c6002f72SFrançois Tigeot  * Redistribution and use in source and binary forms, with or without
6*c6002f72SFrançois Tigeot  * modification, are permitted provided that the following conditions
7*c6002f72SFrançois Tigeot  * are met:
8*c6002f72SFrançois Tigeot  * 1. Redistributions of source code must retain the above copyright
9*c6002f72SFrançois Tigeot  *    notice unmodified, this list of conditions, and the following
10*c6002f72SFrançois Tigeot  *    disclaimer.
11*c6002f72SFrançois Tigeot  * 2. Redistributions in binary form must reproduce the above copyright
12*c6002f72SFrançois Tigeot  *    notice, this list of conditions and the following disclaimer in the
13*c6002f72SFrançois Tigeot  *    documentation and/or other materials provided with the distribution.
14*c6002f72SFrançois Tigeot  *
15*c6002f72SFrançois Tigeot  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16*c6002f72SFrançois Tigeot  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17*c6002f72SFrançois Tigeot  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18*c6002f72SFrançois Tigeot  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19*c6002f72SFrançois Tigeot  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20*c6002f72SFrançois Tigeot  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21*c6002f72SFrançois Tigeot  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22*c6002f72SFrançois Tigeot  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23*c6002f72SFrançois Tigeot  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24*c6002f72SFrançois Tigeot  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25*c6002f72SFrançois Tigeot  */
26*c6002f72SFrançois Tigeot 
27*c6002f72SFrançois Tigeot #ifndef _ASM_PROCESSOR_H_
28*c6002f72SFrançois Tigeot #define _ASM_PROCESSOR_H_
29*c6002f72SFrançois Tigeot 
30*c6002f72SFrançois Tigeot #include <asm/types.h>
31*c6002f72SFrançois Tigeot #include <asm/current.h>
32*c6002f72SFrançois Tigeot #include <asm/cpufeatures.h>
33*c6002f72SFrançois Tigeot #include <asm/page.h>
34*c6002f72SFrançois Tigeot #include <asm/pgtable_types.h>
35*c6002f72SFrançois Tigeot #include <asm/special_insns.h>
36*c6002f72SFrançois Tigeot 
37*c6002f72SFrançois Tigeot #include <linux/cache.h>
38*c6002f72SFrançois Tigeot #include <linux/threads.h>
39*c6002f72SFrançois Tigeot #include <linux/math64.h>
40*c6002f72SFrançois Tigeot #include <linux/err.h>
41*c6002f72SFrançois Tigeot #include <linux/irqflags.h>
42*c6002f72SFrançois Tigeot 
43*c6002f72SFrançois Tigeot #include <machine/cpufunc.h>
44*c6002f72SFrançois Tigeot 
45*c6002f72SFrançois Tigeot #define cpu_relax()	cpu_pause()
46*c6002f72SFrançois Tigeot 
47*c6002f72SFrançois Tigeot #endif	/* _ASM_PROCESSOR_H_ */
48