mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 01:20:55 +07:00
6df26700c0
Implement a custom ioremap implementation for iop3xx. This saves establishing new mappings. It also cleans up the PCI IO resource to be a physical address rather than a virtual address as Russell pointed out on the original iop13xx port. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
29 lines
802 B
C
29 lines
802 B
C
/*
|
|
* include/asm-arm/arch-iop33x/io.h
|
|
*
|
|
* Copyright (C) 2001 MontaVista Software, Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __IO_H
|
|
#define __IO_H
|
|
|
|
#include <asm/hardware.h>
|
|
|
|
extern void __iomem * __ioremap(unsigned long, size_t, unsigned long);
|
|
extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size,
|
|
unsigned long flags);
|
|
extern void __iop3xx_iounmap(void __iomem *addr);
|
|
|
|
#define IO_SPACE_LIMIT 0xffffffff
|
|
#define __io(p) ((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p))
|
|
#define __mem_pci(a) (a)
|
|
|
|
#define __arch_ioremap(a, s, f) __iop3xx_ioremap(a, s, f)
|
|
#define __arch_iounmap(a) __iop3xx_iounmap(a)
|
|
|
|
#endif
|