1 #include <linux/module.h>
3 #include <asm/machvec.h>
5 #ifdef CONFIG_IA64_GENERIC
7 #include <linux/kernel.h>
8 #include <linux/string.h>
12 struct ia64_machine_vector
ia64_mv;
15 static struct ia64_machine_vector *
__init
16 lookup_machvec (
const char *
name)
18 extern struct ia64_machine_vector machvec_start[];
19 extern struct ia64_machine_vector machvec_end[];
20 struct ia64_machine_vector *mv;
22 for (mv = machvec_start; mv < machvec_end; ++mv)
23 if (
strcmp (mv->name, name) == 0)
32 struct ia64_machine_vector *mv;
35 name = acpi_get_sysname();
36 mv = lookup_machvec(name);
38 panic(
"generic kernel failed to find machine vector for"
39 " platform %s!", name);
46 machvec_init_from_cmdline(
const char *
cmdline)
52 if (! (start =
strstr(cmdline,
"machvec=")) )
56 if ( (end =
strchr(str,
' ')) )