aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq
Commit message (Expand)AuthorAge
...
| * | | generic irqs: handle failure of irqchip->set_type in setup_irqUwe Kleine-König2008-07-24
| * | | set_irq_wake: fix return code and wake status trackingUwe Kleine-König2008-07-23
| | |/ | |/|
* | | genirq: irq_chip->startup() usage in setup_irq and set_irq_chained handlerPawel MOLL2008-09-06
* | | genirq: fix irq_desc->depth handling with DEBUG_SHIRQAnton Vorontsov2008-08-22
* | | genirq: remove last NO_IDLE_HZ leftoversThomas Gleixner2008-07-22
* | | genirq: enable polling for disabled screaming irqsEric W. Biederman2008-07-18
|/ /
* | genirq: remove extraneous checks in manage.cThomas Gleixner2008-07-10
* | genirq: Expose default irq affinity mask (take 3)Max Krasnyansky2008-06-05
|/
* genirq: reenable a nobody cared disabled irq when a new driver arrivesThomas Gleixner2008-05-02
* kernel: explicitly include required header files under kernel/Robert P. J. Day2008-04-29
* cpumask: Cleanup more uses of CPU_MASK and NODE_MASKMike Travis2008-04-19
* genirq: do not leave interupts enabled on free_irqThomas Gleixner2008-02-19
* genirq: spurious.c: use time_* macrosS.Caglar Onur2008-02-19
* IRQ_NOPROBE helper functionsRalf Baechle2008-02-08
* kernel: remove fastcall in kernel/*Harvey Harrison2008-02-08
* genirq: stackdump after the "Trying to free already-free IRQ" messageIngo Molnar2008-01-30
* x86: add /proc/irq/*/spurious to dump the spurious irq debugging stateAndi Kleen2008-01-30
* genirq: turn irq debugging options into module paramsAndi Kleen2008-01-30
* genirq: revert lazy irq disable for simple irqsSteven Rostedt2007-12-18
* __do_IRQ does not check IRQ_DISABLED when IRQ_PER_CPU is setRuss Anderson2007-11-14
* Fix synchronize_irq races with IRQ handlerHerbert Xu2007-10-23
* Compile handle_percpu_irq even for uniprocessor kernelsRalf Baechle2007-10-17
* Fix CONFIG_DEBUG_SHIRQ trigger on free_irq()David Woodhouse2007-10-17
* request_irq: fix DEBUG_SHIRQ handlingJarek Poplawski2007-08-31
* free_irq(): fix DEBUG_SHIRQ handlingAndrew Morton2007-08-22
* genirq: suppress resend of level interruptsThomas Gleixner2007-08-12
* genirq: cleanup mismerge artifactThomas Gleixner2007-08-12
* Revert "genirq: temporary fix for level-triggered IRQ resend"Linus Torvalds2007-08-09
* genirq: temporary fix for level-triggered IRQ resendThomas Gleixner2007-08-01
* rip some includes from linux/interrupt.hAl Viro2007-07-28
* x86_64: Report the pending irq if available in smp_affinityAndi Kleen2007-07-21
* Improve behaviour of spurious IRQ detectAlan Cox2007-07-16
* Fix crash with irqpoll due to the IRQF_IRQPOLL flag testingLinus Torvalds2007-05-24
* [IA64] SN: validate smp_affinity mask on intr redirectJohn Keller2007-05-11
* Fix Linuxdoc commentJeff Dike2007-05-09
* Add IRQF_IRQPOLL flag (common code)Bernhard Walle2007-05-08
* Pad irq_desc to internode cacheline sizeRavikiran G Thirumalai2007-05-08
* IRQ: check for PERCPU flag only when adding first irqactionAhmed S. Darwish2007-05-08
* kernel/irq/proc.c: unprotected iteration over the IRQ action list in name_uni...Dmitry Adamushko2007-05-08
* MSI: arch must connect the irq and the msi_descMichael Ellerman2007-05-02
* [PATCH] irq-devres: fix failure path of devm_request_irq()Tejun Heo2007-04-07
* [PATCH] genirq: Mask irqs when migrating them.Eric W. Biederman2007-02-26
* [PATCH] small irq management simplificationJan Beulich2007-02-16
* [PATCH] IRQ kernel-doc fixesRandy Dunlap2007-02-16
* [PATCH] genirq: do not mask interrupts by defaultIngo Molnar2007-02-16
* [PATCH] Add a function to handle interrupt affinity settingThomas Gleixner2007-02-16
* [PATCH] Add irq flag to disable balancing for an interruptThomas Gleixner2007-02-16
* [PATCH] Scheduled removal of SA_xxx interrupt flags fixupsThomas Gleixner2007-02-14
* [PATCH] kernel: shut up the IRQ mismatch messagesAlan Cox2007-02-12
* [PATCH] Debug shared irqsDavid Woodhouse2007-02-12
/span> prom_palette(0); local_irq_restore(flags); } #ifdef CONFIG_SMP extern void smp_promstop_others(void); #endif /* Drop into the prom, but completely terminate the program. * No chance of continuing. */ void prom_halt(void) { #ifdef CONFIG_SMP smp_promstop_others(); udelay(8000); #endif again: p1275_cmd("exit", P1275_INOUT(0, 0)); goto again; /* PROM is out to get me -DaveM */ } void prom_halt_power_off(void) { #ifdef CONFIG_SMP smp_promstop_others(); udelay(8000); #endif p1275_cmd("SUNW,power-off", P1275_INOUT(0, 0)); /* if nothing else helps, we just halt */ prom_halt(); } /* Set prom sync handler to call function 'funcp'. */ void prom_setcallback(callback_func_t funcp) { if (!funcp) return; p1275_cmd("set-callback", P1275_ARG(0, P1275_ARG_IN_FUNCTION) | P1275_INOUT(1, 1), funcp); } /* Get the idprom and stuff it into buffer 'idbuf'. Returns the * format type. 'num_bytes' is the number of bytes that your idbuf * has space for. Returns 0xff on error. */ unsigned char prom_get_idprom(char *idbuf, int num_bytes) { int len; len = prom_getproplen(prom_root_node, "idprom"); if ((len >num_bytes) || (len == -1)) return 0xff; if (!prom_getproperty(prom_root_node, "idprom", idbuf, num_bytes)) return idbuf[0]; return 0xff; } /* Get the major prom version number. */ int prom_version(void) { return PROM_P1275; } /* Get the prom plugin-revision. */ int prom_getrev(void) { return prom_rev; } /* Get the prom firmware print revision. */ int prom_getprev(void) { return prom_prev; } /* Install Linux trap table so PROM uses that instead of its own. */ void prom_set_trap_table(unsigned long tba) { p1275_cmd("SUNW,set-trap-table", P1275_INOUT(1, 0), tba); } int mmu_ihandle_cache = 0; int prom_get_mmu_ihandle(void) { int node, ret; if (mmu_ihandle_cache != 0) return mmu_ihandle_cache; node = prom_finddevice("/chosen"); ret = prom_getint(node, "mmu"); if (ret == -1 || ret == 0) mmu_ihandle_cache = -1; else mmu_ihandle_cache = ret; return ret; } static int prom_get_memory_ihandle(void) { static int memory_ihandle_cache; int node, ret; if (memory_ihandle_cache != 0) return memory_ihandle_cache; node = prom_finddevice("/chosen"); ret = prom_getint(node, "memory"); if (ret == -1 || ret == 0) memory_ihandle_cache = -1; else memory_ihandle_cache = ret; return ret; } /* Load explicit I/D TLB entries. */ long prom_itlb_load(unsigned long index, unsigned long tte_data, unsigned long vaddr) { return p1275_cmd("call-method", (P1275_ARG(0, P1275_ARG_IN_STRING) | P1275_ARG(2, P1275_ARG_IN_64B) | P1275_ARG(3, P1275_ARG_IN_64B) | P1275_INOUT(5, 1)), "SUNW,itlb-load", prom_get_mmu_ihandle(), /* And then our actual args are pushed backwards. */ vaddr, tte_data, index); } long prom_dtlb_load(unsigned long index, unsigned long tte_data, unsigned long vaddr) { return p1275_cmd("call-method", (P1275_ARG(0, P1275_ARG_IN_STRING) | P1275_ARG(2, P1275_ARG_IN_64B) | P1275_ARG(3, P1275_ARG_IN_64B) | P1275_INOUT(5, 1)), "SUNW,dtlb-load", prom_get_mmu_ihandle(), /* And then our actual args are pushed backwards. */ vaddr, tte_data, index); } int prom_map(int mode, unsigned long size, unsigned long vaddr, unsigned long paddr) { int ret = p1275_cmd("call-method", (P1275_ARG(0, P1275_ARG_IN_STRING) | P1275_ARG(3, P1275_ARG_IN_64B) | P1275_ARG(4, P1275_ARG_IN_64B) | P1275_ARG(6, P1275_ARG_IN_64B) | P1275_INOUT(7, 1)), "map", prom_get_mmu_ihandle(), mode, size, vaddr, 0, paddr); if (ret == 0) ret = -1; return ret; } void prom_unmap(unsigned long size, unsigned long vaddr) { p1275_cmd("call-method", (P1275_ARG(0, P1275_ARG_IN_STRING) | P1275_ARG(2, P1275_ARG_IN_64B) | P1275_ARG(3, P1275_ARG_IN_64B) | P1275_INOUT(4, 0)), "unmap", prom_get_mmu_ihandle(), size, vaddr); } /* Set aside physical memory which is not touched or modified * across soft resets. */ unsigned long prom_retain(char *name, unsigned long pa_low, unsigned long pa_high, long size, long align) { /* XXX I don't think we return multiple values correctly. * XXX OBP supposedly returns pa_low/pa_high here, how does * XXX it work? */ /* If align is zero, the pa_low/pa_high args are passed, * else they are not. */ if (align == 0) return p1275_cmd("SUNW,retain", (P1275_ARG(0, P1275_ARG_IN_BUF) | P1275_INOUT(5, 2)), name, pa_low, pa_high, size, align); else return p1275_cmd("SUNW,retain", (P1275_ARG(0, P1275_ARG_IN_BUF) | P1275_INOUT(3, 2)), name, size, align); } /* Get "Unumber" string for the SIMM at the given * memory address. Usually this will be of the form * "Uxxxx" where xxxx is a decimal number which is * etched into the motherboard next to the SIMM slot * in question. */ int prom_getunumber(int syndrome_code, unsigned long phys_addr, char *buf, int buflen) { return p1275_cmd("call-method", (P1275_ARG(0, P1275_ARG_IN_STRING) | P1275_ARG(3, P1275_ARG_OUT_BUF) | P1275_ARG(6, P1275_ARG_IN_64B) | P1275_INOUT(8, 2)), "SUNW,get-unumber", prom_get_memory_ihandle(), buflen, buf, P1275_SIZE(buflen), 0, phys_addr, syndrome_code); } /* Power management extensions. */ void prom_sleepself(void) { p1275_cmd("SUNW,sleep-self", P1275_INOUT(0, 0)); } int prom_sleepsystem(void) { return p1275_cmd("SUNW,sleep-system", P1275_INOUT(0, 1)); } int prom_wakeupsystem(void) { return p1275_cmd("SUNW,wakeup-system", P1275_INOUT(0, 1)); } #ifdef CONFIG_SMP void prom_startcpu(int cpunode, unsigned long pc, unsigned long o0) { p1275_cmd("SUNW,start-cpu", P1275_INOUT(3, 0), cpunode, pc, o0); } void prom_stopself(void) { p1275_cmd("SUNW,stop-self", P1275_INOUT(0, 0)); } void prom_idleself(void) { p1275_cmd("SUNW,idle-self", P1275_INOUT(0, 0)); } void prom_resumecpu(int cpunode) { p1275_cmd("SUNW,resume-cpu", P1275_INOUT(1, 0), cpunode); } #endif