[TG3]: Set minimal hw interrupt mitigation.
[linux-2.6/verdex.git] / arch / ia64 / kernel / machvec.c
blobc3a04ee7f4f612764731723c396c5ef07b8ed109
1 #include <linux/config.h>
2 #include <linux/module.h>
4 #include <asm/machvec.h>
5 #include <asm/system.h>
7 #ifdef CONFIG_IA64_GENERIC
9 #include <linux/kernel.h>
10 #include <linux/string.h>
12 #include <asm/page.h>
14 struct ia64_machine_vector ia64_mv;
15 EXPORT_SYMBOL(ia64_mv);
17 static struct ia64_machine_vector *
18 lookup_machvec (const char *name)
20 extern struct ia64_machine_vector machvec_start[];
21 extern struct ia64_machine_vector machvec_end[];
22 struct ia64_machine_vector *mv;
24 for (mv = machvec_start; mv < machvec_end; ++mv)
25 if (strcmp (mv->name, name) == 0)
26 return mv;
28 return 0;
31 void
32 machvec_init (const char *name)
34 struct ia64_machine_vector *mv;
36 mv = lookup_machvec(name);
37 if (!mv) {
38 panic("generic kernel failed to find machine vector for platform %s!", name);
40 ia64_mv = *mv;
41 printk(KERN_INFO "booting generic kernel on platform %s\n", name);
44 #endif /* CONFIG_IA64_GENERIC */
46 void
47 machvec_setup (char **arg)
50 EXPORT_SYMBOL(machvec_setup);
52 void
53 machvec_timer_interrupt (int irq, void *dev_id, struct pt_regs *regs)
56 EXPORT_SYMBOL(machvec_timer_interrupt);
58 void
59 machvec_dma_sync_single (struct device *hwdev, dma_addr_t dma_handle, size_t size, int dir)
61 mb();
63 EXPORT_SYMBOL(machvec_dma_sync_single);
65 void
66 machvec_dma_sync_sg (struct device *hwdev, struct scatterlist *sg, int n, int dir)
68 mb();
70 EXPORT_SYMBOL(machvec_dma_sync_sg);