1 #ifndef __NOUVEAU_OS_H__
2 #define __NOUVEAU_OS_H__
4 #include <linux/types.h>
5 #include <linux/slab.h>
6 #include <linux/mutex.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>
26 #include <asm/unaligned.h>
28 #ifndef ioread32_native
30 #define ioread16_native ioread16be
31 #define iowrite16_native iowrite16be
32 #define ioread32_native ioread32be
33 #define iowrite32_native iowrite32be
34 #else /* def __BIG_ENDIAN */
35 #define ioread16_native ioread16
36 #define iowrite16_native iowrite16
37 #define ioread32_native ioread32
38 #define iowrite32_native iowrite32
39 #endif /* def __BIG_ENDIAN else */
40 #endif /* !ioread32_native */