dmaengine: driver for the iop32x, iop33x, and iop13xx raid engines
[pv_ops_mirror.git] / arch / ia64 / kernel / machvec.c
blob13df337508e7fe5f6b626ff66735026469acb1b3
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>
11 #include <asm/page.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)
19 mvec_name = s;
20 return 0;
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)
33 return mv;
35 return 0;
38 void __init
39 machvec_init (const char *name)
41 struct ia64_machine_vector *mv;
43 if (!name)
44 name = mvec_name ? mvec_name : acpi_get_sysname();
45 mv = lookup_machvec(name);
46 if (!mv)
47 panic("generic kernel failed to find machine vector for"
48 " platform %s!", name);
50 ia64_mv = *mv;
51 printk(KERN_INFO "booting generic kernel on platform %s\n", name);
54 #endif /* CONFIG_IA64_GENERIC */
56 void
57 machvec_setup (char **arg)
60 EXPORT_SYMBOL(machvec_setup);
62 void
63 machvec_timer_interrupt (int irq, void *dev_id)
66 EXPORT_SYMBOL(machvec_timer_interrupt);
68 void
69 machvec_dma_sync_single (struct device *hwdev, dma_addr_t dma_handle, size_t size, int dir)
71 mb();
73 EXPORT_SYMBOL(machvec_dma_sync_single);
75 void
76 machvec_dma_sync_sg (struct device *hwdev, struct scatterlist *sg, int n, int dir)
78 mb();
80 EXPORT_SYMBOL(machvec_dma_sync_sg);