···11/*22 * setup.c, Setup for the IBM WorkPad z50.33 *44- * Copyright (C) 2002-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>44+ * Copyright (C) 2002-2006 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>55 *66 * This program is free software; you can redistribute it and/or modify77 * it under the terms of the GNU General Public License as published by···2121#include <linux/ioport.h>22222323#include <asm/io.h>2424-#include <asm/vr41xx/workpad.h>2424+2525+#define WORKPAD_ISA_IO_BASE 0x150000002626+#define WORKPAD_ISA_IO_SIZE 0x030000002727+#define WORKPAD_ISA_IO_START 02828+#define WORKPAD_ISA_IO_END (WORKPAD_ISA_IO_SIZE - 1)2929+#define WORKPAD_IO_PORT_BASE KSEG1ADDR(WORKPAD_ISA_IO_BASE)25302631static int __init ibm_workpad_setup(void)2732{2828- set_io_port_base(IO_PORT_BASE);2929- ioport_resource.start = IO_PORT_RESOURCE_START;3030- ioport_resource.end = IO_PORT_RESOURCE_END;3333+ set_io_port_base(WORKPAD_IO_PORT_BASE);3434+ ioport_resource.start = WORKPAD_ISA_IO_START;3535+ ioport_resource.end = WORKPAD_ISA_IO_END;31363237 return 0;3338}
-43
include/asm-mips/vr41xx/workpad.h
···11-/*22- * workpad.h, Include file for IBM WorkPad z50.33- *44- * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>55- *66- * This program is free software; you can redistribute it and/or modify77- * it under the terms of the GNU General Public License as published by88- * the Free Software Foundation; either version 2 of the License, or99- * (at your option) any later version.1010- *1111- * This program is distributed in the hope that it will be useful,1212- * but WITHOUT ANY WARRANTY; without even the implied warranty of1313- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1414- * GNU General Public License for more details.1515- *1616- * You should have received a copy of the GNU General Public License1717- * along with this program; if not, write to the Free Software1818- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA1919- */2020-#ifndef __IBM_WORKPAD_H2121-#define __IBM_WORKPAD_H2222-2323-#include <asm/addrspace.h>2424-#include <asm/vr41xx/vr41xx.h>2525-2626-/*2727- * Board specific address mapping2828- */2929-#define VR41XX_ISA_MEM_BASE 0x100000003030-#define VR41XX_ISA_MEM_SIZE 0x040000003131-3232-/* VR41XX_ISA_IO_BASE includes offset from real base. */3333-#define VR41XX_ISA_IO_BASE 0x150000003434-#define VR41XX_ISA_IO_SIZE 0x030000003535-3636-#define ISA_BUS_IO_BASE 03737-#define ISA_BUS_IO_SIZE VR41XX_ISA_IO_SIZE3838-3939-#define IO_PORT_BASE KSEG1ADDR(VR41XX_ISA_IO_BASE)4040-#define IO_PORT_RESOURCE_START ISA_BUS_IO_BASE4141-#define IO_PORT_RESOURCE_END (ISA_BUS_IO_BASE + ISA_BUS_IO_SIZE - 1)4242-4343-#endif /* __IBM_WORKPAD_H */