From: Paul M. <le...@us...> - 2002-03-09 01:23:38
|
Update of /cvsroot/linux-mips/linux/arch/mips/vr41xx/vr4131/casio-be300 In directory usw-pr-cvs1:/tmp/cvs-serv30761/vr41xx/vr4131/casio-be300 Added Files: Makefile pci_fixup.c prom.c setup.c Log Message: Move BE-300 code around. --- NEW FILE: Makefile --- # # Makefile for the Casio Cassiopeia BE-300 specific parts of the kernel # # Note! Dependencies are done automagically by 'make dep', which also # removes any old dependencies. DON'T put your own dependencies here # unless it's something special (ie not a .c file). # .S.s: $(CPP) $(AFLAGS) $< -o $@ .S.o: $(CC) $(AFLAGS) -c $< -o $@ O_TARGET := casio-be300.o obj-y := prom.o setup.o obj-$(CONFIG_PCI) += pci_fixup.o include $(TOPDIR)/Rules.make --- NEW FILE: pci_fixup.c --- /* * arch/mips/vr4131/casio-be300/pci_fixup.c * * PCI fixup routines for the Casio Cassiopeia BE-300 * * Copyright (C) 2002 Paul Mundt <le...@ch...> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. */ #include <linux/init.h> #include <linux/mm.h> #include <linux/kernel.h> #include <linux/pci.h> #include <asm/vrc4173.h> #include <asm/vr41xx.h> #include <asm/pci_channel.h> struct pci_channel mips_pci_channels[] = { { 0, } }; void __init pcibios_fixup_resources(struct pci_dev *pdev) { } void __init pcibios_fixup(void) { } void __init pcibios_fixup_irqs(void) { } unsigned int pcibios_assign_all_busses(void) { return 0; } --- NEW FILE: prom.c --- /* * arch/mips/vr4131/casio-be300/prom.c * * PROM library initialization routines for the Casio Cassiopeia BE-300 * * Copyright (C) 2002 Paul Mundt <le...@ch...> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. */ #include <linux/init.h> #include <linux/mm.h> #include <linux/kernel.h> #include <linux/string.h> #include <asm/bootinfo.h> #include <asm/addrspace.h> #include <asm/vr41xx.h> char arcs_cmdline[CL_SIZE]; const char *get_system_type(void) { return "NEC_Vr41xx Casio Cassiopeia BE-300"; } void __init prom_init(int argc, char **argv, char **envp) { int i; for (i = 1; i < argc; i++) { strcat(arcs_cmdline, argv[i]); if (i < (argc - 1)) strcat(arcs_cmdline, " "); } mips_machgroup = MACH_GROUP_NEC_VR41XX; mips_machtype = MACH_CASIO_BE300; add_memory_region(0, PAGE_ALIGN((16 << 20) - PAGE_SIZE), BOOT_MEM_RAM); } void __init prom_free_prom_memory(void) { } --- NEW FILE: setup.c --- /* * arch/mips/vr4131/casio-be300/setup.c * * Setup routines for the Casio Cassiopeia BE-300 * * Copyright (C) 2002 Paul Mundt <le...@ch...> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. */ #include <linux/init.h> #include <linux/config.h> #include <linux/kernel.h> #include <linux/console.h> #include <asm/vr41xx.h> #include <asm/reboot.h> #include <asm/time.h> extern void vr4122_restart(char *command); extern void vr4122_halt(void); extern void vr4122_power_off(void); extern void vr4122_time_init(void); extern void vr4122_timer_setup(struct irqaction *irq); void __init bus_error_init(void) { } void __init casio_be300_setup(void) { _machine_restart = vr4122_restart; _machine_halt = vr4122_halt; _machine_power_off = vr4122_power_off; board_time_init = vr4122_time_init; board_timer_setup = vr4122_timer_setup; #ifdef CONFIG_FB conswitchp = &dummy_con; #endif } |