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

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

?? iseries_irq.c

?? 該文件是rt_linux
?? C
字號:
/************************************************************************//* This module supports the iSeries PCI bus interrupt handling          *//* Copyright (C) 20yy  <Robert L Holtorf> <IBM Corp>                    *//*                                                                      *//* 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 program is distributed in the hope that it will be useful,      */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of       *//* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *//* GNU General Public License for more details.                         *//*                                                                      *//* 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.,                                      */ /* 59 Temple Place, Suite 330,                                          */ /* Boston, MA  02111-1307  USA                                          *//************************************************************************//* Change Activity:                                                     *//*   Created, December 13, 2000 by Wayne Holm                           */ /* End Change Activity                                                  *//************************************************************************/#include <linux/pci.h>#include <linux/init.h>#include <linux/threads.h>#include <linux/smp.h>#include <linux/param.h>#include <linux/string.h>#include <linux/bootmem.h>#include <linux/blk.h>#include <linux/ide.h>#include <linux/irq.h>#include <linux/spinlock.h>#include <asm/ppcdebug.h>#include <asm/iSeries/HvCallPci.h>#include <asm/iSeries/HvCallXm.h>#include <asm/iSeries/iSeries_irq.h>#include <asm/iSeries/XmPciLpEvent.h>hw_irq_controller iSeries_IRQ_handler = {	"iSeries irq controller",	iSeries_startup_IRQ,	/* startup */	iSeries_shutdown_IRQ,	/* shutdown */	iSeries_enable_IRQ,	/* enable */	iSeries_disable_IRQ,	/* disable */	NULL,			/* ack  */	iSeries_end_IRQ,	/* end  */	NULL			/* set_affinity */};struct iSeries_irqEntry {	u32 dsa;	struct iSeries_irqEntry* next;};struct iSeries_irqAnchor {	u8  valid : 1;	u8  reserved : 7;	u16  entryCount;	struct iSeries_irqEntry* head;};struct iSeries_irqAnchor iSeries_irqMap[NR_IRQS];void iSeries_init_irqMap(int irq);/*  This is called by init_IRQ.  set in ppc_md.init_IRQ by iSeries_setup.c */void __init iSeries_init_IRQ(void){	int i;	for (i = 0; i < NR_IRQS; i++) {		irq_desc[i].handler = &iSeries_IRQ_handler;		irq_desc[i].status = 0;		irq_desc[i].status |= IRQ_DISABLED;		irq_desc[i].depth = 1;		iSeries_init_irqMap(i);	}	/* Register PCI event handler and open an event path */	PPCDBG(PPCDBG_BUSWALK,"Register PCI event handler and open an event path\n");	XmPciLpEvent_init();	return;}/********************************************************************** *  Called by iSeries_init_IRQ  * Prevent IRQs 0 and 255 from being used.  IRQ 0 appears in * uninitialized devices.  IRQ 255 appears in the PCI interrupt * line register if a PCI error occurs, *********************************************************************/void __init iSeries_init_irqMap(int irq){	iSeries_irqMap[irq].valid = (irq == 0 || irq == 255)? 0 : 1;	iSeries_irqMap[irq].entryCount = 0;	iSeries_irqMap[irq].head = NULL;}/* This is called out of iSeries_scan_slot to allocate an IRQ for an EADS slot *//* It calculates the irq value for the slot.                                   */int __init iSeries_allocate_IRQ(HvBusNumber busNumber, HvSubBusNumber subBusNumber, HvAgentId deviceId){	u8 idsel = (deviceId >> 4);	u8 function = deviceId & 0x0F;	int irq = ((((busNumber-1)*16 + (idsel-1)*8 + function)*9/8) % 253) + 2;	return irq;}/* This is called out of iSeries_scan_slot to assign the EADS slot to its IRQ number */int __init iSeries_assign_IRQ(int irq, HvBusNumber busNumber, HvSubBusNumber subBusNumber, HvAgentId deviceId){	int rc;	u32 dsa = (busNumber << 16) | (subBusNumber << 8) | deviceId;	struct iSeries_irqEntry* newEntry;	unsigned long flags;	if (irq < 0 || irq >= NR_IRQS) {		return -1;	}	newEntry = kmalloc(sizeof(*newEntry), GFP_KERNEL);	if (newEntry == NULL) {		return -ENOMEM;	}	newEntry->dsa  = dsa;	newEntry->next = NULL;	/********************************************************************	* Probably not necessary to lock the irq since allocation is only 	* done during buswalk, but it should not hurt anything except a 	* little performance to be smp safe.	*******************************************************************/	spin_lock_irqsave(&irq_desc[irq].lock, flags);	if (iSeries_irqMap[irq].valid) {		/* Push the new element onto the irq stack */		newEntry->next = iSeries_irqMap[irq].head;		iSeries_irqMap[irq].head = newEntry;		++iSeries_irqMap[irq].entryCount;		rc = 0;		PPCDBG(PPCDBG_BUSWALK,"iSeries_assign_IRQ   0x%04X.%02X.%02X = 0x%04X\n",busNumber, subBusNumber, deviceId, irq);	}	else {		printk("PCI: Something is wrong with the iSeries_irqMap. \n");		kfree(newEntry);		rc = -1;    }	spin_unlock_irqrestore(&irq_desc[irq].lock, flags);	return rc;}/* This is called by iSeries_activate_IRQs */unsigned int iSeries_startup_IRQ(unsigned int irq){	struct iSeries_irqEntry* entry;	u32 bus, subBus, deviceId, function, mask;	for(entry=iSeries_irqMap[irq].head; entry!=NULL; entry=entry->next) {		bus      = (entry->dsa >> 16) & 0xFFFF;		subBus   = (entry->dsa >> 8) & 0xFF;		deviceId = entry->dsa & 0xFF;		function = deviceId & 0x0F;		/* Link the IRQ number to the bridge */		HvCallXm_connectBusUnit(bus, subBus, deviceId, irq);        	/* Unmask bridge interrupts in the FISR */		mask = 0x01010000 << function;		HvCallPci_unmaskFisr(bus, subBus, deviceId, mask);		PPCDBG(PPCDBG_BUSWALK,"iSeries_activate_IRQ 0x%02X.%02X.%02X  Irq:0x%02X\n",bus,subBus,deviceId,irq);	}	return 0;}/* This is called out of iSeries_fixup to activate interrupt * generation for usable slots                              */void __init iSeries_activate_IRQs(){	int irq;	unsigned long flags;	for (irq=0; irq < NR_IRQS; irq++) {		spin_lock_irqsave(&irq_desc[irq].lock, flags);		irq_desc[irq].handler->startup(irq);		spin_unlock_irqrestore(&irq_desc[irq].lock, flags);    	}}/*  this is not called anywhere currently */void iSeries_shutdown_IRQ(unsigned int irq) {	struct iSeries_irqEntry* entry;	u32 bus, subBus, deviceId, function, mask;	/* irq should be locked by the caller */	for (entry=iSeries_irqMap[irq].head; entry; entry=entry->next) {		bus = (entry->dsa >> 16) & 0xFFFF;		subBus = (entry->dsa >> 8) & 0xFF;		deviceId = entry->dsa & 0xFF;		function = deviceId & 0x0F;		/* Invalidate the IRQ number in the bridge */		HvCallXm_connectBusUnit(bus, subBus, deviceId, 0);		/* Mask bridge interrupts in the FISR */		mask = 0x01010000 << function;		HvCallPci_maskFisr(bus, subBus, deviceId, mask);	}}/*********************************************************** * This will be called by device drivers (via disable_IRQ) * to disable INTA in the bridge interrupt status register. ***********************************************************/void iSeries_disable_IRQ(unsigned int irq){	struct iSeries_irqEntry* entry;	u32 bus, subBus, deviceId, mask;	/* The IRQ has already been locked by the caller */	for (entry=iSeries_irqMap[irq].head; entry; entry=entry->next) {		bus      = (entry->dsa >> 16) & 0xFFFF;		subBus   = (entry->dsa >> 8) & 0xFF;		deviceId = entry->dsa & 0xFF;		/* Mask secondary INTA   */		mask = 0x80000000;		HvCallPci_maskInterrupts(bus, subBus, deviceId, mask);		PPCDBG(PPCDBG_BUSWALK,"iSeries_disable_IRQ 0x%02X.%02X.%02X 0x%04X\n",bus,subBus,deviceId,irq);    	}}/*********************************************************** * This will be called by device drivers (via enable_IRQ) * to enable INTA in the bridge interrupt status register. ***********************************************************/void iSeries_enable_IRQ(unsigned int irq){	struct iSeries_irqEntry* entry;	u32 bus, subBus, deviceId, mask;	/* The IRQ has already been locked by the caller */	for (entry=iSeries_irqMap[irq].head; entry; entry=entry->next) {		bus      = (entry->dsa >> 16) & 0xFFFF;		subBus   = (entry->dsa >> 8) & 0xFF;		deviceId = entry->dsa & 0xFF;		/* Unmask secondary INTA */		mask = 0x80000000;		HvCallPci_unmaskInterrupts(bus, subBus, deviceId, mask);		PPCDBG(PPCDBG_BUSWALK,"iSeries_enable_IRQ 0x%02X.%02X.%02X 0x%04X\n",bus,subBus,deviceId,irq);	}}/* Need to define this so ppc_irq_dispatch_handler will NOT call   enable_IRQ at the end of interrupt handling.  However, this   does nothing because there is not enough information provided   to do the EOI HvCall.  This is done by XmPciLpEvent.c */void iSeries_end_IRQ(unsigned int irq){}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩在线一区二区| 国产欧美一区二区精品婷婷 | 欧美一级片在线看| 日韩 欧美一区二区三区| 欧美疯狂做受xxxx富婆| 麻豆专区一区二区三区四区五区| 日韩美女视频在线| 国产精品99久| 亚洲国产高清在线观看视频| gogogo免费视频观看亚洲一| 亚洲啪啪综合av一区二区三区| 在线观看国产一区二区| 天使萌一区二区三区免费观看| 日韩欧美激情四射| 高清在线不卡av| 亚洲综合男人的天堂| 日韩一级完整毛片| 丰满亚洲少妇av| 亚洲高清在线精品| 久久久91精品国产一区二区精品| 成人一区在线看| 亚洲成人资源在线| 337p日本欧洲亚洲大胆精品| av电影在线观看一区| 亚洲电影一区二区| 26uuu亚洲综合色| 在线观看av一区| 久久国产精品区| 亚洲综合无码一区二区| 欧美精品一区二区三区在线播放 | 中文字幕免费不卡| 欧美性生活一区| 国产一区二区三区| 亚洲电影欧美电影有声小说| 久久久久99精品国产片| 欧美亚洲免费在线一区| 国产盗摄一区二区| 免费不卡在线视频| 亚洲精品国产a久久久久久| 日韩午夜电影在线观看| 99久久婷婷国产精品综合| 日韩**一区毛片| 一区二区日韩电影| 国产三级精品在线| 欧美一区二区三区播放老司机| 国产不卡视频一区| 轻轻草成人在线| 亚洲已满18点击进入久久| 国产日韩一级二级三级| 日韩一区二区三区三四区视频在线观看| 成人一区二区三区视频在线观看 | 亚洲高清免费观看高清完整版在线观看 | 亚洲一区二区三区国产| 国产午夜精品久久久久久久| 欧美伦理视频网站| 91福利视频网站| 成人福利视频在线看| 国内精品不卡在线| 久久99九九99精品| 亚洲成人av一区二区| 亚洲人成7777| 日韩毛片一二三区| 国产人成一区二区三区影院| 日韩欧美国产不卡| 91精品国产91综合久久蜜臀| 欧美三级电影在线看| 在线观看亚洲一区| 在线观看国产精品网站| 色94色欧美sute亚洲线路一ni| 国产成人一级电影| 国产麻豆91精品| 国产又黄又大久久| 国产成人综合在线| 国产高清不卡一区| 成人精品视频一区二区三区| 国产69精品久久久久毛片| 国产精品 日产精品 欧美精品| 黄色小说综合网站| 国产乱码精品一区二区三| 激情图片小说一区| 国产精品一区不卡| 成人黄色片在线观看| av不卡在线观看| 色悠悠久久综合| 在线一区二区三区四区五区 | 麻豆极品一区二区三区| 免费在线观看精品| 蓝色福利精品导航| 久久国产免费看| 国产成人日日夜夜| 成人高清av在线| 91激情五月电影| 欧美一区二区视频在线观看2020 | 天堂成人国产精品一区| 免费视频一区二区| 国产一区二区在线影院| 国产高清成人在线| 91片黄在线观看| 欧美日韩午夜在线视频| 日韩欧美一级二级三级久久久| 久久亚洲免费视频| 国产精品入口麻豆九色| 自拍偷拍国产精品| 亚洲国产成人av网| 黑人精品欧美一区二区蜜桃| 国产99久久久国产精品免费看| 大陆成人av片| 欧美三级在线视频| 精品久久五月天| 亚洲摸摸操操av| 日韩成人伦理电影在线观看| 国产乱理伦片在线观看夜一区| 91在线视频观看| 欧美一级一区二区| 国产精品久久99| 日韩经典一区二区| 成人小视频在线| 欧美日韩国产影片| 国产无人区一区二区三区| 亚洲另类春色校园小说| 久草在线在线精品观看| 99久久99久久精品免费看蜜桃| 5858s免费视频成人| 亚洲国产激情av| 人人爽香蕉精品| 99久久99久久久精品齐齐| 欧美mv日韩mv国产网站| 一区二区成人在线视频| 精彩视频一区二区三区| 在线视频综合导航| 久久精品亚洲精品国产欧美 | 久久婷婷国产综合精品青草| 一区二区三区四区高清精品免费观看 | 亚洲精品中文字幕在线观看| 韩国av一区二区三区四区 | 9i在线看片成人免费| 欧美二区在线观看| 日韩毛片视频在线看| 国产伦精品一区二区三区免费迷| 欧美精选一区二区| 亚洲精品一二三| 成人少妇影院yyyy| 久久综合视频网| 亚洲va天堂va国产va久| 91麻豆免费观看| 国产精品午夜在线观看| 精品一区二区三区在线观看国产 | 久久精品国产**网站演员| 色哟哟欧美精品| 国产精品久久综合| 国产成人在线网站| 精品国产亚洲一区二区三区在线观看| 亚洲国产美女搞黄色| 色综合中文字幕国产 | 91啪亚洲精品| 国产精品久久久久久久久久久免费看| 韩国欧美国产一区| 日韩欧美aaaaaa| 蜜臀av一区二区在线观看| 欧美精品 日韩| 天天综合色天天综合色h| 欧美三电影在线| 亚洲午夜久久久久久久久电影网| 91原创在线视频| 亚洲欧美一区二区三区孕妇| 成人黄色软件下载| 国产精品久久久久久久久搜平片 | 午夜精品久久久久影视| 在线免费av一区| 一区二区三区四区乱视频| 91美女蜜桃在线| 亚洲一区二区成人在线观看| 91成人在线观看喷潮| 亚洲va欧美va人人爽午夜| 欧美久久久久免费| 免费高清在线视频一区·| 精品久久免费看| 国产宾馆实践打屁股91| 1区2区3区精品视频| 91免费小视频| 亚洲成人av免费| 欧美成人a∨高清免费观看| 国产精品一区二区黑丝| 中文字幕一区二区三区色视频| 色综合色综合色综合色综合色综合| 亚洲精品免费在线| 6080亚洲精品一区二区| 久久99国产精品久久| 国产丝袜美腿一区二区三区| 99久精品国产| 视频一区二区不卡| 337p粉嫩大胆噜噜噜噜噜91av| 成人一区二区三区在线观看| 亚洲精品老司机| 欧美一级片在线观看| www.性欧美| 天天做天天摸天天爽国产一区 | 美女久久久精品| 久久久国际精品| 色激情天天射综合网|