io.h 729 字节
Newer Older
L
Linus Torvalds 已提交
1
/*
2
 * include/asm-arm/arch-iop32x/io.h
L
Linus Torvalds 已提交
3
 *
4
 * Copyright (C) 2001 MontaVista Software, Inc.
L
Linus Torvalds 已提交
5 6 7 8 9 10
 *
 * 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.
 */

11 12
#ifndef __IO_H
#define __IO_H
L
Linus Torvalds 已提交
13

14 15
#include <asm/hardware.h>

16
extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size,
R
Russell King 已提交
17
	unsigned int mtype);
18
extern void __iop3xx_iounmap(void __iomem *addr);
L
Linus Torvalds 已提交
19

20 21
#define IO_SPACE_LIMIT		0xffffffff
#define __io(p)		((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p))
L
Linus Torvalds 已提交
22 23
#define __mem_pci(a)		(a)

24 25
#define __arch_ioremap(a, s, f) __iop3xx_ioremap(a, s, f)
#define __arch_iounmap(a)	 __iop3xx_iounmap(a)
26

L
Linus Torvalds 已提交
27
#endif