1 /* 2 * FILE NAME 3 * include/asm-mips/vr41xx/mpc30x.h 4 * 5 * BRIEF MODULE DESCRIPTION 6 * Include file for Victor MP-C303/304. 7 * 8 * Copyright 2002,2003 Yoichi Yuasa 9 * yuasa@hh.iij4u.or.jp 10 * 11 * This program is free software; you can redistribute it and/or modify it 12 * under the terms of the GNU General Public License as published by the 13 * Free Software Foundation; either version 2 of the License, or (at your 14 * option) any later version. 15 */ 16 #ifndef __VICTOR_MPC30X_H 17 #define __VICTOR_MPC30X_H 18 19 #include <linux/config.h> 20 21 #include <asm/addrspace.h> 22 #include <asm/vr41xx/vr41xx.h> 23 24 /* 25 * Board specific address mapping 26 */ 27 #define VR41XX_PCI_MEM1_BASE 0x10000000 28 #define VR41XX_PCI_MEM1_SIZE 0x04000000 29 #define VR41XX_PCI_MEM1_MASK 0x7c000000 30 31 #define VR41XX_PCI_MEM2_BASE 0x14000000 32 #define VR41XX_PCI_MEM2_SIZE 0x02000000 33 #define VR41XX_PCI_MEM2_MASK 0x7e000000 34 35 #define VR41XX_PCI_IO_BASE 0x16000000 36 #define VR41XX_PCI_IO_SIZE 0x02000000 37 #define VR41XX_PCI_IO_MASK 0x7e000000 38 39 #define VR41XX_PCI_IO_START 0x01000000 40 #define VR41XX_PCI_IO_END 0x01ffffff 41 42 #define VR41XX_PCI_MEM_START 0x12000000 43 #define VR41XX_PCI_MEM_END 0x15ffffff 44 45 #define IO_PORT_BASE KSEG1ADDR(VR41XX_PCI_IO_BASE) 46 #define IO_PORT_RESOURCE_START 0 47 #define IO_PORT_RESOURCE_END VR41XX_PCI_IO_SIZE 48 #define IO_MEM1_RESOURCE_START VR41XX_PCI_MEM1_BASE 49 #define IO_MEM1_RESOURCE_END (VR41XX_PCI_MEM1_BASE + VR41XX_PCI_MEM1_SIZE) 50 #define IO_MEM2_RESOURCE_START VR41XX_PCI_MEM2_BASE 51 #define IO_MEM2_RESOURCE_END (VR41XX_PCI_MEM2_BASE + VR41XX_PCI_MEM2_SIZE) 52 53 /* 54 * General-Purpose I/O Pin Number 55 */ 56 #define VRC4173_PIN 1 57 #define MQ200_PIN 4 58 59 /* 60 * Interrupt Number 61 */ 62 #define VRC4173_CASCADE_IRQ GIU_IRQ(VRC4173_PIN) 63 #define MQ200_IRQ GIU_IRQ(MQ200_PIN) 64 65 #endif /* __VICTOR_MPC30X_H */ 66