diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/ia64/kernel/machvec.c |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/ia64/kernel/machvec.c')
-rw-r--r-- | arch/ia64/kernel/machvec.c | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/arch/ia64/kernel/machvec.c b/arch/ia64/kernel/machvec.c new file mode 100644 index 000000000000..c3a04ee7f4f6 --- /dev/null +++ b/arch/ia64/kernel/machvec.c | |||
@@ -0,0 +1,70 @@ | |||
1 | #include <linux/config.h> | ||
2 | #include <linux/module.h> | ||
3 | |||
4 | #include <asm/machvec.h> | ||
5 | #include <asm/system.h> | ||
6 | |||
7 | #ifdef CONFIG_IA64_GENERIC | ||
8 | |||
9 | #include <linux/kernel.h> | ||
10 | #include <linux/string.h> | ||
11 | |||
12 | #include <asm/page.h> | ||
13 | |||
14 | struct ia64_machine_vector ia64_mv; | ||
15 | EXPORT_SYMBOL(ia64_mv); | ||
16 | |||
17 | static struct ia64_machine_vector * | ||
18 | lookup_machvec (const char *name) | ||
19 | { | ||
20 | extern struct ia64_machine_vector machvec_start[]; | ||
21 | extern struct ia64_machine_vector machvec_end[]; | ||
22 | struct ia64_machine_vector *mv; | ||
23 | |||
24 | for (mv = machvec_start; mv < machvec_end; ++mv) | ||
25 | if (strcmp (mv->name, name) == 0) | ||
26 | return mv; | ||
27 | |||
28 | return 0; | ||
29 | } | ||
30 | |||
31 | void | ||
32 | machvec_init (const char *name) | ||
33 | { | ||
34 | struct ia64_machine_vector *mv; | ||
35 | |||
36 | mv = lookup_machvec(name); | ||
37 | if (!mv) { | ||
38 | panic("generic kernel failed to find machine vector for platform %s!", name); | ||
39 | } | ||
40 | ia64_mv = *mv; | ||
41 | printk(KERN_INFO "booting generic kernel on platform %s\n", name); | ||
42 | } | ||
43 | |||
44 | #endif /* CONFIG_IA64_GENERIC */ | ||
45 | |||
46 | void | ||
47 | machvec_setup (char **arg) | ||
48 | { | ||
49 | } | ||
50 | EXPORT_SYMBOL(machvec_setup); | ||
51 | |||
52 | void | ||
53 | machvec_timer_interrupt (int irq, void *dev_id, struct pt_regs *regs) | ||
54 | { | ||
55 | } | ||
56 | EXPORT_SYMBOL(machvec_timer_interrupt); | ||
57 | |||
58 | void | ||
59 | machvec_dma_sync_single (struct device *hwdev, dma_addr_t dma_handle, size_t size, int dir) | ||
60 | { | ||
61 | mb(); | ||
62 | } | ||
63 | EXPORT_SYMBOL(machvec_dma_sync_single); | ||
64 | |||
65 | void | ||
66 | machvec_dma_sync_sg (struct device *hwdev, struct scatterlist *sg, int n, int dir) | ||
67 | { | ||
68 | mb(); | ||
69 | } | ||
70 | EXPORT_SYMBOL(machvec_dma_sync_sg); | ||