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

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

?? atlas_int.c

?? 根據添加了fs2410平臺的arch目錄
?? C
字號:
/* * Carsten Langgaard, carstenl@mips.com * Copyright (C) 2000 MIPS Technologies, Inc.  All rights reserved. * * ######################################################################## * *  This program is free software; you can distribute it and/or modify it *  under the terms of the GNU General Public License (Version 2) as *  published by the Free Software Foundation. * *  This program is distributed in the hope 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. * * ######################################################################## * * Routines for generic manipulation of the interrupts found on the MIPS  * Atlas board. * */#include <linux/config.h>#include <linux/init.h>#include <linux/sched.h>#include <linux/slab.h>#include <linux/interrupt.h>#include <linux/kernel_stat.h>#include <asm/irq.h>#include <asm/mips-boards/atlas.h>#include <asm/mips-boards/atlasint.h>#ifdef CONFIG_REMOTE_DEBUG#include <asm/gdb-stub.h>#endifstruct atlas_ictrl_regs *atlas_hw0_icregs	= (struct atlas_ictrl_regs *)ATLAS_ICTRL_REGS_BASE;extern asmlinkage void mipsIRQ(void);extern void do_IRQ(int irq, struct pt_regs *regs);unsigned long spurious_count = 0;irq_desc_t irq_desc[NR_IRQS];#if 0#define DEBUG_INT(x...) printk(x)#else#define DEBUG_INT(x...)#endifvoid disable_atlas_irq(unsigned int irq_nr){	atlas_hw0_icregs->intrsten = (1 << irq_nr);}void enable_atlas_irq(unsigned int irq_nr){	atlas_hw0_icregs->intseten = (1 << irq_nr);}static unsigned int startup_atlas_irq(unsigned int irq){	enable_atlas_irq(irq);	return 0; /* never anything pending */}#define shutdown_atlas_irq	disable_atlas_irq#define mask_and_ack_atlas_irq disable_atlas_irqstatic void end_atlas_irq(unsigned int irq){	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))		enable_atlas_irq(irq);}static struct hw_interrupt_type atlas_irq_type = {	"Atlas",	startup_atlas_irq,	shutdown_atlas_irq,	enable_atlas_irq,	disable_atlas_irq,	mask_and_ack_atlas_irq,	end_atlas_irq,	NULL};int get_irq_list(char *buf){	int i, len = 0;	int num = 0;	struct irqaction *action;	for (i = 0; i < ATLASINT_END; i++, num++) {		action = irq_desc[i].action;		if (!action) 			continue;		len += sprintf(buf+len, "%2d: %8d %c %s",			num, kstat.irqs[0][num],			(action->flags & SA_INTERRUPT) ? '+' : ' ',			action->name);		for (action=action->next; action; action = action->next) {			len += sprintf(buf+len, ",%s %s",				(action->flags & SA_INTERRUPT) ? " +" : "",				action->name);		}		len += sprintf(buf+len, " [hw0]\n");	}	return len;}int request_irq(unsigned int irq, 		void (*handler)(int, void *, struct pt_regs *),		unsigned long irqflags, 		const char * devname,		void *dev_id){          struct irqaction *action;	DEBUG_INT("request_irq: irq=%d, devname = %s\n", irq, devname);        if (irq >= ATLASINT_END)	        return -EINVAL;	if (!handler)	        return -EINVAL;	action = (struct irqaction *)kmalloc(sizeof(struct irqaction), GFP_KERNEL);	if(!action)	        return -ENOMEM;	action->handler = handler;	action->flags = irqflags;	action->mask = 0;	action->name = devname;	action->dev_id = dev_id;	action->next = 0;	irq_desc[irq].action = action;	enable_atlas_irq(irq);	return 0;}void free_irq(unsigned int irq, void *dev_id){	struct irqaction *action;	if (irq >= ATLASINT_END) {		printk("Trying to free IRQ%d\n",irq);		return;	}	action = irq_desc[irq].action;	irq_desc[irq].action = NULL;	disable_atlas_irq(irq);	kfree(action);}static inline int ls1bit32(unsigned int x){	int b = 31, s;	s = 16; if (x << 16 == 0) s = 0; b -= s; x <<= s;	s =  8; if (x <<  8 == 0) s = 0; b -= s; x <<= s;	s =  4; if (x <<  4 == 0) s = 0; b -= s; x <<= s;	s =  2; if (x <<  2 == 0) s = 0; b -= s; x <<= s;	s =  1; if (x <<  1 == 0) s = 0; b -= s;	return b;}void atlas_hw0_irqdispatch(struct pt_regs *regs){	struct irqaction *action;	unsigned long int_status;	int irq, cpu = smp_processor_id();	int_status = atlas_hw0_icregs->intstatus; 	/* if int_status == 0, then the interrupt has already been cleared */	if (int_status == 0)		return;	irq = ls1bit32(int_status);	action = irq_desc[irq].action;	DEBUG_INT("atlas_hw0_irqdispatch: irq=%d\n", irq);	/* if action == NULL, then we don't have a handler for the irq */	if ( action == NULL ) {	        printk("No handler for hw0 irq: %i\n", irq);		spurious_count++;		return;	}	irq_enter(cpu, irq);	kstat.irqs[0][irq]++;	action->handler(irq, action->dev_id, regs);	irq_exit(cpu, irq);	return;		}unsigned long probe_irq_on (void){	return 0;}int probe_irq_off (unsigned long irqs){	return 0;}#ifdef CONFIG_REMOTE_DEBUGextern void breakpoint(void);extern int remote_debug;#endifvoid __init init_IRQ(void){	int i;	/* 	 * Mask out all interrupt by writing "1" to all bit position in 	 * the interrupt reset reg. 	 */	atlas_hw0_icregs->intrsten = 0xffffffff;    	/* Now safe to set the exception vector. */	set_except_vector(0, mipsIRQ);	for (i = 0; i <= ATLASINT_END; i++) {		irq_desc[i].status	= IRQ_DISABLED;		irq_desc[i].action	= 0;		irq_desc[i].depth	= 1;		irq_desc[i].handler	= &atlas_irq_type;	}#ifdef CONFIG_REMOTE_DEBUG	if (remote_debug) {		set_debug_traps();		breakpoint();	}#endif}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区蜜桃网| 亚洲国产va精品久久久不卡综合| 精品久久久久久综合日本欧美 | 久久久美女毛片| 色综合久久中文综合久久97| 极品少妇xxxx精品少妇| 青青草国产精品97视觉盛宴| 亚洲国产精品久久一线不卡| 日本美女一区二区| 激情综合五月婷婷| 在线免费观看日本欧美| 午夜精品在线视频一区| 亚洲色图19p| 中文字幕亚洲一区二区av在线 | 精品噜噜噜噜久久久久久久久试看 | 91精品黄色片免费大全| 欧美日本免费一区二区三区| 欧美精品黑人性xxxx| 日韩欧美一区二区视频| 久久久久久久久久久久电影| 国产精品网曝门| 一区二区三区中文在线| 日韩激情视频在线观看| 激情深爱一区二区| 国产不卡免费视频| 91麻豆免费看片| 欧美精品久久久久久久多人混战 | 久久99精品久久只有精品| 久久精品国产**网站演员| 国产精品一区二区久久精品爱涩| 成人a区在线观看| 一本色道久久综合亚洲aⅴ蜜桃| 欧美少妇bbb| 日韩欧美在线影院| 中文字幕一区视频| 日韩电影在线免费看| 风间由美性色一区二区三区| 在线观看中文字幕不卡| 欧美精品一区二区不卡| 亚洲精品一卡二卡| 精品一区二区在线视频| 92精品国产成人观看免费| 欧美一区二区三区视频免费 | 久久精品视频一区二区三区| 悠悠色在线精品| 国产一区二区在线视频| 色综合天天性综合| 久久先锋影音av鲁色资源网| 亚洲一区在线视频| 国产一区二区福利| 欧美高清www午色夜在线视频| 国产偷v国产偷v亚洲高清| 亚洲成人精品在线观看| 色88888久久久久久影院按摩| 欧美r级在线观看| 亚洲一区二区在线视频| 成人性色生活片免费看爆迷你毛片| 欧美日韩国产一级| 亚洲日本va午夜在线电影| 国内不卡的二区三区中文字幕| 色妹子一区二区| 日本一区二区三区四区| 久久er99热精品一区二区| 欧美日韩亚州综合| 亚洲精品久久久蜜桃| 成人黄色大片在线观看| 久久美女高清视频| 精品亚洲成a人| 欧美电影免费观看完整版| 一级精品视频在线观看宜春院| 丁香六月久久综合狠狠色| 久久综合色播五月| 精品写真视频在线观看| 欧美xxxx老人做受| 久久99精品国产麻豆婷婷| 欧美一区二区成人6969| 肉色丝袜一区二区| 欧美高清一级片在线| 石原莉奈在线亚洲二区| 欧美性生活久久| 亚洲观看高清完整版在线观看| 色婷婷av一区二区三区大白胸 | 秋霞电影一区二区| 欧美一区二区三区四区久久| 老司机精品视频在线| 精品免费日韩av| 国产精品正在播放| 国产精品蜜臀av| 色先锋久久av资源部| 亚洲一线二线三线久久久| 制服.丝袜.亚洲.另类.中文| 免费久久99精品国产| 日韩视频永久免费| 国产乱人伦偷精品视频免下载 | 日韩视频在线永久播放| 国产自产高清不卡| 亚洲国产成人一区二区三区| 97久久精品人人爽人人爽蜜臀| 亚洲婷婷综合久久一本伊一区 | 日韩一级高清毛片| 国产一区美女在线| 综合在线观看色| 欧美午夜精品一区| 美脚の诱脚舐め脚责91 | 一区二区三区四区亚洲| 欧美日韩的一区二区| 韩国三级中文字幕hd久久精品| 中文字幕乱码日本亚洲一区二区| 色综合久久天天| 粉嫩13p一区二区三区| 亚洲美女精品一区| 91精品国产综合久久久久久| 国产一区二区三区久久久| 自拍偷拍国产亚洲| 欧美剧情电影在线观看完整版免费励志电影| 欧美a级一区二区| 亚洲国产成人自拍| 日韩一区二区电影在线| 91蝌蚪porny| 狠狠狠色丁香婷婷综合久久五月| 亚洲欧洲成人自拍| 精品剧情v国产在线观看在线| 97久久超碰精品国产| 老司机午夜精品| 夜夜嗨av一区二区三区四季av| 欧美tk—视频vk| 欧美欧美欧美欧美| 色综合咪咪久久| 成人激情开心网| 精品一区二区三区在线观看 | 国产主播一区二区三区| 亚洲精品国产高清久久伦理二区| 日韩女优电影在线观看| 欧美日韩精品久久久| 99久久777色| 成熟亚洲日本毛茸茸凸凹| 日本欧美大码aⅴ在线播放| 亚洲欧洲99久久| 日本一区二区三区视频视频| 精品国产乱码久久久久久牛牛| 欧美在线视频你懂得| 99久久99久久精品国产片果冻| 国产成人在线视频网址| 黄色日韩网站视频| 久久国产视频网| 美女在线视频一区| 久久国产福利国产秒拍| 日韩专区一卡二卡| 日韩av成人高清| 中文字幕永久在线不卡| www久久精品| 亚洲色大成网站www久久九九| 久久亚洲私人国产精品va媚药| 欧洲一区二区三区免费视频| 91免费看`日韩一区二区| 国产一区二区免费在线| 日本成人在线看| 欧美日韩国产一级| 日韩精品专区在线影院重磅| 日本韩国一区二区| av一区二区久久| 国内久久婷婷综合| 国产精品一级二级三级| 麻豆成人91精品二区三区| 亚洲丰满少妇videoshd| 国产情人综合久久777777| 国产精品色在线观看| 精品成a人在线观看| 日韩午夜激情视频| 欧美精品一二三四| 亚洲精品一线二线三线| 日韩欧美高清在线| 日韩欧美国产精品| 中文字幕不卡在线观看| 国产片一区二区三区| 国产欧美精品一区二区色综合朱莉| 91麻豆精品国产无毒不卡在线观看| 日韩三级高清在线| 国产亚洲一区二区在线观看| 精品999久久久| 久久久久久久久久久久久女国产乱 | 色综合天天天天做夜夜夜夜做| 95精品视频在线| 欧美一级二级三级蜜桃| 欧美无人高清视频在线观看| 日韩欧美电影一二三| 久久综合九色综合97婷婷| 国产精品天天看| 亚洲人成影院在线观看| 亚洲一区二区在线视频| 国产一区美女在线| 成a人片亚洲日本久久| 色噜噜狠狠成人中文综合| 91行情网站电视在线观看高清版| 日韩一级大片在线观看| 欧美激情一区二区三区不卡| 亚洲精选一二三| 日韩制服丝袜先锋影音| 成人免费视频视频| 欧美日韩亚洲综合|