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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pci-bigsur.c

?? 該文件是rt_linux
?? C
字號:
/* * linux/arch/sh/kernel/pci-bigsur.c * * By Dustin McIntire (dustin@sensoria.com) (c)2001 * May be copied or modified under the terms of the GNU General Public * License.  See linux/COPYING for more information. * * PCI initialization for the Hitachi Big Sur Evaluation Board */#include <linux/config.h>#include <linux/kernel.h>#include <linux/types.h>#include <linux/init.h>#include <linux/delay.h>#include <linux/pci.h>#include <asm/io.h>#include <asm/pci-sh7751.h>#include <asm/bigsur.h>#define PCI_REG(reg)        (SH7751_PCIREG_BASE+reg)/* * Initialize the Big Sur PCI interface  * Setup hardware to be Central Funtion * Copy the BSR regs to the PCI interface * Setup PCI windows into local RAM */int __init pcibios_init_platform(void) {	u32 reg;	u32 word;	PCIDBG(1,"PCI: bigsur_pci_init called\n");	/* Set the BCR's to enable PCI access */	reg = inl(SH7751_BCR1);	reg |= 0x80000;	outl(reg, SH7751_BCR1);		/* Setup the host hardware */	if(inl(PCI_REG(SH7751_PCICONF0)) !=	   (u32)((SH7751_DEVICE_ID <<16) | (SH7751_VENDOR_ID))) {	   printk("PCI: Unkown PCI host bridge.\n");	   return 0;	}  	printk("PCI: SH7751 PCI host bridge found.\n");		/* Turn the clocks back on (not done in reset)*/	outl(0, PCI_REG(SH7751_PCICLKR));	/* Clear Powerdown IRQ's (not done in reset) */	word = SH7751_PCIPINT_D3 | SH7751_PCIPINT_D0;	outl(word, PCI_REG(SH7751_PCICLKR));	/* toggle PCI reset pin */	word = SH7751_PCICR_PREFIX | SH7751_PCICR_PRST;	outl(word,PCI_REG(SH7751_PCICR));    	/* Wait for a long time... not 1 sec. but long enough */	mdelay(100);	word = SH7751_PCICR_PREFIX;	outl(word,PCI_REG(SH7751_PCICR)); 	    /* set the command/status bits to:     * Wait Cycle Control + Parity Enable + Bus Master +     * Mem space enable     */    word = SH7751_PCICONF1_WCC | SH7751_PCICONF1_PER |            SH7751_PCICONF1_BUM | SH7751_PCICONF1_MES;	outl(word, PCI_REG(SH7751_PCICONF1));	/* define this host as the host bridge */	word = SH7751_PCI_HOST_BRIDGE << 24;	outl(word, PCI_REG(SH7751_PCICONF2));	/* Set IO and Mem windows to local address 	 * Make PCI and local address the same for easy 1 to 1 mapping 	 * Window0 = BIGSUR_LSR0_SIZE @ non-cached CS3 base = SDRAM	 * Window1 = BIGSUR_LSR1_SIZE @ cached CS3 base = SDRAM 	 */	word = BIGSUR_LSR0_SIZE - 1;	outl(word, PCI_REG(SH7751_PCILSR0));	word = BIGSUR_LSR1_SIZE - 1;	outl(word, PCI_REG(SH7751_PCILSR1));	/* Set the values on window 0 PCI config registers */	word = P2SEGADDR(SH7751_CS3_BASE_ADDR);	outl(word, PCI_REG(SH7751_PCILAR0));	outl(word, PCI_REG(SH7751_PCICONF5));	/* Set the values on window 1 PCI config registers */	word =  PHYSADDR(SH7751_CS3_BASE_ADDR);	outl(word, PCI_REG(SH7751_PCILAR1));	outl(word, PCI_REG(SH7751_PCICONF6));	/* Set the local 16MB PCI memory space window to 	 * the lowest PCI mapped address	 */	word = PCIBIOS_MIN_MEM & SH7751_PCIMBR_MASK;	PCIDBG(2,"PCI: Setting upper bits of Memory window to 0x%x\n", word);	outl(word , PCI_REG(SH7751_PCIMBR));	/* Map IO space into PCI IO window	 * The IO window is 64K-PCIBIOS_MIN_IO in size	 * IO addresses will be translated to the 	 * PCI IO window base address	 */	PCIDBG(3,"PCI: Mapping IO address 0x%x - 0x%x to base 0x%x\n", PCIBIOS_MIN_IO,	    (64*1024), SH7751_PCI_IO_BASE+PCIBIOS_MIN_IO);	bigsur_port_map(PCIBIOS_MIN_IO, (64*1024), SH7751_PCI_IO_BASE+PCIBIOS_MIN_IO,0);	    	/* Make sure the MSB's of IO window are set to access PCI space correctly */	word = PCIBIOS_MIN_IO & SH7751_PCIIOBR_MASK;	PCIDBG(2,"PCI: Setting upper bits of IO window to 0x%x\n", word);	outl(word, PCI_REG(SH7751_PCIIOBR));		/* Set PCI WCRx, BCRx's, copy from BSC locations */	word = inl(SH7751_BCR1);	/* check BCR for SDRAM in area 3 */	if(((word >> 3) & 1) == 0) {		printk("PCI: Area 3 is not configured for SDRAM. BCR1=0x%x\n", word);		return 0;	}	outl(word, PCI_REG(SH7751_PCIBCR1));	word = (u16)inw(SH7751_BCR2);	/* check BCR2 for 32bit SDRAM interface*/	if(((word >> 6) & 0x3) != 0x3) {		printk("PCI: Area 3 is not 32 bit SDRAM. BCR2=0x%x\n", word);		return 0;	}	outl(word, PCI_REG(SH7751_PCIBCR2));	/* configure the wait control registers */	word = inl(SH7751_WCR1);	outl(word, PCI_REG(SH7751_PCIWCR1));	word = inl(SH7751_WCR2);	outl(word, PCI_REG(SH7751_PCIWCR2));	word = inl(SH7751_WCR3);	outl(word, PCI_REG(SH7751_PCIWCR3));	word = inl(SH7751_MCR);	outl(word, PCI_REG(SH7751_PCIMCR));	/* NOTE: I'm ignoring the PCI error IRQs for now..	 * TODO: add support for the internal error interrupts and	 * DMA interrupts...	 */	 	/* SH7751 init done, set central function init complete */	word = SH7751_PCICR_PREFIX | SH7751_PCICR_CFIN;	outl(word,PCI_REG(SH7751_PCICR)); 	PCIDBG(2,"PCI: bigsur_pci_init finished\n");	return 1;}int pcibios_map_platform_irq(u8 slot, u8 pin){    /* The Big Sur can be used in a CPCI chassis, but the SH7751 PCI interface is on the     * wrong end of the board so that it can also support a V320 CPI interface chip...     * Therefor the IRQ mapping is somewhat use dependent... I'l assume a linear map for     * now, i.e. INTA=slot0,pin0... INTD=slot3,pin0...     */     int irq = (slot + pin-1)%4 + BIGSUR_SH7751_PCI_IRQ_BASE;    PCIDBG(2,"PCI: Mapping Big Sur IRQ for slot %d, pin %c to irq %d\n", slot, pin-1+'A', irq);    return irq;     }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线精品一区二区不卡了 | 国产精品久久久久久久久搜平片 | 成人在线视频一区| 中文字幕av资源一区| 不卡一区二区三区四区| 亚洲老司机在线| 欧美日韩精品欧美日韩精品| 欧美日韩五月天| 三级精品在线观看| 精品三级在线观看| 国产成人亚洲综合a∨猫咪| 国产精品久久久久久久久晋中 | 国产日本亚洲高清| 91麻豆免费在线观看| 婷婷中文字幕综合| 精品国产免费人成电影在线观看四季| 国产精品一区二区在线观看网站| 中文字幕一区二区5566日韩| 欧洲av一区二区嗯嗯嗯啊| 蜜芽一区二区三区| 欧美激情综合五月色丁香| 日本福利一区二区| 狂野欧美性猛交blacked| 中文字幕的久久| 欧美日韩国产精选| 国产精品亚洲第一区在线暖暖韩国| 中文字幕制服丝袜成人av| 欧美日韩久久久| 国产成人午夜片在线观看高清观看| 亚洲欧美偷拍三级| 欧美一级二级三级乱码| 国产婷婷色一区二区三区| 在线观看一区日韩| 精品一区免费av| 亚洲欧美成人一区二区三区| 91精品国产综合久久福利软件 | 91精品国产综合久久精品图片| 国产老肥熟一区二区三区| 亚洲黄色在线视频| 日韩精品一区二区三区中文不卡| 成人国产精品免费观看| 日韩精品一二三区| 一区二区中文视频| 欧美成人一区二区| 欧洲日韩一区二区三区| 国产麻豆精品95视频| 夜夜亚洲天天久久| 欧美激情在线看| 日韩一级二级三级精品视频| av亚洲精华国产精华精华| 奇米888四色在线精品| 亚洲男人天堂一区| 久久精品无码一区二区三区| 精品污污网站免费看| 高清不卡在线观看av| 日韩精彩视频在线观看| 欧美日韩一级片在线观看| 99re成人精品视频| 日韩精品一二区| 亚洲欧洲精品一区二区三区 | 91麻豆精品国产91久久久 | 国产精品蜜臀在线观看| 日韩欧美另类在线| 欧美日韩国产色站一区二区三区| 成人精品高清在线| 国产一区二区三区免费看| 五月婷婷久久丁香| 亚洲乱码国产乱码精品精的特点| 国产午夜三级一区二区三| 欧美一区二区啪啪| 欧美日韩一区二区三区视频| av动漫一区二区| 国产精品91一区二区| 麻豆国产一区二区| 首页国产丝袜综合| 亚洲图片欧美色图| 亚洲色图视频网站| 国产精品欧美久久久久无广告| 亚洲精品在线电影| 欧美成人激情免费网| 制服丝袜亚洲播放| 欧美日免费三级在线| 色老汉一区二区三区| av毛片久久久久**hd| 成人在线视频首页| 26uuu另类欧美| 日韩三级免费观看| 91精品国产一区二区三区| 在线观看一区不卡| 福利电影一区二区| 极品美女销魂一区二区三区免费| 午夜电影网一区| 亚洲成人一区二区在线观看| 亚洲欧美另类在线| 专区另类欧美日韩| 亚洲人成网站在线| 亚洲人成电影网站色mp4| 国产精品久久久久久久久久久免费看| 久久精品人人做人人综合| wwwwww.欧美系列| 精品国产乱码久久| 久久青草国产手机看片福利盒子| 精品免费视频一区二区| 欧美一级二级在线观看| 91精品在线一区二区| 91麻豆精品国产91久久久更新时间| 欧美日韩国产一级| 欧美精品一级二级| 欧美精选午夜久久久乱码6080| 欧美麻豆精品久久久久久| 在线播放欧美女士性生活| 777午夜精品免费视频| 欧美一区二区三区四区在线观看| 欧美日韩精品欧美日韩精品一 | 国产老肥熟一区二区三区| 国产麻豆视频精品| 国产成人一区在线| 成人听书哪个软件好| gogogo免费视频观看亚洲一| 91美女片黄在线观看91美女| 日本v片在线高清不卡在线观看| 一区二区视频免费在线观看| 一区二区成人在线| 午夜精品福利久久久| 麻豆免费精品视频| 国产一区二区三区久久久| 粉嫩蜜臀av国产精品网站| 99视频热这里只有精品免费| 91麻豆swag| 欧美乱熟臀69xxxxxx| 日韩久久精品一区| 中文字幕欧美三区| 色琪琪一区二区三区亚洲区| 欧美在线小视频| 日韩欧美在线网站| 国产亚洲综合在线| 亚洲男人的天堂在线aⅴ视频| 亚洲第一福利一区| 国产自产高清不卡| 99精品桃花视频在线观看| 欧美伊人久久久久久久久影院| 欧美一区午夜精品| 国产亚洲va综合人人澡精品| 成人欧美一区二区三区1314| 亚洲一区二区三区在线播放 | 五月天丁香久久| 国产一区二区三区观看| 99久精品国产| 欧美一二三四在线| 国产精品私人自拍| 亚洲国产cao| 国内精品视频一区二区三区八戒| av在线不卡电影| 91精品国产入口| 国产精品色眯眯| 五月天丁香久久| 岛国精品一区二区| 欧美日产国产精品| 国产三级精品三级| 亚洲成a天堂v人片| 粉嫩欧美一区二区三区高清影视 | 亚洲成人tv网| 另类欧美日韩国产在线| 成人动漫中文字幕| 性做久久久久久免费观看欧美| 久久黄色级2电影| 91色.com| 精品久久久久久久久久久久久久久久久| 日韩美女视频一区二区| 蜜桃视频一区二区三区在线观看| 成人黄色免费短视频| 制服视频三区第一页精品| 国产人成亚洲第一网站在线播放| 亚洲午夜激情网站| 国产成人精品免费| 欧美一区二区在线观看| 中文字幕在线一区| 久久99国产精品尤物| 在线视频一区二区免费| 国产性天天综合网| 日韩av中文字幕一区二区| 91在线porny国产在线看| 久久午夜羞羞影院免费观看| 亚洲国产欧美一区二区三区丁香婷| 国产精品夜夜嗨| 欧美一区二区三区小说| 亚洲欧美日韩在线| 国产精品一二三在| 7777精品伊人久久久大香线蕉经典版下载| 欧美激情一二三区| 卡一卡二国产精品 | 一区二区三区免费在线观看| 狠狠久久亚洲欧美| 欧美老女人在线| 亚洲欧美日韩在线不卡| 懂色中文一区二区在线播放| 日韩精品中午字幕| 午夜精品久久久久久久99水蜜桃| 波多野洁衣一区| 久久久精品免费观看|