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

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

?? pci-bigsur.c

?? ARM 嵌入式 系統 設計與實例開發 實驗教材 二源碼
?? 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一区二区三区免费野_久草精品视频
亚洲一区二区视频在线| 国产麻豆精品theporn| 国产日韩欧美一区二区三区乱码 | 日韩一区二区电影| 91麻豆视频网站| 国产乱码精品一区二区三区av| 亚洲国产精品一区二区www| 久久久91精品国产一区二区三区| 91精品国产综合久久香蕉的特点| 欧美在线免费视屏| 91在线码无精品| av成人免费在线| 成人三级伦理片| 福利一区在线观看| 国产精品亚洲一区二区三区妖精| 麻豆国产一区二区| 日本在线播放一区二区三区| 午夜精品久久久久久久久久久| 一区二区三区四区乱视频| 综合欧美一区二区三区| 国产精品久久免费看| 国产精品三级电影| 亚洲国产精品成人综合色在线婷婷| 久久久蜜桃精品| 久久奇米777| 久久久久久久免费视频了| 精品日韩在线一区| 欧美成人官网二区| 精品国免费一区二区三区| 欧美哺乳videos| 精品国产1区二区| 久久综合九色综合欧美就去吻| 日韩精品一区在线观看| 日韩视频在线永久播放| 日韩三级免费观看| 精品成人免费观看| 久久久久久久国产精品影院| 日本一区二区三区高清不卡| 中文字幕一区二区在线播放| 亚洲另类春色国产| 亚洲五月六月丁香激情| 日本欧美在线观看| 精品一区精品二区高清| 国产一区不卡视频| 国产91精品免费| 97久久人人超碰| 在线亚洲一区二区| 欧美精品一二三四| 精品国产一区二区三区久久影院 | 黄一区二区三区| 韩日精品视频一区| 成人午夜免费电影| 在线观看日韩精品| 欧美一区二区三区啪啪| 久久久久久影视| 国产精品不卡一区二区三区| 亚洲成人先锋电影| 麻豆国产精品官网| gogogo免费视频观看亚洲一| 欧美亚洲国产一区在线观看网站| 3d成人h动漫网站入口| 久久精品欧美一区二区三区不卡 | 91污片在线观看| 欧美日韩精品一区二区三区四区| 欧美大片在线观看| 国产精品不卡一区二区三区| 午夜久久福利影院| 国产成人免费在线视频| 色美美综合视频| 欧美大片一区二区| 亚洲少妇中出一区| 久久精品99久久久| 99久久免费视频.com| 欧美一区二区国产| 国产精品久久福利| 美女脱光内衣内裤视频久久影院| 国产成人综合精品三级| 色婷婷久久久综合中文字幕| 日韩一区二区三区免费观看| 中文字幕视频一区二区三区久| 婷婷综合五月天| 国产成人高清视频| 欧美日韩另类一区| 国产日本欧美一区二区| 亚洲地区一二三色| 高清在线不卡av| 欧美久久久一区| 国产日韩精品一区二区浪潮av | 欧美精品丝袜久久久中文字幕| 久久久久九九视频| 亚洲h精品动漫在线观看| 懂色av一区二区三区免费观看| 777a∨成人精品桃花网| 日韩久久一区二区| 国产精品亚洲专一区二区三区| 欧美另类高清zo欧美| 国产精品久久久久9999吃药| 久久国产精品无码网站| 欧美性色黄大片手机版| 国产精品嫩草久久久久| 蜜桃视频第一区免费观看| 色婷婷av一区二区三区大白胸| wwwwxxxxx欧美| 青青草国产精品亚洲专区无| 97精品久久久午夜一区二区三区 | 国产九色sp调教91| 欧美精品三级日韩久久| 中文字幕一区二区三区四区| 国产在线精品免费| 91精品在线免费| 亚洲一区自拍偷拍| av午夜一区麻豆| 久久精品亚洲精品国产欧美| 蜜桃av一区二区| 欧美精品久久天天躁| 亚洲综合一区二区| 色综合中文字幕国产 | 成人激情动漫在线观看| 欧美tk—视频vk| 丝袜亚洲另类丝袜在线| 91久久精品日日躁夜夜躁欧美| 国产欧美一区视频| 国产成人av自拍| 欧美成人午夜电影| 老司机一区二区| 日韩欧美高清dvd碟片| 亚洲 欧美综合在线网络| 91黄色免费看| 亚洲精品免费视频| 91网站在线观看视频| 亚洲欧洲日韩综合一区二区| 国产91精品一区二区麻豆网站| 国产日产欧美一区二区视频| 国产成人精品一区二区三区网站观看 | 国产亚洲综合在线| 国产精品一区二区在线看| 久久久久久夜精品精品免费| 国产精品一区二区三区四区| 久久一日本道色综合| 国产一区二区美女| 国产偷国产偷精品高清尤物| 国产精品911| 国产精品国产自产拍高清av| av中文字幕在线不卡| 亚洲欧洲日韩综合一区二区| 色视频成人在线观看免| 一区二区欧美视频| 欧美日本在线播放| 蜜桃视频在线观看一区二区| 久久亚洲精品小早川怜子| 国产91精品一区二区麻豆亚洲| 中文字幕精品综合| 91蜜桃网址入口| 亚洲国产欧美在线| 欧美一区二区视频在线观看 | 精品国产伦一区二区三区免费| 精品一区二区日韩| 中文字幕高清不卡| 一本色道久久综合精品竹菊| 亚洲成人第一页| 精品国产一区二区三区四区四| 国产不卡在线视频| 亚洲欧美日韩中文播放| 欧美疯狂性受xxxxx喷水图片| 久久精品99国产国产精| 亚洲国产精品99久久久久久久久 | 亚洲妇女屁股眼交7| 欧美日韩专区在线| 日本欧美大码aⅴ在线播放| 亚洲精品一区二区三区影院| 成人a区在线观看| 亚洲综合久久久久| 日韩美女天天操| 99riav一区二区三区| 视频一区在线播放| 中文字幕不卡在线观看| 欧美视频完全免费看| 国产呦精品一区二区三区网站| 中文字幕一区二区三区四区不卡| 欧美年轻男男videosbes| 久久99久久99精品免视看婷婷| 国产精品午夜久久| 欧美精品日日鲁夜夜添| 粉嫩嫩av羞羞动漫久久久 | 欧美肥妇毛茸茸| 国产精华液一区二区三区| 亚洲综合色视频| 久久综合狠狠综合久久激情 | 一区二区免费在线| 精品国产a毛片| 一本到一区二区三区| 久久精品国产第一区二区三区| 亚洲日穴在线视频| 欧美不卡一区二区三区四区| 一本到高清视频免费精品| 国精产品一区一区三区mba视频| 亚洲另类在线制服丝袜| 国产亚洲欧洲997久久综合 | 午夜精品aaa| 国产精品久久久久久妇女6080|