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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? pci.c

?? 優(yōu)龍2410linux2.6.8內(nèi)核源代碼
?? C
字號(hào):
/* $Id: pci.c,v 1.6 2000/01/29 00:12:05 grundler Exp $ * * This file is subject to the terms and conditions of the GNU General Public * License.  See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1997, 1998 Ralf Baechle * Copyright (C) 1999 SuSE GmbH * Copyright (C) 1999-2001 Hewlett-Packard Company * Copyright (C) 1999-2001 Grant Grundler */#include <linux/config.h>#include <linux/eisa.h>#include <linux/init.h>#include <linux/module.h>#include <linux/kernel.h>#include <linux/pci.h>#include <linux/slab.h>#include <linux/types.h>#include <asm/io.h>#include <asm/system.h>#include <asm/cache.h>		/* for L1_CACHE_BYTES */#include <asm/superio.h>#define DEBUG_RESOURCES 0#define DEBUG_CONFIG 0#if DEBUG_CONFIG# define DBGC(x...)	printk(KERN_DEBUG x)#else# define DBGC(x...)#endif#if DEBUG_RESOURCES#define DBG_RES(x...)	printk(KERN_DEBUG x)#else#define DBG_RES(x...)#endif/* To be used as: mdelay(pci_post_reset_delay); * * post_reset is the time the kernel should stall to prevent anyone from * accessing the PCI bus once #RESET is de-asserted.  * PCI spec somewhere says 1 second but with multi-PCI bus systems, * this makes the boot time much longer than necessary. * 20ms seems to work for all the HP PCI implementations to date. * * XXX: turn into a #defined constant in <asm/pci.h> ? */int pci_post_reset_delay = 50;struct pci_port_ops *pci_port;struct pci_bios_ops *pci_bios;int pci_hba_count = 0;/* parisc_pci_hba used by pci_port->in/out() ops to lookup bus data.  */#define PCI_HBA_MAX 32struct pci_hba_data *parisc_pci_hba[PCI_HBA_MAX];/************************************************************************ I/O port space support***********************************************************************//* EISA port numbers and PCI port numbers share the same interface.  Some * machines have both EISA and PCI adapters installed.  Rather than turn * pci_port into an array, we reserve bus 0 for EISA and call the EISA * routines if the access is to a port on bus 0.  We don't want to fix * EISA and ISA drivers which assume port space is <= 0xffff. */#ifdef CONFIG_EISA#define EISA_IN(size) if (EISA_bus && (b == 0)) return eisa_in##size(addr)#define EISA_OUT(size) if (EISA_bus && (b == 0)) return eisa_out##size(d, addr)#else#define EISA_IN(size)#define EISA_OUT(size)#endif#define PCI_PORT_IN(type, size) \u##size in##type (int addr) \{ \	int b = PCI_PORT_HBA(addr); \	EISA_IN(size); \	if (!parisc_pci_hba[b]) return (u##size) -1; \	return pci_port->in##type(parisc_pci_hba[b], PCI_PORT_ADDR(addr)); \} \EXPORT_SYMBOL(in##type);PCI_PORT_IN(b,  8)PCI_PORT_IN(w, 16)PCI_PORT_IN(l, 32)#define PCI_PORT_OUT(type, size) \void out##type (u##size d, int addr) \{ \	int b = PCI_PORT_HBA(addr); \	EISA_OUT(size); \	if (!parisc_pci_hba[b]) return; \	pci_port->out##type(parisc_pci_hba[b], PCI_PORT_ADDR(addr), d); \} \EXPORT_SYMBOL(out##type);PCI_PORT_OUT(b,  8)PCI_PORT_OUT(w, 16)PCI_PORT_OUT(l, 32)/* * BIOS32 replacement. */static int __init pcibios_init(void){	if (!pci_bios)		return -1;	if (pci_bios->init) {		pci_bios->init();	} else {		printk(KERN_WARNING "pci_bios != NULL but init() is!\n");	}	return 0;}/* Called from pci_do_scan_bus() *after* walking a bus but before walking PPBs. */void pcibios_fixup_bus(struct pci_bus *bus){	if (pci_bios->fixup_bus) {		pci_bios->fixup_bus(bus);	} else {		printk(KERN_WARNING "pci_bios != NULL but fixup_bus() is!\n");	}}char *pcibios_setup(char *str){	return str;}/* Used in drivers/pci/quirks.c */struct pci_fixup pcibios_fixups[] = { #ifdef CONFIG_SUPERIO	{ PCI_FIXUP_HEADER,	PCI_VENDOR_ID_NS,	PCI_DEVICE_ID_NS_87415,	superio_fixup_pci },#endif	{ 0 }};/* * Called by pci_set_master() - a driver interface. * * Legacy PDC guarantees to set: *	Map Memory BAR's into PA IO space. *	Map Expansion ROM BAR into one common PA IO space per bus. *	Map IO BAR's into PCI IO space. *	Command (see below) *	Cache Line Size *	Latency Timer *	Interrupt Line *	PPB: secondary latency timer, io/mmio base/limit, *		bus numbers, bridge control * */void pcibios_set_master(struct pci_dev *dev){	u8 lat;	/* If someone already mucked with this, don't touch it. */	pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat);	if (lat >= 16) return;	/*	** HP generally has fewer devices on the bus than other architectures.	** upper byte is PCI_LATENCY_TIMER.	*/	pci_write_config_word(dev, PCI_CACHE_LINE_SIZE,				(0x80 << 8) | (L1_CACHE_BYTES / sizeof(u32)));}void __init pcibios_init_bus(struct pci_bus *bus){	struct pci_dev *dev = bus->self;	unsigned short bridge_ctl;	/* We deal only with pci controllers and pci-pci bridges. */	if (!dev || (dev->class >> 8) != PCI_CLASS_BRIDGE_PCI)		return;	/* PCI-PCI bridge - set the cache line and default latency	   (32) for primary and secondary buses. */	pci_write_config_byte(dev, PCI_SEC_LATENCY_TIMER, 32);	pci_read_config_word(dev, PCI_BRIDGE_CONTROL, &bridge_ctl);	bridge_ctl |= PCI_BRIDGE_CTL_PARITY | PCI_BRIDGE_CTL_SERR;	pci_write_config_word(dev, PCI_BRIDGE_CONTROL, bridge_ctl);}/* KLUGE: Link the child and parent resources - generic PCI didn't */static voidpcibios_link_hba_resources( struct resource *hba_res, struct resource *r){	if (!r->parent) {		printk(KERN_EMERG "PCI: Tell willy he's wrong\n");		r->parent = hba_res;		/* reverse link is harder *sigh*  */		if (r->parent->child) {			if (r->parent->sibling) {				struct resource *next = r->parent->sibling;				while (next->sibling)					 next = next->sibling;				next->sibling = r;			} else {				r->parent->sibling = r;			}		} else			r->parent->child = r;	}}/* called by drivers/pci/setup-bus.c:pci_setup_bridge().  */void __devinit pcibios_resource_to_bus(struct pci_dev *dev,		struct pci_bus_region *region, struct resource *res){	struct pci_bus *bus = dev->bus;	struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data);	if (res->flags & IORESOURCE_IO) {		/*		** I/O space may see busnumbers here. Something		** in the form of 0xbbxxxx where bb is the bus num		** and xxxx is the I/O port space address.		** Remaining address translation are done in the		** PCI Host adapter specific code - ie dino_out8.		*/		region->start = PCI_PORT_ADDR(res->start);		region->end   = PCI_PORT_ADDR(res->end);	} else if (res->flags & IORESOURCE_MEM) {		/* Convert MMIO addr to PCI addr (undo global virtualization) */		region->start = PCI_BUS_ADDR(hba, res->start);		region->end   = PCI_BUS_ADDR(hba, res->end);	}	DBG_RES("pcibios_resource_to_bus(%02x %s [%lx,%lx])\n",		bus->number, res->flags & IORESOURCE_IO ? "IO" : "MEM",		region->start, region->end);	/* KLUGE ALERT	** if this resource isn't linked to a "parent", then it seems	** to be a child of the HBA - lets link it in.	*/	pcibios_link_hba_resources(&hba->io_space, bus->resource[0]);	pcibios_link_hba_resources(&hba->lmmio_space, bus->resource[1]);}#ifdef CONFIG_HOTPLUGEXPORT_SYMBOL(pcibios_resource_to_bus);#endif/* * pcibios align resources() is called every time generic PCI code * wants to generate a new address. The process of looking for * an available address, each candidate is first "aligned" and * then checked if the resource is available until a match is found. * * Since we are just checking candidates, don't use any fields other * than res->start. */void pcibios_align_resource(void *data, struct resource *res,				unsigned long size, unsigned long alignment){	unsigned long mask, align;	DBG_RES("pcibios_align_resource(%s, (%p) [%lx,%lx]/%x, 0x%lx, 0x%lx)\n",		pci_name(((struct pci_dev *) data)),		res->parent, res->start, res->end,		(int) res->flags, size, alignment);	/* If it's not IO, then it's gotta be MEM */	align = (res->flags & IORESOURCE_IO) ? PCIBIOS_MIN_IO : PCIBIOS_MIN_MEM;	/* Align to largest of MIN or input size */	mask = max(alignment, align) - 1;	res->start += mask;	res->start &= ~mask;	/* The caller updates the end field, we don't.  */}/* * A driver is enabling the device.  We make sure that all the appropriate * bits are set to allow the device to operate as the driver is expecting. * We enable the port IO and memory IO bits if the device has any BARs of * that type, and we enable the PERR and SERR bits unconditionally. * Drivers that do not need parity (eg graphics and possibly networking) * can clear these bits if they want. */int pcibios_enable_device(struct pci_dev *dev, int mask){	u16 cmd;	int idx;	pci_read_config_word(dev, PCI_COMMAND, &cmd);	for (idx = 0; idx < DEVICE_COUNT_RESOURCE; idx++) {		struct resource *r = &dev->resource[idx];		/* only setup requested resources */		if (!(mask & (1<<idx)))			continue;		if (r->flags & IORESOURCE_IO)			cmd |= PCI_COMMAND_IO;		if (r->flags & IORESOURCE_MEM)			cmd |= PCI_COMMAND_MEMORY;	}	cmd |= (PCI_COMMAND_SERR | PCI_COMMAND_PARITY);#if 0	/* If bridge/bus controller has FBB enabled, child must too. */	if (dev->bus->bridge_ctl & PCI_BRIDGE_CTL_FAST_BACK)		cmd |= PCI_COMMAND_FAST_BACK;#endif	DBGC("PCIBIOS: Enabling device %s cmd 0x%04x\n", pci_name(dev), cmd);	pci_write_config_word(dev, PCI_COMMAND, cmd);	return 0;}/* PA-RISC specific */void pcibios_register_hba(struct pci_hba_data *hba){	if (pci_hba_count >= PCI_HBA_MAX) {		printk(KERN_ERR "PCI: Too many Host Bus Adapters\n");		return;	}	parisc_pci_hba[pci_hba_count] = hba;	hba->hba_num = pci_hba_count++;}subsys_initcall(pcibios_init);

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费视频最近日韩| 国内精品久久久久影院色| 久久精品国产一区二区三| 丁香一区二区三区| 日韩一区二区在线观看视频| 亚洲视频免费观看| 国产精品亚洲视频| 6080国产精品一区二区| 国产精品动漫网站| 久久99精品国产.久久久久| 在线观看91视频| **网站欧美大片在线观看| 美女精品自拍一二三四| 欧美精品tushy高清| 综合精品久久久| 高清视频一区二区| 久久免费午夜影院| 亚洲成人免费视| 国产sm精品调教视频网站| 欧美大胆一级视频| 奇米色一区二区| 欧美日韩国产免费一区二区| 亚洲久本草在线中文字幕| 国产91丝袜在线18| 亚洲国产高清不卡| 国内外精品视频| 欧美人狂配大交3d怪物一区| 一区二区三区四区亚洲| 色婷婷精品久久二区二区蜜臂av| 精品在线一区二区| 亚洲福利视频三区| 欧美中文字幕一区二区三区亚洲| 国产精品久久久久aaaa樱花| 成人美女在线观看| 中文字幕欧美日本乱码一线二线| 国产高清精品久久久久| 久久美女艺术照精彩视频福利播放| 日韩福利视频网| 欧美大片国产精品| 国产麻豆精品一区二区| 亚洲国产精华液网站w| 不卡高清视频专区| 亚洲另类在线视频| 欧美日韩在线播放一区| 视频一区在线视频| 日韩一卡二卡三卡国产欧美| 国产做a爰片久久毛片| 国产无遮挡一区二区三区毛片日本| 国产69精品久久久久777| 日本一区二区三区四区| 色吊一区二区三区| 午夜欧美在线一二页| 欧美一区二区福利视频| 久久66热偷产精品| 欧美国产日韩亚洲一区| 在线观看免费亚洲| 美女视频免费一区| 国产精品久久网站| 在线观看欧美黄色| 九九精品一区二区| 日韩理论片网站| 日韩欧美国产一二三区| 国产高清在线观看免费不卡| 亚洲欧美一区二区三区孕妇| 欧美综合视频在线观看| 老司机精品视频线观看86| 国产精品欧美一级免费| 欧美日韩在线电影| 国产成人av福利| 亚洲成人自拍网| 国产精品入口麻豆原神| 欧美午夜精品一区| 国产伦精品一区二区三区免费| 亚洲人成7777| 日韩片之四级片| 99精品国产99久久久久久白柏| 天堂成人国产精品一区| 中文字幕第一区第二区| 欧美蜜桃一区二区三区| 国产91在线|亚洲| 午夜电影一区二区三区| 中文字幕第一区综合| 欧美高清性hdvideosex| 风流少妇一区二区| 男女性色大片免费观看一区二区 | 国产综合色精品一区二区三区| 亚洲欧洲色图综合| www精品美女久久久tv| 欧美三区在线观看| 成人国产一区二区三区精品| 九一九一国产精品| 午夜精品久久久久久不卡8050| 国产精品毛片久久久久久久| 欧美www视频| 欧美日本乱大交xxxxx| 91在线精品一区二区| 久99久精品视频免费观看| 午夜在线成人av| 亚洲男人的天堂一区二区| 国产欧美一区视频| 精品成人在线观看| 日韩欧美在线影院| 欧美一区二区三区日韩视频| 欧美视频精品在线观看| 91碰在线视频| 91天堂素人约啪| 成人综合婷婷国产精品久久免费| 国产综合一区二区| 国产一区二区三区久久悠悠色av| 蜜臀av一区二区三区| 午夜精品一区在线观看| 亚洲国产精品影院| 亚洲综合另类小说| 亚洲午夜久久久久久久久电影网 | 日韩限制级电影在线观看| 欧美色精品在线视频| 欧洲一区在线电影| 欧美日韩一区二区在线观看视频| 日本高清不卡视频| 日本韩国欧美国产| 欧美日韩亚洲综合一区| 欧美性一区二区| 欧美日韩美女一区二区| 欧美日韩精品免费观看视频| 欧美精品亚洲二区| 欧美成人video| 2023国产一二三区日本精品2022| 国产亚洲女人久久久久毛片| 中文字幕av一区 二区| 国产精品午夜春色av| **性色生活片久久毛片| 一区二区三区四区不卡视频| 天堂精品中文字幕在线| 狠狠狠色丁香婷婷综合激情 | 久久免费午夜影院| 亚洲国产精品激情在线观看 | 久久久久久电影| 国产亚洲一区二区三区在线观看| 亚洲国产精品国自产拍av| 一区二区在线免费观看| 日韩电影免费在线| 国产精品小仙女| 欧美影院精品一区| 26uuu欧美日本| 欧美国产视频在线| 亚洲国产精品久久久久婷婷884| 无码av免费一区二区三区试看| 精品伊人久久久久7777人| 成人av免费在线| 欧美精品v日韩精品v韩国精品v| 久久亚洲综合色| 亚洲精品高清在线观看| 麻豆专区一区二区三区四区五区| av在线播放一区二区三区| 欧美二区三区的天堂| 欧美国产日韩在线观看| 日韩中文字幕不卡| 国产91精品欧美| 欧美婷婷六月丁香综合色| 精品日韩欧美在线| 亚洲欧美激情小说另类| 国内精品久久久久影院薰衣草| 91麻豆国产福利精品| 日韩欧美一级在线播放| 一区二区三区丝袜| 成人丝袜18视频在线观看| 日韩欧美中文字幕公布| 亚洲精品视频免费看| 国产乱子伦视频一区二区三区 | 色综合久久综合中文综合网| 日韩视频在线你懂得| 亚洲婷婷在线视频| 国产在线一区二区| 欧美日韩和欧美的一区二区| 国产精品久久久久天堂| 精品伊人久久久久7777人| 欧美日韩中文字幕一区二区| 成人欧美一区二区三区黑人麻豆| 久久精品国产77777蜜臀| 欧美午夜电影网| 亚洲精品菠萝久久久久久久| 国产精品一区二区在线观看不卡| 91精品国产综合久久国产大片| 自拍偷拍欧美激情| 色综合久久综合中文综合网| 国产亲近乱来精品视频| 国产乱人伦偷精品视频不卡 | 国产黑丝在线一区二区三区| 精品欧美一区二区三区精品久久| 亚洲一区二区精品久久av| 91在线高清观看| 1区2区3区欧美| 99久久精品国产网站| 中文字幕中文字幕一区二区| 成人晚上爱看视频| 亚洲国产精品二十页| 成人一区在线观看| 国产精品每日更新| 91在线视频观看| 亚洲三级电影全部在线观看高清|