linux/kernel/irq/dummychip.c
<<
ion 3ion 3io//spa3.1io/spa3 class="lxr_search">ion ion 3ion 3ion 3typ Searchion 3io//spa3.1n 3< io/input typ in 3< 1 /div id < <1//a>/spa3 class="comment">/*//spa3.1< <2//a>/spa3 class="comment"> * Copyright (C) 1992, 1998-2006 Linus Tor ds, Ingo Molnar//spa3.1< <3//a>/spa3 class="comment"> * Copyright (C) 2005-2006, Thomas Gleixner, Russell King//spa3.1< <4//a>/spa3 class="comment"> *//spa3.1< <5//a>/spa3 class="comment"> * This file contains the dummy interrupt chip implementa v3//spa3.1< <6//a>/spa3 class="comment"> *///spa3.1< <7//a>#include <linux/interrupt.h//a>>1< <8//a>#include <linux/irq.h//a>>1< <9//a>i< 11" a>#include "internals.h//a>"i< 11//a>i< 12//a>/spa3 class="comment">/*//spa3.1< 13//a>/spa3 class="comment"> * What should we do if we get a hw irq event on a3 illegal vector?//spa3.1< 14//a>/spa3 class="comment"> * Each architecture has to a3swer this themself.//spa3.1< 15//a>/spa3 class="comment"> *///spa3.1< 16//a>static voidack_bad//a>(structirq_data//a> */a href="+code=data" class="sref">data//a>)1< 17//a>{1< 18//a> structirq_desc//a> */a href="+code=desc" class="sref">desc//a> =irq_data_to_desc//a>(/a href="+code=data" class="sref">data//a>);i< 19//a>i< 20//a> /a href="+code=print_irq_desc" class="sref">print_irq_desc//a>(/a href="+code=data" class="sref">data//a>->/a href="+code=irq" class="sref">irq//a>, /a href="+code=desc" class="sref">desc//a>);i< 21//a> /a href="+code=ack_bad_irq" class="sref">ack_bad_irq//a>(/a href="+code=data" class="sref">data//a>->/a href="+code=irq" class="sref">irq//a>);i< 22//a>}i< 23//a>i< 24//a>/spa3 class="comment">/*//spa3.1< 25//a>/spa3 class="comment"> * NOP func v3s//spa3.1< 26//a>/spa3 class="comment"> *///spa3.1< 27//a>static voidnoop//a>(structirq_data//a> */a href="+code=data" class="sref">data//a>) { }i< 28//a>i< 29//a>static unsigned intnoop_ret//a>(structirq_data//a> */a href="+code=data" class="sref">data//a>)1< 30//a>{1< 31//a> return 0;i< 32//a>}i< 33//a>i< 34//a>/spa3 class="comment">/*//spa3.1< 35//a>/spa3 class="comment"> * Generic no controller implementa v3//spa3.1< 36//a>/spa3 class="comment"> *///spa3.1< 37//a>structirq_chip//a> /a href="+code=no_irq_chip" class="sref">no_irq_chip//a> =<{1< 38//a> ./a href="+code=nam " class="sref">nam //a> ="none"< 39//a> ./a href="+code=irq_startup" class="sref">irq_startup//a> =noop_ret//a>,1< 40//a> ./a href="+code=irq_shutdown" class="sref">irq_shutdown//a> =noop//a>,1< 41//a> ./a href="+code=irq_enabl " class="sref">irq_enabl //a> =noop//a>,1< 42//a> ./a href="+code=irq_disabl " class="sref">irq_disabl //a> =noop//a>,1< 43//a> ./a href="+code=irq_ack" class="sref">irq_ack//a> =ack_bad//a>,1< 44//a>};i< 45//a>i< 46//a>/spa3 class="comment">/*//spa3.1< 47//a>/spa3 class="comment"> * Generic dummy implementa v3 which ca3 be used for//spa3.1< 48//a>/spa3 class="comment"> * real dumb interrupt sources//spa3.1< 49//a>/spa3 class="comment"> *///spa3.1< 50//a>structirq_chip//a> /a href="+code=dummy_irq_chip" class="sref">dummy_irq_chip//a> =<{1< 51//a> ./a href="+code=nam " class="sref">nam //a> ="dummy"< 52//a> ./a href="+code=irq_startup" class="sref">irq_startup//a> =noop_ret//a>,1< 53//a> ./a href="+code=irq_shutdown" class="sref">irq_shutdown//a> =noop//a>,1< 54//a> ./a href="+code=irq_enabl " class="sref">irq_enabl //a> =noop//a>,1< 55//a> ./a href="+code=irq_disabl " class="sref">irq_disabl //a> =noop//a>,1< 56//a> ./a href="+code=irq_ack" class="sref">irq_ack//a> =noop//a>,1< 57//a> ./a href="+code=irq_mask" class="sref">irq_mask//a> =noop//a>,1< 58//a> ./a href="+code=irq_unmask" class="sref">irq_unmask//a> =noop//a>,1< 59//a>};i< 60//a> The original LXR software by the LXR community//a>, this experimental vers v3 by lxr@linux.no//a>. //div.1/div class="subfooter"> lxr.linux.no kindly hosted by Redpill Linpro AS//a>, provider of Linux consulting and opera v3s services since 1995. //div.1 //body.1//html.1