sh: machvec rework.

Some more machvec overhauling and setup code cleanup. Kill off
get_system_type() and platform_setup(), we can do these both
through the machvec. While we're add it, kill off more useless
mach.c's and drop some legacy cruft from setup.c.

Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
Paul Mundt 2006-09-27 18:17:31 +09:00
commit 2c7834a6f1
31 changed files with 481 additions and 776 deletions

View file

@ -8,17 +8,18 @@
*/
#ifndef _ASM_SH_MACHVEC_H
#define _ASM_SH_MACHVEC_H 1
#define _ASM_SH_MACHVEC_H
#include <linux/types.h>
#include <linux/time.h>
#include <asm/machtypes.h>
#include <asm/machvec_init.h>
struct device;
struct sh_machine_vector {
void (*mv_setup)(char **cmdline_p);
const char *mv_name;
int mv_nr_irqs;
u8 (*mv_inb)(unsigned long);
@ -65,4 +66,6 @@ struct sh_machine_vector {
extern struct sh_machine_vector sh_mv;
#define get_system_type() sh_mv.mv_name
#endif /* _ASM_SH_MACHVEC_H */