iomap.h (f01387d2693813eb5271a3448e6a082322c7d75d) iomap.h (d838270e2516db11084bed4e294017eb7b646a75)
1#ifndef __GENERIC_IO_H
2#define __GENERIC_IO_H
3
4#include <linux/linkage.h>
5#include <asm/byteorder.h>
6
7/*
8 * These are the "generic" interfaces for doing new-style

--- 52 unchanged lines hidden (view full) ---

61extern void __iomem *ioport_map(unsigned long port, unsigned int nr);
62extern void ioport_unmap(void __iomem *);
63#endif
64
65#ifndef ARCH_HAS_IOREMAP_WC
66#define ioremap_wc ioremap_nocache
67#endif
68
1#ifndef __GENERIC_IO_H
2#define __GENERIC_IO_H
3
4#include <linux/linkage.h>
5#include <asm/byteorder.h>
6
7/*
8 * These are the "generic" interfaces for doing new-style

--- 52 unchanged lines hidden (view full) ---

61extern void __iomem *ioport_map(unsigned long port, unsigned int nr);
62extern void ioport_unmap(void __iomem *);
63#endif
64
65#ifndef ARCH_HAS_IOREMAP_WC
66#define ioremap_wc ioremap_nocache
67#endif
68
69#ifndef ARCH_HAS_IOREMAP_WT
70#define ioremap_wt ioremap_nocache
71#endif
72
69#ifdef CONFIG_PCI
70/* Destroy a virtual mapping cookie for a PCI BAR (memory or IO) */
71struct pci_dev;
72extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
73#elif defined(CONFIG_GENERIC_IOMAP)
74struct pci_dev;
75static inline void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
76{ }
77#endif
78
79#include <asm-generic/pci_iomap.h>
80
81#endif
73#ifdef CONFIG_PCI
74/* Destroy a virtual mapping cookie for a PCI BAR (memory or IO) */
75struct pci_dev;
76extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
77#elif defined(CONFIG_GENERIC_IOMAP)
78struct pci_dev;
79static inline void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
80{ }
81#endif
82
83#include <asm-generic/pci_iomap.h>
84
85#endif