iomap.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) | iomap.c (ce816fa88cca083c47ab9000b2138a83043a78be) |
---|---|
1/* 2 * Implement the default iomap interfaces 3 * 4 * (C) Copyright 2004 Linus Torvalds 5 */ 6#include <linux/pci.h> 7#include <linux/io.h> 8 --- 210 unchanged lines hidden (view full) --- 219void iowrite32_rep(void __iomem *addr, const void *src, unsigned long count) 220{ 221 IO_COND(addr, outsl(port, src,count), mmio_outsl(addr, src, count)); 222} 223EXPORT_SYMBOL(iowrite8_rep); 224EXPORT_SYMBOL(iowrite16_rep); 225EXPORT_SYMBOL(iowrite32_rep); 226 | 1/* 2 * Implement the default iomap interfaces 3 * 4 * (C) Copyright 2004 Linus Torvalds 5 */ 6#include <linux/pci.h> 7#include <linux/io.h> 8 --- 210 unchanged lines hidden (view full) --- 219void iowrite32_rep(void __iomem *addr, const void *src, unsigned long count) 220{ 221 IO_COND(addr, outsl(port, src,count), mmio_outsl(addr, src, count)); 222} 223EXPORT_SYMBOL(iowrite8_rep); 224EXPORT_SYMBOL(iowrite16_rep); 225EXPORT_SYMBOL(iowrite32_rep); 226 |
227#ifdef CONFIG_HAS_IOPORT | 227#ifdef CONFIG_HAS_IOPORT_MAP |
228/* Create a virtual mapping cookie for an IO port range */ 229void __iomem *ioport_map(unsigned long port, unsigned int nr) 230{ 231 if (port > PIO_MASK) 232 return NULL; 233 return (void __iomem *) (unsigned long) (port + PIO_OFFSET); 234} 235 236void ioport_unmap(void __iomem *addr) 237{ 238 /* Nothing to do */ 239} 240EXPORT_SYMBOL(ioport_map); 241EXPORT_SYMBOL(ioport_unmap); | 228/* Create a virtual mapping cookie for an IO port range */ 229void __iomem *ioport_map(unsigned long port, unsigned int nr) 230{ 231 if (port > PIO_MASK) 232 return NULL; 233 return (void __iomem *) (unsigned long) (port + PIO_OFFSET); 234} 235 236void ioport_unmap(void __iomem *addr) 237{ 238 /* Nothing to do */ 239} 240EXPORT_SYMBOL(ioport_map); 241EXPORT_SYMBOL(ioport_unmap); |
242#endif /* CONFIG_HAS_IOPORT */ | 242#endif /* CONFIG_HAS_IOPORT_MAP */ |
243 244#ifdef CONFIG_PCI 245/* Hide the details if this is a MMIO or PIO address space and just do what 246 * you expect in the correct way. */ 247void pci_iounmap(struct pci_dev *dev, void __iomem * addr) 248{ 249 IO_COND(addr, /* nothing */, iounmap(addr)); 250} 251EXPORT_SYMBOL(pci_iounmap); 252#endif /* CONFIG_PCI */ | 243 244#ifdef CONFIG_PCI 245/* Hide the details if this is a MMIO or PIO address space and just do what 246 * you expect in the correct way. */ 247void pci_iounmap(struct pci_dev *dev, void __iomem * addr) 248{ 249 IO_COND(addr, /* nothing */, iounmap(addr)); 250} 251EXPORT_SYMBOL(pci_iounmap); 252#endif /* CONFIG_PCI */ |