/* * linux/include/asm-arm/hardware/SA-1111.h * * Copyright (C) 2000 John G Dorsey * * This file contains definitions for the SA-1111 Companion Chip. * (Structure and naming borrowed from SA-1101.h, by Peter Danielsson.) * * Macro that calculates real address for registers in the SA-1111 */ #ifndef _ASM_ARCH_SA1111 #define _ASM_ARCH_SA1111 #include /* * The SA1111 is always located at virtual 0xf4000000, and is always * "native" endian. */ #define SA1111_VBASE 0xf4000000 /* Don't use these! */ #define SA1111_p2v( x ) ((x) - SA1111_BASE + SA1111_VBASE) #define SA1111_v2p( x ) ((x) - SA1111_VBASE + SA1111_BASE) #ifndef __ASSEMBLY__ extern struct resource sa1111_resource; #define _SA1111(x) ((x) + sa1111_resource.start) #endif /* * 26 bits of the SA-1110 address bus are available to the SA-1111. * Use these when feeding target addresses to the DMA engines. */ #define SA1111_ADDR_WIDTH (26) #define SA1111_ADDR_MASK ((1<