/* * Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. * */ #include <linux/mm.h> #include <linux/string.h> #include <linux/slab.h> #include <asm/mips_machine.h> #include <asm/prom.h> static struct mips_machine *mips_machine __initdata; #define for_each_machine(mach) \ for ((mach) = (struct mips_machine *)&__mips_machines_start; \ (mach) && \ (unsigned long)(mach) < (unsigned long)&__mips_machines_end; \ (mach)++)
__init int mips_machtype_setup(char *id) { struct mips_machine *mach; for_each_machine(mach) { if (mach->mach_id == NULL) continue; if (strcmp(mach->mach_id, id) == 0) { mips_machtype = mach->mach_type; return 0; } } pr_err("MIPS: no machine found for id '%s', supported machines:\n", id); pr_err("%-24s %s\n", "id", "name"); for_each_machine(mach) pr_err("%-24s %s\n", mach->mach_id, mach->mach_name); return 1; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Gabor Juhos | 90 | 100.00% | 1 | 100.00% |
Total | 90 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Gabor Juhos | 58 | 100.00% | 1 | 100.00% |
Total | 58 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Gabor Juhos | 183 | 98.39% | 1 | 50.00% |
John Crispin | 3 | 1.61% | 1 | 50.00% |
Total | 186 | 100.00% | 2 | 100.00% |