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>
14 struct ia64_machine_vector ia64_mv;
15 EXPORT_SYMBOL(ia64_mv);
17 static __initdata const char *mvec_name;
18 static __init int setup_mvec(char *s)
23 early_param("machvec", setup_mvec);
25 static struct ia64_machine_vector * __init
26 lookup_machvec (const char *name)
28 extern struct ia64_machine_vector machvec_start[];
29 extern struct ia64_machine_vector machvec_end[];
30 struct ia64_machine_vector *mv;
32 for (mv = machvec_start; mv < machvec_end; ++mv)
33 if (strcmp (mv->name, name) == 0)
40 machvec_init (const char *name)
42 struct ia64_machine_vector *mv;
45 name = mvec_name ? mvec_name : acpi_get_sysname();
46 mv = lookup_machvec(name);
48 panic("generic kernel failed to find machine vector for"
49 " platform %s!", name);
52 printk(KERN_INFO "booting generic kernel on platform %s\n", name);
55 #endif /* CONFIG_IA64_GENERIC */
58 machvec_setup (char **arg)
61 EXPORT_SYMBOL(machvec_setup);
64 machvec_timer_interrupt (int irq, void *dev_id, struct pt_regs *regs)
67 EXPORT_SYMBOL(machvec_timer_interrupt);
70 machvec_dma_sync_single (struct device *hwdev, dma_addr_t dma_handle, size_t size, int dir)
74 EXPORT_SYMBOL(machvec_dma_sync_single);
77 machvec_dma_sync_sg (struct device *hwdev, struct scatterlist *sg, int n, int dir)
81 EXPORT_SYMBOL(machvec_dma_sync_sg);