2012-07-05 21:36:43 +00:00
|
|
|
#ifndef __NOUVEAU_OS_H__
|
|
|
|
#define __NOUVEAU_OS_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/slab.h>
|
|
|
|
#include <linux/mutex.h>
|
|
|
|
#include <linux/pci.h>
|
2014-02-17 06:17:26 +00:00
|
|
|
#include <linux/platform_device.h>
|
2012-07-05 21:36:43 +00:00
|
|
|
#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>
|
2013-07-27 04:27:00 +00:00
|
|
|
#include <linux/vmalloc.h>
|
2012-07-10 02:20:17 +00:00
|
|
|
#include <linux/dmi.h>
|
2012-11-04 23:18:49 +00:00
|
|
|
#include <linux/reboot.h>
|
2013-03-22 00:05:03 +00:00
|
|
|
#include <linux/interrupt.h>
|
2013-07-27 04:27:00 +00:00
|
|
|
#include <linux/log2.h>
|
2013-08-28 00:00:50 +00:00
|
|
|
#include <linux/pm_runtime.h>
|
2014-06-13 03:23:42 +00:00
|
|
|
#include <linux/power_supply.h>
|
2014-07-26 09:41:41 +00:00
|
|
|
#include <linux/clk.h>
|
2012-07-05 21:36:43 +00:00
|
|
|
|
|
|
|
#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
|