arch.c
来自「优龙2410linux2.6.8内核源代码」· C语言 代码 · 共 77 行
C
77 行
/* * linux/arch/arm/mach-iop3xx/arch.c * * Author: Nicolas Pitre <nico@cam.org> * Copyright (C) 2001 MontaVista Software, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */#include <linux/config.h>#include <linux/init.h>#include <linux/major.h>#include <linux/fs.h>#include <asm/setup.h>#include <asm/system.h>#include <asm/memory.h>#include <asm/hardware.h>#include <asm/mach-types.h>#include <asm/mach/arch.h>#ifdef CONFIG_ARCH_IQ80310extern void iq80310_map_io(void);extern void iq80310_init_irq(void);#endif#ifdef CONFIG_ARCH_IQ80321extern void iq80321_map_io(void);extern void iop321_init_irq(void);extern void iop321_init_time(void);#endif#ifdef CONFIG_ARCH_IQ80310static void __initfixup_iq80310(struct machine_desc *desc, struct tag *tags, char **cmdline, struct meminfo *mi){ system_rev = (*(volatile unsigned int*)0xfe830000) & 0x0f; if (system_rev) system_rev = 0xF;}#endif#ifdef CONFIG_ARCH_IQ80321static void __initfixup_iop321(struct machine_desc *desc, struct param_struct *params, char **cmdline, struct meminfo *mi){}#endif#ifdef CONFIG_ARCH_IQ80310MACHINE_START(IQ80310, "Cyclone IQ80310") MAINTAINER("MontaVista Software Inc.") BOOT_MEM(0xa0000000, 0xfe000000, 0xfe000000) FIXUP(fixup_iq80310) MAPIO(iq80310_map_io) INITIRQ(iq80310_init_irq)MACHINE_END#elif defined(CONFIG_ARCH_IQ80321)MACHINE_START(IQ80321, "Intel IQ80321") MAINTAINER("MontaVista Software, Inc.") BOOT_MEM(PHYS_OFFSET, IQ80321_UART1, 0xfe800000) FIXUP(fixup_iop321) MAPIO(iq80321_map_io) INITIRQ(iop321_init_irq) INITTIME(iop321_init_time)MACHINE_END#else#error No machine descriptor defined for this IOP310 implementation#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?