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

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

?? pci-snapgear.c

?? linux-2.4.29操作系統(tǒng)的源碼
?? C
字號:
/* * linux/arch/sh/kernel/pci-snapgear.c * * Author:  David McCullough <davidm@snapgear.com> * * Highly leveraged from pci-bigsur.c, written by Dustin McIntire. * * May be copied or modified under the terms of the GNU General Public * License.  See linux/COPYING for more information. * * PCI initialization for the SnapGear boards */#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>#define PCI_REG(reg)        (SH7751_PCIREG_BASE+reg)/* PCI: default LOCAL memory window sizes (seen from PCI bus) */#define SNAPGEAR_LSR0_SIZE    (64*(1<<20)) //64MB#define SNAPGEAR_LSR1_SIZE    (64*(1<<20)) //64MB/* * Initialize the SnapGear 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;	u32 id;	PCIDBG(1,"PCI: snapgear_pci_init called\n");	/* Set the BCR's to enable PCI access */	reg = inl(SH7751_BCR1);	reg |= 0x80000;	outl(reg, SH7751_BCR1);		/* check for SH7751/SH7751R hardware */	id = inl(SH7751_PCIREG_BASE+SH7751_PCICONF0);	switch (id) {	case (SH7751_DEVICE_ID << 16) | SH7751_VENDOR_ID:		printk("PCI: SH7751 PCI host bridge found.\n");		break;	case (SH7751R_DEVICE_ID << 16) | SH7751_VENDOR_ID:		printk("PCI: SH7751R PCI host bridge found.\n");		break;	default:		printk("PCI: Unknown PCI host bridge (id=0x%x).\n", id);		return(0);	}		/* 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));#if 0/* *	This code is removed as it is done in the bootloader and doing it *	here means the MAC addresses loaded by the bootloader get lost */	/* 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)); #endif	    /* 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 = SNAPGEAR_LSR0_SIZE @ non-cached CS2 base = SDRAM	 * Window1 = SNAPGEAR_LSR1_SIZE @ cached CS2 base = SDRAM 	 */	word = SNAPGEAR_LSR0_SIZE - 1;	outl(word, PCI_REG(SH7751_PCILSR0));	word = SNAPGEAR_LSR1_SIZE - 1;	outl(word, PCI_REG(SH7751_PCILSR1));	/* Set the values on window 0 PCI config registers */	word = P2SEGADDR(SH7751_CS2_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_CS2_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);	    	/* 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 >> 2) & 1) == 0) {		printk("PCI: Area 2 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 >> 4) & 0x3) != 0x3) {		printk("PCI: Area 2 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 */	/* use round robin mode to stop a device starving/overruning */	word = SH7751_PCICR_PREFIX | SH7751_PCICR_CFIN | SH7751_PCICR_ARBM;	outl(word,PCI_REG(SH7751_PCICR)); 	PCIDBG(2,"PCI: snapgear_pci_init finished\n");	return 1;}int __init pcibios_map_platform_irq(u8 slot, u8 pin){	int irq = -1;	switch (slot) {	case 8:  /* the PCI bridge */ break;	case 11: irq = 8;  break; /* USB    */	case 12: irq = 11; break; /* PCMCIA */	case 13: irq = 5;  break; /* eth0   */	case 14: irq = 8;  break; /* eth1   */	case 15: irq = 11; break; /* safenet (unused) */	}    printk("PCI: Mapping SnapGear 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一区二区三区免费野_久草精品视频
97精品国产露脸对白| 国产精品久久毛片| 视频精品一区二区| 8x8x8国产精品| 免费在线看一区| 精品国产一区二区三区四区四| 精品一区二区三区免费观看| 久久久天堂av| 色综合久久88色综合天天6| 一区二区在线观看不卡| 精品视频在线免费看| 视频精品一区二区| 精品成人一区二区| 成人av影院在线| 亚洲成人免费在线| 久久久久99精品国产片| 91亚洲大成网污www| 免费在线观看一区二区三区| 久久午夜电影网| 97久久久精品综合88久久| 久久一留热品黄| 日韩高清在线一区| 国产欧美日产一区| 欧美性一二三区| 国产一区二区三区在线观看免费 | 91视频一区二区三区| 国产一区91精品张津瑜| 中文字幕精品一区二区精品绿巨人| 91在线观看视频| 日本欧美肥老太交大片| 亚洲欧洲99久久| 日韩欧美资源站| 99精品桃花视频在线观看| 青青草成人在线观看| 亚洲国产成人午夜在线一区| 欧美日韩成人在线一区| 成人av中文字幕| 蜜臀av一级做a爰片久久| 亚洲三级在线免费观看| 欧美一区二区三区思思人| 99久久亚洲一区二区三区青草| 国产精品久久久久精k8| 亚洲少妇最新在线视频| 欧美男生操女生| 成人天堂资源www在线| 亚洲国产精品视频| 国产精品视频一二三| 777亚洲妇女| 99在线精品观看| 国产精品一区在线| 日韩av一区二区三区| 亚洲精品免费视频| 亚洲国产成人午夜在线一区| 欧美mv日韩mv国产| 欧美精品电影在线播放| 91视频免费观看| 国产91精品久久久久久久网曝门| 日本不卡一区二区| 亚洲一区二区精品久久av| 亚洲欧洲av另类| 国产欧美日韩一区二区三区在线观看| 91精品国产综合久久久蜜臀粉嫩| 92国产精品观看| 成人av在线一区二区三区| 国产麻豆91精品| 国内一区二区视频| 久久99热国产| 免费在线看成人av| 午夜精品一区二区三区免费视频| 亚洲一区二区三区四区在线观看 | 久久综合狠狠综合久久激情| 欧美精品九九99久久| 欧美日本在线一区| 欧美日韩电影在线| 欧美疯狂做受xxxx富婆| 91精品国产综合久久福利软件| 欧美另类高清zo欧美| 欧美另类变人与禽xxxxx| 欧美日韩久久一区| 日韩一区二区三区电影在线观看| 欧美丰满嫩嫩电影| 日韩美女在线视频| 精品999在线播放| 久久精品一级爱片| 国产欧美日韩麻豆91| 国产精品污网站| 亚洲欧洲精品天堂一级 | 亚洲成国产人片在线观看| 亚洲成人激情自拍| 免费看日韩精品| 国产在线播放一区二区三区| 国产精品一区二区久久不卡| caoporm超碰国产精品| 在线观看中文字幕不卡| 欧美巨大另类极品videosbest| 日韩欧美在线网站| 国产午夜精品久久久久久久 | 色嗨嗨av一区二区三区| 欧美日韩一卡二卡三卡| 日韩欧美一区二区久久婷婷| 久久精品欧美一区二区三区不卡| 国产精品成人免费在线| 亚洲妇女屁股眼交7| 美女视频一区二区三区| 国产精品主播直播| 91丨porny丨户外露出| 欧美日韩国产免费一区二区 | 欧美无人高清视频在线观看| 91精品国产欧美日韩| 国产亚洲va综合人人澡精品| 一区二区三区日韩欧美| 欧美a一区二区| youjizz国产精品| 8x8x8国产精品| 国产精品毛片高清在线完整版| 亚洲国产精品影院| 国产成人啪午夜精品网站男同| 色诱亚洲精品久久久久久| 6080国产精品一区二区| 国产拍揄自揄精品视频麻豆| 亚洲成av人片| 成人中文字幕电影| 91精品国产色综合久久不卡电影| 欧美激情一区二区三区不卡| 亚洲大片在线观看| 不卡的av网站| 欧美成人vr18sexvr| 亚洲免费大片在线观看| 国产在线精品一区二区夜色| 欧美系列日韩一区| 国产精品女同互慰在线看| 日韩av在线播放中文字幕| 91免费版在线| 久久精品人人爽人人爽| 男人的j进女人的j一区| 在线视频一区二区免费| 国产精品丝袜黑色高跟| 激情文学综合网| 欧美区一区二区三区| 亚洲视频在线观看一区| 国产精品88888| 日韩一二在线观看| 亚洲男同性恋视频| 成人久久18免费网站麻豆| 日韩美女视频在线| 日精品一区二区三区| 在线欧美日韩精品| 亚洲人成小说网站色在线| 成人一区二区视频| 久久免费看少妇高潮| 久久国产综合精品| 在线播放中文一区| 午夜电影一区二区| 欧美日韩一区小说| 亚洲午夜三级在线| 欧美伊人精品成人久久综合97 | 26uuu精品一区二区| 免费精品视频在线| 欧美精品tushy高清| 亚洲高清不卡在线| 欧美性受极品xxxx喷水| 亚洲精品午夜久久久| 91在线观看免费视频| 亚洲日本在线天堂| 91在线视频免费观看| 亚洲视频在线一区二区| 91免费视频网| 亚洲精品日日夜夜| 在线亚洲免费视频| 香蕉久久一区二区不卡无毒影院| 欧美午夜片在线看| 日日摸夜夜添夜夜添精品视频| 欧美日本在线观看| 久久精品72免费观看| 精品久久99ma| 福利一区在线观看| 专区另类欧美日韩| 欧美日韩一区二区在线观看视频| 亚洲图片有声小说| 欧美一二三区在线观看| 麻豆国产精品一区二区三区| 久久综合国产精品| 不卡一区中文字幕| 一个色综合av| 在线不卡免费av| 国产精品自在欧美一区| 亚洲丝袜制服诱惑| 欧美剧情电影在线观看完整版免费励志电影 | 日本v片在线高清不卡在线观看| 91精品国产一区二区人妖| 狠狠久久亚洲欧美| 国产精品少妇自拍| 欧美伊人久久久久久久久影院| 青娱乐精品视频| 中文字幕精品一区二区精品绿巨人 | 精品国产成人系列| 波多野结衣的一区二区三区| 亚洲福利一区二区三区| 久久精品一区四区| 色又黄又爽网站www久久|