|
@@ -2,7 +2,7 @@
|
|
#define _ASM_POWERPC_IO_H
|
|
#define _ASM_POWERPC_IO_H
|
|
#ifdef __KERNEL__
|
|
#ifdef __KERNEL__
|
|
|
|
|
|
-/*
|
|
|
|
|
|
+/*
|
|
* This program is free software; you can redistribute it and/or
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* as published by the Free Software Foundation; either version
|
|
@@ -18,6 +18,9 @@ extern int check_legacy_ioport(unsigned long base_port);
|
|
#define _PNPWRP 0xa79
|
|
#define _PNPWRP 0xa79
|
|
#define PNPBIOS_BASE 0xf000
|
|
#define PNPBIOS_BASE 0xf000
|
|
|
|
|
|
|
|
+#include <linux/device.h>
|
|
|
|
+#include <linux/io.h>
|
|
|
|
+
|
|
#include <linux/compiler.h>
|
|
#include <linux/compiler.h>
|
|
#include <asm/page.h>
|
|
#include <asm/page.h>
|
|
#include <asm/byteorder.h>
|
|
#include <asm/byteorder.h>
|
|
@@ -744,6 +747,9 @@ static inline void * bus_to_virt(unsigned long address)
|
|
|
|
|
|
#define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
|
|
#define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
|
|
|
|
|
|
|
|
+void __iomem *devm_ioremap_prot(struct device *dev, resource_size_t offset,
|
|
|
|
+ size_t size, unsigned long flags);
|
|
|
|
+
|
|
#endif /* __KERNEL__ */
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|
#endif /* _ASM_POWERPC_IO_H */
|
|
#endif /* _ASM_POWERPC_IO_H */
|