11 #include <linux/kernel.h>
12 #include <linux/types.h>
14 #include <linux/sched.h>
15 #include <linux/pci.h>
17 #include <linux/reboot.h>
19 #include <asm/ptrace.h>
22 #include <asm/mmu_context.h>
24 #include <asm/pgtable.h>
26 #include <asm/tlbflush.h>
35 miata_srm_device_interrupt(
unsigned long vector)
39 irq = (vector - 0x800) >> 4;
65 alpha_mv.device_interrupt = miata_srm_device_interrupt;
157 {16+ 8, 16+ 8, 16+ 8, 16+ 8, 16+ 8},
158 { -1, -1, -1, -1, -1},
159 { -1, -1, -1, -1, -1},
160 { -1, -1, -1, -1, -1},
161 { -1, -1, -1, -1, -1},
162 { -1, -1, -1, -1, -1},
163 { -1, -1, -1, -1, -1},
164 { -1, -1, -1, -1, -1},
165 {16+12, 16+12, 16+13, 16+14, 16+15},
166 {16+16, 16+16, 16+17, 16+18, 16+19},
168 {16+11, 16+11, 16+11, 16+11, 16+11},
169 { -1, -1, -1, -1, -1},
170 { -1, -1, -1, -1, -1},
171 { -1, -1, -1, -1, -1},
172 {16+20, 16+20, 16+21, 16+22, 16+23},
173 {16+24, 16+24, 16+25, 16+26, 16+27},
174 {16+28, 16+28, 16+29, 16+30, 16+31},
176 { -1, -1, -1, -1, -1},
178 const long min_idsel = 3, max_idsel = 20, irqs_per_slot = 5;
200 miata_swizzle(
struct pci_dev *dev,
u8 *pinp)
202 int slot, pin = *pinp;
204 if (dev->
bus->number == 0) {
224 dev = dev->
bus->self;
227 }
while (dev->
bus->self);
242 miata_kill_arch(
int mode)
246 #ifndef ALPHA_RESTORE_SRM_SETUP
250 if (alpha_using_srm) {
271 .vector_name =
"Miata",
285 .init_irq = miata_init_irq,
287 .init_pci = miata_init_pci,
288 .kill_arch = miata_kill_arch,
289 .pci_map_irq = miata_map_irq,
290 .pci_swizzle = miata_swizzle,