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

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

?? gt_irq.c

?? 該文件是rt_linux
?? C
字號:
/* * * Copyright 2001 MontaVista Software Inc. * Author: jsun@mvista.com or jsun@junsun.net * * arch/mips/gt64120/common/gt_irq.c *     Interrupt routines for gt64120.  Currently it only handles timer irq. * * 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. */#include <linux/module.h>#include <linux/interrupt.h>#include <linux/kernel.h>#include <asm/ptrace.h>#include <linux/config.h>#include <linux/sched.h>#include <linux/kernel_stat.h>#include <asm/io.h>#include <asm/gt64120/gt64120.h>/* * These are interrupt handlers for the GT on-chip interrupts.  They * all come in to the MIPS on a single interrupt line, and have to * be handled and ack'ed differently than other MIPS interrupts. */#if CURRENTLY_UNUSEDstruct tq_struct irq_handlers[MAX_CAUSE_REGS][MAX_CAUSE_REG_WIDTH];void hook_irq_handler(int int_cause, int bit_num, void *isr_ptr);/* * Hooks IRQ handler to the system. When the system is interrupted * the interrupt service routine is called. * * Inputs : * int_cause - The interrupt cause number. In EVB64120 two parameters  *             are declared, INT_CAUSE_MAIN and INT_CAUSE_HIGH.  * bit_num   - Indicates which bit number in the cause register * isr_ptr   - Pointer to the interrupt service routine */void hook_irq_handler(int int_cause, int bit_num, void *isr_ptr){	irq_handlers[int_cause][bit_num].routine = isr_ptr;}/* * Enables the IRQ on Galileo Chip * * Inputs : * int_cause - The interrupt cause number. In EVB64120 two parameters  *             are declared, INT_CAUSE_MAIN and INT_CAUSE_HIGH. * bit_num   - Indicates which bit number in the cause register * * Outputs : * 1 if succesful, 0 if failure */int enable_galileo_irq(int int_cause, int bit_num){	if (int_cause == INT_CAUSE_MAIN)		SET_REG_BITS(CPU_INTERRUPT_MASK_REGISTER, (1 << bit_num));	else if (int_cause == INT_CAUSE_HIGH)		SET_REG_BITS(CPU_HIGH_INTERRUPT_MASK_REGISTER,			     (1 << bit_num));	else		return 0;	return 1;}/* * Disables the IRQ on Galileo Chip * * Inputs : * int_cause - The interrupt cause number. In EVB64120 two parameters  *             are declared, INT_CAUSE_MAIN and INT_CAUSE_HIGH. * bit_num   - Indicates which bit number in the cause register * * Outputs : * 1 if succesful, 0 if failure */int disable_galileo_irq(int int_cause, int bit_num){	if (int_cause == INT_CAUSE_MAIN)		RESET_REG_BITS(CPU_INTERRUPT_MASK_REGISTER,			       (1 << bit_num));	else if (int_cause == INT_CAUSE_HIGH)		RESET_REG_BITS(CPU_HIGH_INTERRUPT_MASK_REGISTER,			       (1 << bit_num));	else		return 0;	return 1;}#endif				/*  UNUSED  *//* * Interrupt handler for interrupts coming from the Galileo chip. * It could be timer interrupt, built in ethernet ports etc... */static void gt64120_irq(int irq, void *dev_id, struct pt_regs *regs){	unsigned int irq_src, int_high_src, irq_src_mask,	    int_high_src_mask;	int handled;	GT_READ(GT_INTRCAUSE_OFS, &irq_src);	GT_READ(GT_INTRMASK_OFS, &irq_src_mask);	GT_READ(GT_HINTRCAUSE_OFS, &int_high_src);	GT_READ(GT_HINTRMASK_OFS, &int_high_src_mask);	irq_src = irq_src & irq_src_mask;	int_high_src = int_high_src & int_high_src_mask;	handled = 0;	/* Execute all interrupt handlers */	/* Check for timer interrupt */	if (irq_src & 0x00000800) {		handled = 1;		irq_src &= ~0x00000800;		//    RESET_REG_BITS (INTERRUPT_CAUSE_REGISTER,BIT8);		do_timer(regs);	}	if (irq_src) {		printk(KERN_INFO		       "Other Galileo interrupt received irq_src %x\n",		       irq_src);#if CURRENTLY_UNUSED		for (count = 0; count < MAX_CAUSE_REG_WIDTH; count++) {			if (irq_src & (1 << count)) {				if (irq_handlers[INT_CAUSE_MAIN][count].				    routine) {					queue_task(&irq_handlers						   [INT_CAUSE_MAIN][count],						   &tq_immediate);					mark_bh(IMMEDIATE_BH);					handled = 1;				}			}		}#endif				/*  UNUSED  */	}	GT_WRITE(GT_INTRCAUSE_OFS, 0);	GT_WRITE(GT_HINTRCAUSE_OFS, 0);#undef GALILEO_I2O#ifdef GALILEO_I2O	/*	 * Future I2O support.  We currently attach I2O interrupt handlers to	 * the Galileo interrupt (int 4) and handle them in do_IRQ.	 */	if (isInBoundDoorBellInterruptSet()) {		printk(KERN_INFO "I2O doorbell interrupt received.\n");		handled = 1;	}	if (isInBoundPostQueueInterruptSet()) {		printk(KERN_INFO "I2O Queue interrupt received.\n");		handled = 1;	}	/*	 * This normally would be outside of the ifdef, but since we're	 * handling I2O outside of this handler, this printk shows up every	 * time we get a valid I2O interrupt.  So turn this off for now.	 */	if (handled == 0) {		if (counter < 50) {			printk("Spurious Galileo interrupt...\n");			counter++;		}	}#endif}/* * Initializes timer using galileo's built in timer. */#ifdef CONFIG_SYSCLK_100#define Sys_clock (100 * 1000000)	// 100 MHz#endif#ifdef CONFIG_SYSCLK_83#define Sys_clock (83.333 * 1000000)	// 83.333 MHz#endif#ifdef CONFIG_SYSCLK_75#define Sys_clock (75 * 1000000)	// 75 MHz#endif/* * This will ignore the standard MIPS timer interrupt handler * that is passed in as *irq (=irq0 in ../kernel/time.c). * We will do our own timer interrupt handling. */void gt64120_time_init(void){	extern irq_desc_t irq_desc[NR_IRQS];	static struct irqaction timer;	/* Disable timer first */	GT_WRITE(GT_TC_CONTROL_OFS, 0);	/* Load timer value for 100 Hz */	GT_WRITE(GT_TC3_OFS, Sys_clock / 100);	/*	 * Create the IRQ structure entry for the timer.  Since we're too early	 * in the boot process to use the "request_irq()" call, we'll hard-code	 * the values to the correct interrupt line.	 */	timer.handler = &gt64120_irq;	timer.flags = SA_SHIRQ | SA_INTERRUPT;	timer.name = "timer";	timer.dev_id = NULL;	timer.next = NULL;	timer.mask = 0;	irq_desc[TIMER].action = &timer;	enable_irq(TIMER);	/* Enable timer ints */	GT_WRITE(GT_TC_CONTROL_OFS, 0xc0);	/* clear Cause register first */	GT_WRITE(GT_INTRCAUSE_OFS, 0x0);	/* Unmask timer int */	GT_WRITE(GT_INTRMASK_OFS, 0x800);	/* Clear High int register */	GT_WRITE(GT_HINTRCAUSE_OFS, 0x0);	/* Mask All interrupts at High cause interrupt */	GT_WRITE(GT_HINTRMASK_OFS, 0x0);}void gt64120_irq_init(void){#if CURRENTLY_UNUSED	int i, j;	/* Reset irq handlers pointers to NULL */	for (i = 0; i < MAX_CAUSE_REGS; i++) {		for (j = 0; j < MAX_CAUSE_REG_WIDTH; j++) {			irq_handlers[i][j].next = NULL;			irq_handlers[i][j].sync = 0;			irq_handlers[i][j].routine = NULL;			irq_handlers[i][j].data = NULL;		}	}#endif}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品videosex极品| 99久久精品免费精品国产| 555www色欧美视频| 一区二区不卡在线播放 | 欧美日韩亚洲综合在线 | 国模娜娜一区二区三区| 精品美女一区二区| 成人妖精视频yjsp地址| 国产精品三级视频| 91国在线观看| 蜜桃av一区二区三区电影| 欧美mv日韩mv国产网站| 成人亚洲一区二区一| 亚洲欧美国产三级| 欧美一卡二卡三卡| 国产精品一区三区| 亚洲综合精品久久| 日韩欧美卡一卡二| 99re免费视频精品全部| 亚洲国产欧美日韩另类综合| 欧美成人精品福利| 99久久精品费精品国产一区二区| 亚洲国产视频在线| 久久久蜜桃精品| 一本大道av伊人久久综合| 日本视频免费一区| 国产精品免费观看视频| 欧美精品第1页| 成人国产精品免费网站| 日本不卡在线视频| 中文字幕一区三区| 日韩欧美成人激情| 91农村精品一区二区在线| 精品一区二区久久| 亚洲一区二区三区中文字幕| 日韩欧美中文字幕制服| 91免费版在线| 国内一区二区视频| 丝袜美腿亚洲一区| 中文字幕一区在线| 久久一区二区视频| 欧美三级日韩在线| 99久久精品一区二区| 欧美撒尿777hd撒尿| 国产成人在线看| 日韩极品在线观看| 一区二区三区在线不卡| 久久亚洲综合色一区二区三区| 精品1区2区3区| 91网站最新网址| 国产传媒日韩欧美成人| 六月婷婷色综合| 午夜私人影院久久久久| 亚洲黄一区二区三区| 国产精品免费av| 久久精品男人的天堂| 日韩你懂的在线观看| 欧美色综合网站| 91麻豆.com| 成人国产精品免费观看| 国产精品888| 国内精品嫩模私拍在线| 日本成人在线网站| 日日夜夜一区二区| 亚洲国产日韩在线一区模特| 亚洲精品中文在线观看| 亚洲欧美在线视频观看| 国产精品午夜免费| 国产欧美中文在线| 亚洲国产精品高清| 国产日韩欧美一区二区三区乱码| 久久你懂得1024| 久久九九国产精品| 久久久国产精品麻豆| 2024国产精品| 亚洲精品在线免费观看视频| 欧美mv日韩mv亚洲| 国产丝袜美腿一区二区三区| 国产午夜精品久久久久久免费视 | 国产精品国产三级国产专播品爱网| 欧美videos大乳护士334| 欧美电影免费观看高清完整版| 欧美一区二区人人喊爽| 精品国精品国产| 久久久午夜电影| 国产欧美日韩在线视频| 中文字幕人成不卡一区| 亚洲区小说区图片区qvod| 一区二区三区影院| 日韩国产精品久久久久久亚洲| 久久精品国产99国产| 极品美女销魂一区二区三区| 亚洲自拍另类综合| 亚洲色图欧美激情| 午夜精品成人在线| 日韩二区三区在线观看| 日韩精品一二三区| 久久精品999| 波多野结衣亚洲| 色综合天天天天做夜夜夜夜做| 99视频有精品| 在线影院国内精品| 欧美一区二区三区在线视频| 欧美精品日日鲁夜夜添| 久久久久久久性| 国产精品人人做人人爽人人添| 中文字幕av一区二区三区| 亚洲三级在线免费观看| 一区二区三区电影在线播| 亚洲一区二区精品3399| 极品少妇一区二区| 成人白浆超碰人人人人| 色综合天天视频在线观看 | 亚洲自拍偷拍av| 日韩国产欧美在线播放| 久久99精品久久久久久国产越南 | 一区二区三区在线视频观看58| 一区二区久久久久久| 美女久久久精品| 成人国产在线观看| 91丝袜高跟美女视频| 日韩欧美中文一区二区| 亚洲国产精品av| 亚洲图片欧美色图| 久久综合综合久久综合| 成人激情av网| 精品国产区一区| 亚洲女人的天堂| 免费在线观看精品| 不卡的av在线| 日韩一级免费观看| 日本一区二区不卡视频| 午夜伦欧美伦电影理论片| 国产一区二区三区精品视频| 色综合视频在线观看| 亚洲精品一区在线观看| 中文字幕日韩一区| 国产成人无遮挡在线视频| 欧美日韩中文国产| 国产欧美久久久精品影院| 午夜激情综合网| 91美女在线观看| 久久影视一区二区| 亚洲男同性视频| 久久爱另类一区二区小说| 国产成人精品一区二区三区四区 | 日韩精品综合一本久道在线视频| 国产精品久久久久久妇女6080| 人人超碰91尤物精品国产| 99久久综合精品| 日韩一区二区电影网| 亚洲chinese男男1069| 99视频一区二区| 久久精品亚洲国产奇米99| 性做久久久久久免费观看欧美| 国产成人h网站| 久久久久久综合| 免费观看日韩电影| 欧美另类videos死尸| 亚洲色图一区二区| 蜜臀av性久久久久蜜臀av麻豆| 色哟哟在线观看一区二区三区| 国产欧美日韩亚州综合| 大白屁股一区二区视频| 精品久久人人做人人爱| 青娱乐精品视频在线| 欧美日韩国产123区| 国产农村妇女精品| 国产一区久久久| 精品蜜桃在线看| 婷婷久久综合九色国产成人| 欧美高清你懂得| 日韩精品一区第一页| 色婷婷精品大在线视频 | 欧美www视频| 国产专区综合网| 欧美videos中文字幕| 麻豆久久久久久久| 欧美一级一级性生活免费录像| 一区二区在线电影| 欧美日韩国产片| 偷拍一区二区三区| 91精品国产色综合久久| 三级欧美在线一区| 精品欧美一区二区三区精品久久| 美女网站一区二区| 精品美女一区二区| 国产成人精品一区二区三区四区| 日韩欧美国产小视频| 国产精品综合网| 国产精品色婷婷久久58| 91免费视频大全| 亚洲一区自拍偷拍| 欧美午夜寂寞影院| 精品无人区卡一卡二卡三乱码免费卡 | 国产亚洲欧洲997久久综合 | 欧美韩国日本一区| 色呦呦网站一区| 欧美aaaaa成人免费观看视频| 精品第一国产综合精品aⅴ|