Path: blob/master/arch/arm/mach-rpc/include/mach/hardware.h
15162 views
/*1* arch/arm/mach-rpc/include/mach/hardware.h2*3* Copyright (C) 1996-1999 Russell King.4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*9* This file contains the hardware definitions of the RiscPC series machines.10*/11#ifndef __ASM_ARCH_HARDWARE_H12#define __ASM_ARCH_HARDWARE_H1314#include <mach/memory.h>1516#ifndef __ASSEMBLY__17#define IOMEM(x) ((void __iomem *)(unsigned long)(x))18#else19#define IOMEM(x) x20#endif /* __ASSEMBLY__ */2122/*23* What hardware must be present24*/25#define HAS_IOMD26#define HAS_VIDC202728/* Hardware addresses of major areas.29* *_START is the physical address30* *_SIZE is the size of the region31* *_BASE is the virtual address32*/33#define RAM_SIZE 0x1000000034#define RAM_START 0x100000003536#define EASI_SIZE 0x08000000 /* EASI I/O */37#define EASI_START 0x0800000038#define EASI_BASE 0xe50000003940#define IO_START 0x03000000 /* I/O */41#define IO_SIZE 0x0100000042#define IO_BASE IOMEM(0xe0000000)4344#define SCREEN_START 0x02000000 /* VRAM */45#define SCREEN_END 0xdfc0000046#define SCREEN_BASE 0xdf8000004748#define UNCACHEABLE_ADDR 0xdf0100004950/*51* IO Addresses52*/53#define VIDC_BASE IOMEM(0xe0400000)54#define EXPMASK_BASE 0xe036000055#define IOMD_BASE IOMEM(0xe0200000)56#define IOC_BASE IOMEM(0xe0200000)57#define PCIO_BASE IOMEM(0xe0010000)58#define FLOPPYDMA_BASE IOMEM(0xe002a000)5960#define vidc_writel(val) __raw_writel(val, VIDC_BASE)6162#define IO_EC_EASI_BASE 0x8140000063#define IO_EC_IOC4_BASE 0x8009c00064#define IO_EC_IOC_BASE 0x8009000065#define IO_EC_MEMC8_BASE 0x8000ac0066#define IO_EC_MEMC_BASE 0x800000006768#define NETSLOT_BASE 0x0302b00069#define NETSLOT_SIZE 0x000010007071#define PODSLOT_IOC0_BASE 0x0324000072#define PODSLOT_IOC4_BASE 0x0327000073#define PODSLOT_IOC_SIZE (1 << 14)74#define PODSLOT_MEMC_BASE 0x0300000075#define PODSLOT_MEMC_SIZE (1 << 14)76#define PODSLOT_EASI_BASE 0x0800000077#define PODSLOT_EASI_SIZE (1 << 24)7879#define EXPMASK_STATUS (EXPMASK_BASE + 0x00)80#define EXPMASK_ENABLE (EXPMASK_BASE + 0x04)8182#endif838485