Path: blob/master/arch/arm/mach-netx/include/mach/hardware.h
10820 views
/*1* arch/arm/mach-netx/include/mach/hardware.h2*3* Copyright (C) 2005 Sascha Hauer <[email protected]>, Pengutronix4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 27* as published by the Free Software Foundation.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14* You should have received a copy of the GNU General Public License15* along with this program; if not, write to the Free Software16* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA17*/18#ifndef __ASM_ARCH_HARDWARE_H19#define __ASM_ARCH_HARDWARE_H2021#define NETX_IO_PHYS 0x0010000022#define NETX_IO_VIRT 0xe000000023#define NETX_IO_SIZE 0x001000002425#define SRAM_INTERNAL_PHYS_0 0x0000026#define SRAM_INTERNAL_PHYS_1 0x0800027#define SRAM_INTERNAL_PHYS_2 0x1000028#define SRAM_INTERNAL_PHYS_3 0x1800029#define SRAM_INTERNAL_PHYS(no) ((no) * 0x8000)3031#define XPEC_MEM_SIZE 0x400032#define XMAC_MEM_SIZE 0x100033#define SRAM_MEM_SIZE 0x80003435#define io_p2v(x) ((x) - NETX_IO_PHYS + NETX_IO_VIRT)36#define io_v2p(x) ((x) - NETX_IO_VIRT + NETX_IO_PHYS)3738#endif394041