H34399 s 00071/00000/00000 d D 1.1 02/03/13 20:31:04 patch 2 1 cC cF1 cK02504 cO-rw-rw-r-- e s 00000/00000/00000 d D 1.0 02/03/13 20:31:04 patch 1 0 c BitKeeper file /home/marcelo/bk/linux-2.4/arch/mips/vr4181/osprey/setup.c cBtorvalds@athlon.transmeta.com|ChangeSet|20020205173056|16047|c1d11a41ed024864 cHplucky.distro.conectiva cK43505 cParch/mips/vr4181/osprey/setup.c cRb3a7516accda101 cV4 cX0x821 cZ-03:00 e u U f e 0 f x 0x821 t T I 2 /* * linux/arch/mips/vr4181/setup.c * * VR41xx setup routines * * Copyright (C) 1999 Bradley D. LaRonde * Copyright (C) 1999, 2000 Michael Klar * * Copyright 2001 MontaVista Software Inc. * Author: jsun@mvista.com or jsun@junsun.net * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * */ #include #include #include #include #include #include #include #include extern void nec_osprey_restart(char* c); extern void nec_osprey_halt(void); extern void nec_osprey_power_off(void); extern void vr4181_init_serial(void); extern void vr4181_init_time(void); void __init nec_osprey_setup(void) { set_io_port_base(VR4181_PORT_BASE); isa_slot_offset = VR4181_ISAMEM_BASE; vr4181_init_serial(); vr4181_init_time(); #ifdef CONFIG_FB conswitchp = &dummy_con; #endif _machine_restart = nec_osprey_restart; _machine_halt = nec_osprey_halt; _machine_power_off = nec_osprey_power_off; /* setup resource limit */ ioport_resource.end = 0xffffffff; iomem_resource.end = 0xffffffff; /* [jsun] hack */ /* printk("[jsun] hack to change external ISA control register, %x -> %x\n", (*VR4181_XISACTL), (*VR4181_XISACTL) | 0x2); *VR4181_XISACTL |= 0x2; */ // *VR4181_GPHIBSTH = 0x2000; // *VR4181_GPMD0REG = 0x00c0; // *VR4181_GPINTEN = 1<<6; /* [jsun] I believe this will get the interrupt type right * for the ether port. */ *VR4181_GPINTTYPL = 0x3000; } E 2 I 1 E 1