10 #include <linux/kernel.h>
11 #include <linux/types.h>
13 #include <linux/sched.h>
14 #include <linux/pci.h>
17 #include <asm/ptrace.h>
19 #define __EXTERN_INLINE inline
22 #undef __EXTERN_INLINE
26 #include <asm/mmu_context.h>
27 #include <asm/pgtable.h>
28 #include <asm/tlbflush.h>
81 jensen_local_mask_ack(
struct irq_data *d)
88 static struct irq_chip jensen_local_irq_type = {
90 .irq_unmask = jensen_local_enable,
91 .irq_mask = jensen_local_disable,
92 .irq_mask_ack = jensen_local_mask_ack,
96 jensen_device_interrupt(
unsigned long vector)
102 printk(
"Whee.. NMI received. Probable hardware error\n");
107 case 0x900: irq = 4;
break;
108 case 0x920: irq = 3;
break;
109 case 0x980: irq = 1;
break;
110 case 0x990: irq = 9;
break;
113 if (vector > 0x900) {
114 printk(
"Unknown local interrupt %lx\n", vector);
118 irq = (vector - 0x800) >> 4;
125 if (!irq_has_action(irq)) {
146 static unsigned int last_msg = 0, last_cc = 0;
147 static int last_irq = -1,
count = 0;
150 __asm __volatile(
"rpcc %0" :
"=r"(cc));
152 #define JENSEN_CYCLES_PER_SEC (150000000)
153 if (cc - last_msg > ((JENSEN_CYCLES_PER_SEC) * 3) ||
169 jensen_init_irq(
void)
183 jensen_init_arch(
void)
200 hose->sparse_mem_base =
EISA_MEM - IDENT_ADDR;
201 hose->dense_mem_base = 0;
202 hose->sparse_io_base =
EISA_IO - IDENT_ADDR;
203 hose->dense_io_base = 0;
205 hose->sg_isa = hose->sg_pci =
NULL;
211 jensen_machine_check(
unsigned long vector,
unsigned long la)
221 .vector_name =
"Jensen",
224 .machine_check = jensen_machine_check,
231 .device_interrupt = jensen_device_interrupt,
233 .init_arch = jensen_init_arch,
234 .init_irq = jensen_init_irq,