diff options
Diffstat (limited to 'arch/m68k/include/asm/io_mm.h')
-rw-r--r-- | arch/m68k/include/asm/io_mm.h | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h index fa4324bcf566..a6686d26fe17 100644 --- a/arch/m68k/include/asm/io_mm.h +++ b/arch/m68k/include/asm/io_mm.h | |||
@@ -65,7 +65,53 @@ | |||
65 | 65 | ||
66 | 66 | ||
67 | 67 | ||
68 | #ifdef CONFIG_ISA | 68 | #if defined(CONFIG_PCI) && defined(CONFIG_COLDFIRE) |
69 | |||
70 | #define HAVE_ARCH_PIO_SIZE | ||
71 | #define PIO_OFFSET 0 | ||
72 | #define PIO_MASK 0xffff | ||
73 | #define PIO_RESERVED 0x10000 | ||
74 | |||
75 | u8 mcf_pci_inb(u32 addr); | ||
76 | u16 mcf_pci_inw(u32 addr); | ||
77 | u32 mcf_pci_inl(u32 addr); | ||
78 | void mcf_pci_insb(u32 addr, u8 *buf, u32 len); | ||
79 | void mcf_pci_insw(u32 addr, u16 *buf, u32 len); | ||
80 | void mcf_pci_insl(u32 addr, u32 *buf, u32 len); | ||
81 | |||
82 | void mcf_pci_outb(u8 v, u32 addr); | ||
83 | void mcf_pci_outw(u16 v, u32 addr); | ||
84 | void mcf_pci_outl(u32 v, u32 addr); | ||
85 | void mcf_pci_outsb(u32 addr, const u8 *buf, u32 len); | ||
86 | void mcf_pci_outsw(u32 addr, const u16 *buf, u32 len); | ||
87 | void mcf_pci_outsl(u32 addr, const u32 *buf, u32 len); | ||
88 | |||
89 | #define inb mcf_pci_inb | ||
90 | #define inb_p mcf_pci_inb | ||
91 | #define inw mcf_pci_inw | ||
92 | #define inw_p mcf_pci_inw | ||
93 | #define inl mcf_pci_inl | ||
94 | #define inl_p mcf_pci_inl | ||
95 | #define insb mcf_pci_insb | ||
96 | #define insw mcf_pci_insw | ||
97 | #define insl mcf_pci_insl | ||
98 | |||
99 | #define outb mcf_pci_outb | ||
100 | #define outb_p mcf_pci_outb | ||
101 | #define outw mcf_pci_outw | ||
102 | #define outw_p mcf_pci_outw | ||
103 | #define outl mcf_pci_outl | ||
104 | #define outl_p mcf_pci_outl | ||
105 | #define outsb mcf_pci_outsb | ||
106 | #define outsw mcf_pci_outsw | ||
107 | #define outsl mcf_pci_outsl | ||
108 | |||
109 | #define readb(addr) in_8(addr) | ||
110 | #define writeb(v, addr) out_8((addr), (v)) | ||
111 | #define readw(addr) in_le16(addr) | ||
112 | #define writew(v, addr) out_le16((addr), (v)) | ||
113 | |||
114 | #elif defined(CONFIG_ISA) | ||
69 | 115 | ||
70 | #if MULTI_ISA == 0 | 116 | #if MULTI_ISA == 0 |
71 | #undef MULTI_ISA | 117 | #undef MULTI_ISA |
@@ -340,4 +386,6 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int | |||
340 | */ | 386 | */ |
341 | #define xlate_dev_kmem_ptr(p) p | 387 | #define xlate_dev_kmem_ptr(p) p |
342 | 388 | ||
389 | #define ioport_map(port, nr) ((void __iomem *)(port)) | ||
390 | |||
343 | #endif /* _IO_H */ | 391 | #endif /* _IO_H */ |