arch.c

来自「是关于linux2.5.1的完全源码」· C语言 代码 · 共 62 行

C
62
字号
/* * linux/arch/arm/mach-iop310/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/types.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);static void __initfixup_iq80310(struct machine_desc *desc, struct param_struct *params,	      char **cmdline, struct meminfo *mi){	system_rev = (*(volatile unsigned int*)0xfe830000) & 0x0f;	if(system_rev)		system_rev = 0xF;	mi->bank[0].start = PHYS_OFFSET;	mi->bank[0].size  = (32*1024*1024);	mi->bank[0].node  = 0;	mi->nr_banks      = 1;#ifdef CONFIG_ROOT_NFS	ROOT_DEV = to_kdev_t(0x00FF);   /* /dev/nfs pseudo device */#elif defined(CONFIG_BLK_DEV_INITRD)	setup_ramdisk( 1, 0, 0, CONFIG_BLK_DEV_RAM_SIZE );	setup_initrd( 0xc0800000, 4*1024*1024 );	ROOT_DEV = mk_kdev(RAMDISK_MAJOR, 0); /* /dev/ram */#endif}MACHINE_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#else#error No machine descriptor defined for this IOP310 implementation#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?