11 #include <linux/kernel.h>
12 #include <linux/types.h>
14 #include <linux/sched.h>
15 #include <linux/pci.h>
17 #include <linux/bitops.h>
19 #include <asm/ptrace.h>
22 #include <asm/mmu_context.h>
24 #include <asm/pgtable.h>
28 #include <asm/tlbflush.h>
37 static unsigned int cached_irq_mask = -1;
40 eb64p_update_irq_hw(
unsigned int irq,
unsigned long mask)
42 outb(mask >> (irq >= 24 ? 24 : 16), (irq >= 24 ? 0x27 : 0x26));
48 eb64p_update_irq_hw(d->
irq, cached_irq_mask &= ~(1 << d->
irq));
54 eb64p_update_irq_hw(d->
irq, cached_irq_mask |= 1 << d->
irq);
57 static struct irq_chip eb64p_irq_type = {
59 .irq_unmask = eb64p_enable_irq,
60 .irq_mask = eb64p_disable_irq,
61 .irq_mask_ack = eb64p_disable_irq,
65 eb64p_device_interrupt(
unsigned long vector)
71 pld =
inb(0x26) | (
inb(0x27) << 8);
94 #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_CABRIOLET)
100 if (
inw(0x806) != 0xffff) {
101 extern struct alpha_machine_vector cabriolet_mv;
103 printk(
"Detected Cabriolet: correcting HWRPB.\n");
105 hwrpb->sys_variation |= 2
L << 10;
106 hwrpb_update_checksum(
hwrpb);
108 alpha_mv = cabriolet_mv;
119 for (i = 16; i < 32; ++
i) {
175 {16+7, 16+7, 16+7, 16+7, 16+7},
176 {16+0, 16+0, 16+2, 16+4, 16+9},
177 {16+1, 16+1, 16+3, 16+8, 16+10},
178 { -1, -1, -1, -1, -1},
179 {16+6, 16+6, 16+6, 16+6, 16+6},
181 const long min_idsel = 5, max_idsel = 9, irqs_per_slot = 5;
190 #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_EB64P)
191 struct alpha_machine_vector eb64p_mv
__initmv = {
192 .vector_name =
"EB64+",
202 .device_interrupt = eb64p_device_interrupt,
205 .init_irq = eb64p_init_irq,
209 .pci_map_irq = eb64p_map_irq,
215 #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_EB66)
216 struct alpha_machine_vector eb66_mv __initmv = {
217 .vector_name =
"EB66",
227 .device_interrupt = eb64p_device_interrupt,
230 .init_irq = eb64p_init_irq,
233 .pci_map_irq = eb64p_map_irq,