io.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
- /*
- * linux/include/asm-arm/arch-sa1100/io.h
- *
- * Copyright (C) 1997-1999 Russell King
- *
- * Modifications:
- * 06-12-1997 RMK Created.
- * 07-04-1999 RMK Major cleanup
- */
- #ifndef __ASM_ARM_ARCH_IO_H
- #define __ASM_ARM_ARCH_IO_H
- #define IO_SPACE_LIMIT 0xffffffff
- /*
- * We don't actually have real ISA nor PCI buses, but there is so many
- * drivers out there that might just work if we fake them...
- */
- #define __io(a) (PCIO_BASE + (a))
- #define __mem_pci(a) ((unsigned long)(a))
- #define __mem_isa(a) ((unsigned long)(a))
- /*
- * Generic virtual read/write
- */
- #define __arch_getw(a) (*(volatile unsigned short *)(a))
- #define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v))
- #define iomem_valid_addr(iomem,sz) (1)
- #define iomem_to_phys(iomem) (iomem)
- #endif