1 #ifndef __NOUVEAU_OS_H__
2 #define __NOUVEAU_OS_H__
3 
4 #include <linux/types.h>
5 #include <linux/slab.h>
6 #include <linux/mutex.h>
7 #include <linux/pci.h>
8 #include <linux/platform_device.h>
9 #include <linux/printk.h>
10 #include <linux/bitops.h>
11 #include <linux/firmware.h>
12 #include <linux/module.h>
13 #include <linux/i2c.h>
14 #include <linux/i2c-algo-bit.h>
15 #include <linux/delay.h>
16 #include <linux/io-mapping.h>
17 #include <linux/acpi.h>
18 #include <linux/vmalloc.h>
19 #include <linux/dmi.h>
20 #include <linux/reboot.h>
21 #include <linux/interrupt.h>
22 #include <linux/log2.h>
23 #include <linux/pm_runtime.h>
24 #include <linux/power_supply.h>
25 #include <linux/clk.h>
26 #include <linux/regulator/consumer.h>
27 
28 #include <asm/unaligned.h>
29 
30 #ifndef ioread32_native
31 #ifdef __BIG_ENDIAN
32 #define ioread16_native ioread16be
33 #define iowrite16_native iowrite16be
34 #define ioread32_native  ioread32be
35 #define iowrite32_native iowrite32be
36 #else /* def __BIG_ENDIAN */
37 #define ioread16_native ioread16
38 #define iowrite16_native iowrite16
39 #define ioread32_native  ioread32
40 #define iowrite32_native iowrite32
41 #endif /* def __BIG_ENDIAN else */
42 #endif /* !ioread32_native */
43 
44 #endif
45