diff options
Diffstat (limited to 'arch/m68k/mac')
| -rw-r--r-- | arch/m68k/mac/config.c | 63 | ||||
| -rw-r--r-- | arch/m68k/mac/iop.c | 5 | ||||
| -rw-r--r-- | arch/m68k/mac/misc.c | 2 | ||||
| -rw-r--r-- | arch/m68k/mac/oss.c | 1 | ||||
| -rw-r--r-- | arch/m68k/mac/psc.c | 3 | ||||
| -rw-r--r-- | arch/m68k/mac/via.c | 1 | 
6 files changed, 21 insertions, 54 deletions
diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c index afb95d5fb26..a471eab1a4d 100644 --- a/arch/m68k/mac/config.c +++ b/arch/m68k/mac/config.c @@ -26,9 +26,10 @@  #include <linux/adb.h>  #include <linux/cuda.h> -#define BOOTINFO_COMPAT_1_0  #include <asm/setup.h>  #include <asm/bootinfo.h> +#include <asm/bootinfo-mac.h> +#include <asm/byteorder.h>  #include <asm/io.h>  #include <asm/irq.h> @@ -70,31 +71,6 @@ static void mac_get_model(char *str);  static void mac_identify(void);  static void mac_report_hardware(void); -#ifdef CONFIG_EARLY_PRINTK -asmlinkage void __init mac_early_print(const char *s, unsigned n); - -static void __init mac_early_cons_write(struct console *con, -                                 const char *s, unsigned n) -{ -	mac_early_print(s, n); -} - -static struct console __initdata mac_early_cons = { -	.name  = "early", -	.write = mac_early_cons_write, -	.flags = CON_PRINTBUFFER | CON_BOOT, -	.index = -1 -}; - -int __init mac_unregister_early_cons(void) -{ -	/* mac_early_print can't be used after init sections are discarded */ -	return unregister_console(&mac_early_cons); -} - -late_initcall(mac_unregister_early_cons); -#endif -  static void __init mac_sched_init(irq_handler_t vector)  {  	via_init_clock(vector); @@ -107,45 +83,46 @@ static void __init mac_sched_init(irq_handler_t vector)  int __init mac_parse_bootinfo(const struct bi_record *record)  {  	int unknown = 0; -	const u_long *data = record->data; +	const void *data = record->data; -	switch (record->tag) { +	switch (be16_to_cpu(record->tag)) {  	case BI_MAC_MODEL: -		mac_bi_data.id = *data; +		mac_bi_data.id = be32_to_cpup(data);  		break;  	case BI_MAC_VADDR: -		mac_bi_data.videoaddr = *data; +		mac_bi_data.videoaddr = be32_to_cpup(data);  		break;  	case BI_MAC_VDEPTH: -		mac_bi_data.videodepth = *data; +		mac_bi_data.videodepth = be32_to_cpup(data);  		break;  	case BI_MAC_VROW: -		mac_bi_data.videorow = *data; +		mac_bi_data.videorow = be32_to_cpup(data);  		break;  	case BI_MAC_VDIM: -		mac_bi_data.dimensions = *data; +		mac_bi_data.dimensions = be32_to_cpup(data);  		break;  	case BI_MAC_VLOGICAL: -		mac_bi_data.videological = VIDEOMEMBASE + (*data & ~VIDEOMEMMASK); -		mac_orig_videoaddr = *data; +		mac_orig_videoaddr = be32_to_cpup(data); +		mac_bi_data.videological = +			VIDEOMEMBASE + (mac_orig_videoaddr & ~VIDEOMEMMASK);  		break;  	case BI_MAC_SCCBASE: -		mac_bi_data.sccbase = *data; +		mac_bi_data.sccbase = be32_to_cpup(data);  		break;  	case BI_MAC_BTIME: -		mac_bi_data.boottime = *data; +		mac_bi_data.boottime = be32_to_cpup(data);  		break;  	case BI_MAC_GMTBIAS: -		mac_bi_data.gmtbias = *data; +		mac_bi_data.gmtbias = be32_to_cpup(data);  		break;  	case BI_MAC_MEMSIZE: -		mac_bi_data.memsize = *data; +		mac_bi_data.memsize = be32_to_cpup(data);  		break;  	case BI_MAC_CPUID: -		mac_bi_data.cpuid = *data; +		mac_bi_data.cpuid = be32_to_cpup(data);  		break;  	case BI_MAC_ROMBASE: -		mac_bi_data.rombase = *data; +		mac_bi_data.rombase = be32_to_cpup(data);  		break;  	default:  		unknown = 1; @@ -188,10 +165,6 @@ void __init config_mac(void)  	mach_beep = mac_mksound;  #endif -#ifdef CONFIG_EARLY_PRINTK -	register_console(&mac_early_cons); -#endif -  	/*  	 * Determine hardware present  	 */ diff --git a/arch/m68k/mac/iop.c b/arch/m68k/mac/iop.c index 7d8d46127ad..4d2adfb32a2 100644 --- a/arch/m68k/mac/iop.c +++ b/arch/m68k/mac/iop.c @@ -111,16 +111,15 @@  #include <linux/init.h>  #include <linux/interrupt.h> -#include <asm/bootinfo.h>  #include <asm/macintosh.h>  #include <asm/macints.h>  #include <asm/mac_iop.h>  /*#define DEBUG_IOP*/ -/* Set to non-zero if the IOPs are present. Set by iop_init() */ +/* Non-zero if the IOPs are present */ -int iop_scc_present,iop_ism_present; +int iop_scc_present, iop_ism_present;  /* structure for tracking channel listeners */ diff --git a/arch/m68k/mac/misc.c b/arch/m68k/mac/misc.c index 5e085554ac7..707b61aea20 100644 --- a/arch/m68k/mac/misc.c +++ b/arch/m68k/mac/misc.c @@ -25,8 +25,6 @@  #include <asm/mac_via.h>  #include <asm/mac_oss.h> -#define BOOTINFO_COMPAT_1_0 -#include <asm/bootinfo.h>  #include <asm/machdep.h>  /* Offset between Unix time (1970-based) and Mac time (1904-based) */ diff --git a/arch/m68k/mac/oss.c b/arch/m68k/mac/oss.c index 6c4c882c126..54037125ebf 100644 --- a/arch/m68k/mac/oss.c +++ b/arch/m68k/mac/oss.c @@ -21,7 +21,6 @@  #include <linux/init.h>  #include <linux/irq.h> -#include <asm/bootinfo.h>  #include <asm/macintosh.h>  #include <asm/macints.h>  #include <asm/mac_via.h> diff --git a/arch/m68k/mac/psc.c b/arch/m68k/mac/psc.c index 6f026fc302f..835fa04511c 100644 --- a/arch/m68k/mac/psc.c +++ b/arch/m68k/mac/psc.c @@ -21,7 +21,6 @@  #include <linux/irq.h>  #include <asm/traps.h> -#include <asm/bootinfo.h>  #include <asm/macintosh.h>  #include <asm/macints.h>  #include <asm/mac_psc.h> @@ -54,7 +53,7 @@ static void psc_debug_dump(void)   * expanded to cover what I think are the other 7 channels.   */ -static void psc_dma_die_die_die(void) +static __init void psc_dma_die_die_die(void)  {  	int i; diff --git a/arch/m68k/mac/via.c b/arch/m68k/mac/via.c index 5d1458bb871..e198dec868e 100644 --- a/arch/m68k/mac/via.c +++ b/arch/m68k/mac/via.c @@ -30,7 +30,6 @@  #include <linux/module.h>  #include <linux/irq.h> -#include <asm/bootinfo.h>  #include <asm/macintosh.h>  #include <asm/macints.h>  #include <asm/mac_via.h>  | 
