os.h 1.0 KB
Newer Older
1 2 3 4 5 6 7
#ifndef __NOUVEAU_OS_H__
#define __NOUVEAU_OS_H__

#include <linux/types.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/pci.h>
A
Alexandre Courbot 已提交
8
#include <linux/platform_device.h>
9 10 11 12 13 14 15 16 17
#include <linux/printk.h>
#include <linux/bitops.h>
#include <linux/firmware.h>
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <linux/delay.h>
#include <linux/io-mapping.h>
#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>
L
Lucas Stach 已提交
23
#include <linux/pm_runtime.h>
24
#include <linux/power_supply.h>
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

#include <asm/unaligned.h>

#ifndef ioread32_native
#ifdef __BIG_ENDIAN
#define ioread16_native ioread16be
#define iowrite16_native iowrite16be
#define ioread32_native  ioread32be
#define iowrite32_native iowrite32be
#else /* def __BIG_ENDIAN */
#define ioread16_native ioread16
#define iowrite16_native iowrite16
#define ioread32_native  ioread32
#define iowrite32_native iowrite32
#endif /* def __BIG_ENDIAN else */
#endif /* !ioread32_native */

#endif