1 #include <linux/module.h>
3 #include <asm/machvec.h>
4 #include <asm/system.h>
6 #ifdef CONFIG_IA64_GENERIC
8 #include <linux/kernel.h>
9 #include <linux/string.h>
13 struct ia64_machine_vector ia64_mv;
14 EXPORT_SYMBOL(ia64_mv);
16 static __initdata const char *mvec_name;
17 static __init int setup_mvec(char *s)
22 early_param("machvec", setup_mvec);
24 static struct ia64_machine_vector * __init
25 lookup_machvec (const char *name)
27 extern struct ia64_machine_vector machvec_start[];
28 extern struct ia64_machine_vector machvec_end[];
29 struct ia64_machine_vector *mv;
31 for (mv = machvec_start; mv < machvec_end; ++mv)
32 if (strcmp (mv->name, name) == 0)
39 machvec_init (const char *name)
41 struct ia64_machine_vector *mv;
44 name = mvec_name ? mvec_name : acpi_get_sysname();
45 mv = lookup_machvec(name);
47 panic("generic kernel failed to find machine vector for"
48 " platform %s!", name);
51 printk(KERN_INFO "booting generic kernel on platform %s\n", name);
54 #endif /* CONFIG_IA64_GENERIC */
57 machvec_setup (char **arg)
60 EXPORT_SYMBOL(machvec_setup);
63 machvec_timer_interrupt (int irq, void *dev_id)
66 EXPORT_SYMBOL(machvec_timer_interrupt);
69 machvec_dma_sync_single (struct device *hwdev, dma_addr_t dma_handle, size_t size, int dir)
73 EXPORT_SYMBOL(machvec_dma_sync_single);
76 machvec_dma_sync_sg (struct device *hwdev, struct scatterlist *sg, int n, int dir)
80 EXPORT_SYMBOL(machvec_dma_sync_sg);