diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2011-04-12 20:55:03 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2011-04-12 20:55:03 (GMT) |
commit | 81dab211200deb1f6b665810ab0e430181cf7bfd (patch) | |
tree | 1bc72e789dda7952551b58c5b4684456b692b602 /uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/io.h | |
parent | 53d491d04770dac7e402b20340561ccb399981c9 (diff) | |
download | openipcam-81dab211200deb1f6b665810ab0e430181cf7bfd.zip openipcam-81dab211200deb1f6b665810ab0e430181cf7bfd.tar.gz openipcam-81dab211200deb1f6b665810ab0e430181cf7bfd.tar.bz2 |
Architecture specific stuff, basically, without drivers.
Diffstat (limited to 'uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/io.h')
-rw-r--r-- | uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/io.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/io.h b/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/io.h new file mode 100644 index 0000000..4ccd6e4 --- /dev/null +++ b/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/io.h @@ -0,0 +1,39 @@ +/* + * linux/include/asm-armnommu/arch-W90N745/io.h + * + * Copyright (C) 1997-1999 Russell King + * + * Modifications: + * 06-12-1997 RMK Created. + * 07-04-1999 RMK Major cleanup + * 02-19-2001 gjm Leveraged for armnommu/dsc21 + */ +#ifndef __ASM_ARM_ARCH_IO_H +#define __ASM_ARM_ARCH_IO_H + +/* + * kernel/resource.c uses this to initialize the global ioport_resource struct + * which is used in all calls to request_resource(), allocate_resource(), etc. + * --gmcnutt + */ +#define IO_SPACE_LIMIT 0xffffffff + +/* + * If we define __io then asm/io.h will take care of most of the inb & friends + * macros. It still leaves us some 16bit macros to deal with ourselves, though. + * We don't have PCI or ISA on the dsc21 so I dropped __mem_pci & __mem_isa. + * --gmcnutt + */ +#define PCIO_BASE 0 +#define __io(a) (PCIO_BASE + (a)) +#define __arch_getw(a) (*(volatile unsigned short *)(a)) +#define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v)) + +/* + * Defining these two gives us ioremap for free. See asm/io.h. + * --gmcnutt + */ +#define iomem_valid_addr(iomem,sz) (1) +#define iomem_to_phys(iomem) (iomem) + +#endif |