亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? setup.c

?? 根據(jù)添加了fs2410平臺的arch目錄
?? C
字號:
/* * setup.c * * BRIEF MODULE DESCRIPTION * Galileo Evaluation Boards - board dependent boot routines * * Copyright (C) 1996, 1997, 2001  Ralf Baechle * Copyright (C) 2000 RidgeRun, Inc. * Copyright (C) 2001 Red Hat, Inc. * * Author: RidgeRun, Inc. *   glonnon@ridgerun.com, skranz@ridgerun.com, stevej@ridgerun.com * * Copyright 2001 MontaVista Software Inc. * Author: jsun@mvista.com or jsun@junsun.net * *  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. * *  THIS  SOFTWARE  IS PROVIDED   ``AS  IS'' AND   ANY  EXPRESS OR IMPLIED *  WARRANTIES,   INCLUDING, BUT NOT  LIMITED  TO, THE IMPLIED WARRANTIES OF *  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN *  NO  EVENT  SHALL   THE AUTHOR  BE    LIABLE FOR ANY   DIRECT, INDIRECT, *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT *  NOT LIMITED   TO, PROCUREMENT OF  SUBSTITUTE GOODS  OR SERVICES; LOSS OF *  USE, DATA,  OR PROFITS; OR  BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON *  ANY THEORY OF LIABILITY, WHETHER IN  CONTRACT, STRICT LIABILITY, OR TORT *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF *  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *  You should have received a copy of the  GNU General Public License along *  with this program; if not, write  to the Free Software Foundation, Inc., *  675 Mass Ave, Cambridge, MA 02139, USA. * */#include <linux/init.h>#include <linux/kernel.h>#include <linux/types.h>#include <linux/mc146818rtc.h>#include <linux/mm.h>#include <linux/swap.h>#include <linux/ioport.h>#include <linux/sched.h>#include <linux/interrupt.h>#include <linux/pci.h>#include <linux/timex.h>#include <linux/vmalloc.h>#include <asm/time.h>#include <asm/bootinfo.h>#include <asm/page.h>#include <asm/bootinfo.h>#include <asm/io.h>#include <asm/irq.h>#include <asm/pci.h>#include <asm/processor.h>#include <asm/ptrace.h>#include <asm/reboot.h>#include <asm/mc146818rtc.h>#include <linux/version.h>#include <linux/bootmem.h>#include <linux/blk.h>#include <asm/gt64120/gt64120.h>#include "ocelot_pld.h"extern struct rtc_ops no_rtc_ops;unsigned long gt64120_base = KSEG1ADDR(GT_DEF_BASE);/* These functions are used for rebooting or halting the machine*/extern void momenco_ocelot_restart(char *command);extern void momenco_ocelot_halt(void);extern void momenco_ocelot_power_off(void);extern void gt64120_time_init(void);extern void momenco_ocelot_irq_setup(void);static char reset_reason;#define ENTRYLO(x) ((pte_val(mk_pte_phys((x), PAGE_KERNEL_UNCACHED)) >> 6)|1)static void __init setup_l3cache(unsigned long size);void __init momenco_ocelot_setup(void){	void (*l3func)(unsigned long)=KSEG1ADDR(&setup_l3cache);	unsigned int tmpword;	board_time_init = gt64120_time_init;	_machine_restart = momenco_ocelot_restart;	_machine_halt = momenco_ocelot_halt;	_machine_power_off = momenco_ocelot_power_off;	/*	 * initrd_start = (ulong)ocelot_initrd_start;	 * initrd_end = (ulong)ocelot_initrd_start + (ulong)ocelot_initrd_size;	 * initrd_below_start_ok = 1;	 */	rtc_ops = &no_rtc_ops;	/* A wired TLB entry for the GT64120A and the serial port. The	   GT64120A is going to be hit on every IRQ anyway - there's	   absolutely no point in letting it be a random TLB entry, as	   it'll just cause needless churning of the TLB. And we use	   the other half for the serial port, which is just a PITA	   otherwise :)		Device			Physical	Virtual		GT64120 Internal Regs	0x24000000	0xe0000000		UARTs (CS2)		0x2d000000	0xe0001000	*/	add_wired_entry(ENTRYLO(0x24000000), ENTRYLO(0x2D000000), 0xe0000000, PM_4K);	/* Also a temporary entry to let us talk to the Ocelot PLD and NVRAM	   in the CS[012] region. We can't use ioremap() yet. The NVRAM	   appears to be one of the variants of ST M48T35 - see 	   http://www.st.com/stonline/bin/sftab.exe?table=172&filter0=M48T35		Ocelot PLD (CS0)	0x2c000000	0xe0020000		NVRAM			0x2c800000	0xe0030000	*/			add_temporary_entry(ENTRYLO(0x2C000000), ENTRYLO(0x2d000000), 0xe0020000, PM_64K);	/* Relocate the CS3/BootCS region */  	GT_WRITE( GT_CS3BOOTLD_OFS, 0x2f000000 >> 21);	/* Relocate CS[012] */ 	GT_WRITE(GT_CS20LD_OFS, 0x2c000000 >> 21);	/* Relocate the GT64120A itself... */	GT_WRITE(GT_ISD_OFS, 0x24000000 >> 21);	mb();	gt64120_base = 0xe0000000;	/* ...and the PCI0 view of it. */	GT_WRITE(GT_PCI0_CFGADDR_OFS, 0x80000020);	GT_WRITE(GT_PCI0_CFGDATA_OFS, 0x24000000);	GT_WRITE(GT_PCI0_CFGADDR_OFS, 0x80000024);	GT_WRITE(GT_PCI0_CFGDATA_OFS, 0x24000001);	/* Relocate PCI0 I/O and Mem0 */	GT_WRITE(GT_PCI0IOLD_OFS, 0x20000000 >> 21);	GT_WRITE(GT_PCI0M0LD_OFS, 0x22000000 >> 21);	/* Relocate PCI0 Mem1 */	GT_WRITE(GT_PCI0M1LD_OFS, 0x36000000 >> 21);	/* Relocate all the PCI1 stuff, not that we use it */	GT_WRITE(GT_PCI1IOLD_OFS, 0x30000000 >> 21);	GT_WRITE(GT_PCI1M0LD_OFS, 0x32000000 >> 21);	GT_WRITE(GT_PCI1M1LD_OFS, 0x34000000 >> 21);	/* Relocate the CPU's view of the RAM... */	GT_WRITE(GT_SCS10LD_OFS, 0);	GT_WRITE(GT_SCS10HD_OFS, 0x0fe00000 >> 21);	GT_WRITE(GT_SCS32LD_OFS, 0x10000000 >> 21);	GT_WRITE(GT_SCS32HD_OFS, 0x0fe00000 >> 21);	GT_WRITE(GT_SCS1LD_OFS, 0xff);	GT_WRITE(GT_SCS1HD_OFS, 0x00);	GT_WRITE(GT_SCS0LD_OFS, 0);	GT_WRITE(GT_SCS0HD_OFS, 0xff);	GT_WRITE(GT_SCS3LD_OFS, 0xff);	GT_WRITE(GT_SCS3HD_OFS, 0x00);	GT_WRITE(GT_SCS2LD_OFS, 0);	GT_WRITE(GT_SCS2HD_OFS, 0xff);	/* ...and the PCI0 view of it. */	GT_WRITE(GT_PCI0_CFGADDR_OFS, 0x80000010);	GT_WRITE(GT_PCI0_CFGDATA_OFS, 0x00000000);	GT_WRITE(GT_PCI0_CFGADDR_OFS, 0x80000014);	GT_WRITE(GT_PCI0_CFGDATA_OFS, 0x10000000);	GT_WRITE(GT_PCI0_BS_SCS10_OFS, 0x0ffff000);	GT_WRITE(GT_PCI0_BS_SCS32_OFS, 0x0ffff000);	tmpword = OCELOT_PLD_READ(BOARDREV);	if (tmpword < 26)		printk("Momenco Ocelot: Board Assembly Rev. %c\n", 'A'+tmpword);	else		printk("Momenco Ocelot: Board Assembly Revision #0x%x\n", tmpword);	tmpword = OCELOT_PLD_READ(PLD1_ID);	printk("PLD 1 ID: %d.%d\n", tmpword>>4, tmpword&15);	tmpword = OCELOT_PLD_READ(PLD2_ID);	printk("PLD 2 ID: %d.%d\n", tmpword>>4, tmpword&15);	tmpword = OCELOT_PLD_READ(RESET_STATUS);	printk("Reset reason: 0x%x\n", tmpword);	reset_reason = tmpword;	OCELOT_PLD_WRITE(0xff, RESET_STATUS);	tmpword = OCELOT_PLD_READ(BOARD_STATUS);	printk("Board Status register: 0x%02x\n", tmpword);	printk("  - User jumper: %s\n", (tmpword & 0x80)?"installed":"absent");	printk("  - Boot flash write jumper: %s\n", (tmpword&0x40)?"installed":"absent");	printk("  - Tulip PHY %s connected\n", (tmpword&0x10)?"is":"not");	printk("  - L3 Cache size: %d MiB\n", (1<<((tmpword&12) >> 2))&~1);	printk("  - SDRAM size: %d MiB\n", 1<<(6+(tmpword&3)));	if (tmpword&12)		l3func((1<<(((tmpword&12) >> 2)+20)));	switch(tmpword &3) {	case 3:		/* 512MiB */		add_memory_region(256<<20, 256<<20, BOOT_MEM_RAM);	case 2:		/* 256MiB */		/* FIXME: Is it actually here, or at 0x10000000? */		add_memory_region(128<<20, 128<<20, BOOT_MEM_RAM);	case 1:		/* 128MiB */		add_memory_region(64<<20, 64<<20, BOOT_MEM_RAM);	case 0:		/* 64MiB */		;	}	/* Fix up the DiskOnChip mapping */	GT_WRITE(0x468, 0xfef73);}extern int rm7k_tcache_enabled;/* * This runs in KSEG1. See the verbiage in rm7k.c::probe_scache() */#define Page_Invalidate_T 0x16static void __init setup_l3cache(unsigned long size){	int register i;	unsigned long tmp;		printk("Enabling L3 cache...");	/* Enable the L3 cache in the GT64120A's CPU Configuration register */	GT_READ(0, &tmp);	GT_WRITE(0, tmp | (1<<14));	/* Enable the L3 cache in the CPU */	set_cp0_config(1<<12 /* CONF_TE */);	/* Clear the cache */	set_taglo(0);	set_taghi(0);	for (i=0; i < size; i+= 4096) {		__asm__ __volatile__ (			".set noreorder\n\t"			".set mips3\n\t"			"cache %1, (%0)\n\t"			".set mips0\n\t"			".set reorder"			:			: "r" (KSEG0ADDR(i)),			  "i" (Page_Invalidate_T));	}	/* Let the RM7000 MM code know that the tertiary cache is enabled */	rm7k_tcache_enabled = 1;	printk("Done\n");}/* This needs to be one of the first initcalls, because no I/O port access   can work before this */static int io_base_ioremap(void){	void *io_remap_range = ioremap(GT_PCI_IO_BASE, GT_PCI_IO_SIZE);	if (!io_remap_range) {		panic("Could not ioremap I/O port range\n");	}	mips_io_port_base = io_remap_range - GT_PCI_IO_BASE;	return 0;}module_init(io_base_ioremap);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线精品不卡| 色妹子一区二区| 亚洲男同性视频| 91精品国产入口在线| 成人18视频在线播放| 蜜桃av一区二区三区电影| 中文字幕+乱码+中文字幕一区| 欧美美女直播网站| a在线欧美一区| 极品少妇xxxx偷拍精品少妇| 亚洲一区二区影院| 国产精品午夜免费| 久久先锋影音av鲁色资源| 欧美在线制服丝袜| av在线不卡电影| 国产一区二区美女| 久久国产成人午夜av影院| 一区二区三区加勒比av| 国产精品美女久久久久久久久 | 3751色影院一区二区三区| av中文字幕在线不卡| 国产精品一线二线三线| 免费在线成人网| 亚洲国产精品久久不卡毛片| 亚洲欧美在线aaa| 国产精品免费久久久久| 久久九九影视网| 精品99一区二区三区| 91精品国产综合久久久久久久 | 久久国产精品99久久人人澡| 日本欧美在线看| 亚洲国产精品一区二区www| 一区二区三区在线观看欧美 | 亚洲精品中文在线| 国产精品网友自拍| 国产精品毛片久久久久久| 国产区在线观看成人精品 | 国产精品国产三级国产普通话99 | 亚洲人成7777| 亚洲色图欧美在线| 亚洲视频一区二区在线| 亚洲欧美日韩国产手机在线| 亚洲免费观看在线观看| 亚洲精品欧美在线| 亚洲国产欧美在线| 三级亚洲高清视频| 蜜乳av一区二区三区| 极品瑜伽女神91| 国产成人超碰人人澡人人澡| 国产91丝袜在线观看| 不卡的av在线播放| 日本高清视频一区二区| 欧美亚洲另类激情小说| 欧美精品一级二级三级| 日韩一级黄色片| 久久蜜桃av一区精品变态类天堂| 久久免费看少妇高潮| 中文字幕久久午夜不卡| 亚洲色图19p| 午夜久久久久久电影| 美腿丝袜亚洲一区| 国产成人免费网站| 91麻豆免费看片| 666欧美在线视频| 欧美精品一区二区三区一线天视频| 精品国产1区二区| 国产精品对白交换视频 | 日韩伦理电影网| 午夜欧美视频在线观看| 紧缚奴在线一区二区三区| 成人97人人超碰人人99| 欧美日韩国产区一| 久久综合成人精品亚洲另类欧美| 中文字幕永久在线不卡| 日韩一区欧美二区| 国产精品一区二区三区四区| 色综合视频在线观看| 亚洲欧美偷拍三级| 免费视频一区二区| 99久久精品免费观看| 911国产精品| 国产精品福利电影一区二区三区四区| 亚洲成av人片www| 国产不卡免费视频| 欧美日韩亚州综合| 亚洲国产精品av| 天天色天天操综合| 成人av在线观| 日韩一级免费观看| 一区二区三区精品视频| 国产精品1区2区3区在线观看| 欧美亚州韩日在线看免费版国语版| 久久综合狠狠综合久久综合88| 亚洲视频 欧洲视频| 狠狠色综合日日| 欧美在线高清视频| 国产女主播视频一区二区| 日韩极品在线观看| 色悠久久久久综合欧美99| 久久精品综合网| 免费成人在线视频观看| 日本精品一区二区三区四区的功能| 久久婷婷色综合| 日本欧美一区二区在线观看| 日本高清不卡一区| 亚洲成人自拍网| bt欧美亚洲午夜电影天堂| 久久久欧美精品sm网站| 婷婷中文字幕一区三区| 91精彩视频在线观看| 国产精品理伦片| 国产xxx精品视频大全| 精品裸体舞一区二区三区| 天天综合色天天| 欧美在线不卡视频| 亚洲人吸女人奶水| 成年人网站91| 久久久久久久久99精品| 男人的j进女人的j一区| 欧美日韩国产影片| 亚洲一二三专区| 91福利在线看| 亚洲免费观看高清完整版在线观看熊| 国产99久久精品| 国产偷国产偷精品高清尤物| 青青草国产成人av片免费| 欧美浪妇xxxx高跟鞋交| 亚洲3atv精品一区二区三区| 欧美性xxxxx极品少妇| 亚洲免费在线视频一区 二区| 成人一级黄色片| 国产精品美女久久久久av爽李琼| 国产精品中文字幕日韩精品| 久久欧美中文字幕| 国产成人综合网| 国产精品色噜噜| 9i在线看片成人免费| 欧美国产欧美亚州国产日韩mv天天看完整 | 91麻豆精品国产自产在线观看一区| 亚洲午夜一二三区视频| 欧美电影一区二区| 日韩国产在线一| 美国精品在线观看| 欧美一区二区精品在线| 免费观看在线色综合| 精品成人佐山爱一区二区| 国内精品免费**视频| 久久精品日韩一区二区三区| 国产a久久麻豆| 欧美激情一区不卡| 不卡一区二区在线| 亚洲卡通动漫在线| 欧美精品tushy高清| 奇米色777欧美一区二区| 精品少妇一区二区三区视频免付费| 久久av中文字幕片| 国产欧美精品一区二区色综合朱莉 | 日韩精品中文字幕一区二区三区| 麻豆精品在线看| 日本一区二区不卡视频| 一本色道综合亚洲| 爽好久久久欧美精品| 日韩精品一区二区三区视频| 高清国产一区二区三区| 亚洲欧美另类小说| 欧美一区二区在线看| 韩国毛片一区二区三区| 综合久久一区二区三区| 欧美人成免费网站| 国产乱妇无码大片在线观看| 亚洲图片另类小说| 欧美一级在线观看| 国产.欧美.日韩| 一区二区高清视频在线观看| 日韩一级免费观看| 99久久精品情趣| 美国一区二区三区在线播放| 国产精品电影一区二区三区| 欧美肥妇bbw| 福利电影一区二区三区| 婷婷久久综合九色综合绿巨人| 久久综合久久鬼色| 欧美在线影院一区二区| 国产精品资源在线看| 亚洲午夜久久久久久久久电影院| 久久夜色精品国产噜噜av | 2021中文字幕一区亚洲| 91免费看`日韩一区二区| 久久精品国产亚洲aⅴ| 亚洲视频中文字幕| 久久亚洲一区二区三区四区| 色婷婷综合久久久久中文一区二区 | 日韩午夜在线播放| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 亚洲综合久久久| 国产色一区二区| 日韩午夜激情视频| 在线观看免费亚洲| 国产iv一区二区三区| 麻豆精品久久精品色综合|