Release 4.14 arch/s390/include/asm/io.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
* S390 version
* Copyright IBM Corp. 1999
* Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
*
* Derived from "include/asm-i386/io.h"
*/
#ifndef _S390_IO_H
#define _S390_IO_H
#include <linux/kernel.h>
#include <asm/page.h>
#include <asm/pci_io.h>
#define xlate_dev_mem_ptr xlate_dev_mem_ptr
void *xlate_dev_mem_ptr(phys_addr_t phys);
#define unxlate_dev_mem_ptr unxlate_dev_mem_ptr
void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr);
/*
* Convert a virtual cached pointer to an uncached pointer
*/
#define xlate_dev_kmem_ptr(p) p
#define IO_SPACE_LIMIT 0
#define ioremap_nocache(addr, size) ioremap(addr, size)
#define ioremap_wc ioremap_nocache
#define ioremap_wt ioremap_nocache
static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
{
return (void __iomem *) offset;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jan Glauber | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
static inline void iounmap(volatile void __iomem *addr)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jan Glauber | 12 | 100.00% | 1 | 100.00% |
Total | 12 | 100.00% | 1 | 100.00% |
static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
{
return NULL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Frank Blaschka | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
static inline void ioport_unmap(void __iomem *p)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Frank Blaschka | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
#ifdef CONFIG_PCI
/*
* s390 needs a private implementation of pci_iomap since ioremap with its
* offset parameter isn't sufficient. That's because BAR spaces are not
* disjunctive on s390 so we need the bar parameter of pci_iomap to find
* the corresponding device and create the mapping cookie.
*/
#define pci_iomap pci_iomap
#define pci_iounmap pci_iounmap
#define pci_iomap_wc pci_iomap
#define pci_iomap_wc_range pci_iomap_range
#define memcpy_fromio(dst, src, count) zpci_memcpy_fromio(dst, src, count)
#define memcpy_toio(dst, src, count) zpci_memcpy_toio(dst, src, count)
#define memset_io(dst, val, count) zpci_memset_io(dst, val, count)
#define __raw_readb zpci_read_u8
#define __raw_readw zpci_read_u16
#define __raw_readl zpci_read_u32
#define __raw_readq zpci_read_u64
#define __raw_writeb zpci_write_u8
#define __raw_writew zpci_write_u16
#define __raw_writel zpci_write_u32
#define __raw_writeq zpci_write_u64
#endif /* CONFIG_PCI */
#include <asm-generic/io.h>
#endif
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jan Glauber | 140 | 59.83% | 1 | 8.33% |
Frank Blaschka | 31 | 13.25% | 1 | 8.33% |
Michael Holzheu | 16 | 6.84% | 2 | 16.67% |
Jes Sorensen | 11 | 4.70% | 1 | 8.33% |
Linus Torvalds (pre-git) | 11 | 4.70% | 1 | 8.33% |
Luis R. Rodriguez | 8 | 3.42% | 1 | 8.33% |
Thierry Reding | 8 | 3.42% | 1 | 8.33% |
Toshi Kani | 4 | 1.71% | 1 | 8.33% |
Logan Gunthorpe | 3 | 1.28% | 1 | 8.33% |
Heiko Carstens | 1 | 0.43% | 1 | 8.33% |
Greg Kroah-Hartman | 1 | 0.43% | 1 | 8.33% |
Total | 234 | 100.00% | 12 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.