patch-2.4.20 linux-2.4.20/arch/m68k/mac/config.c
Next file: linux-2.4.20/arch/m68k/mac/debug.c
Previous file: linux-2.4.20/arch/m68k/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 71
- Date:
Thu Nov 28 15:53:09 2002
- Orig file:
linux-2.4.19/arch/m68k/mac/config.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/m68k/mac/config.c linux-2.4.20/arch/m68k/mac/config.c
@@ -21,6 +21,7 @@
#include <linux/delay.h>
/* keyb */
#include <linux/init.h>
+#include <linux/vt_kern.h>
#define BOOTINFO_COMPAT_1_0
#include <asm/setup.h>
@@ -47,6 +48,8 @@
struct mac_booter_data mac_bi_data = {0,};
int mac_bisize = sizeof mac_bi_data;
+struct mac_hw_present mac_hw_present;
+
/* New m68k bootinfo stuff and videobase */
extern int m68k_num_memory;
@@ -76,7 +79,6 @@
extern void psc_init(void);
extern void baboon_init(void);
-extern void (*kd_mksound)(unsigned int, unsigned int);
extern void mac_mksound(unsigned int, unsigned int);
extern void nubus_sweep_video(void);
@@ -85,8 +87,6 @@
extern void mac_debug_init(void);
extern void mac_debugging_long(int, long);
-extern void (*kd_mksound)(unsigned int, unsigned int);
-
extern int mackbd_init_hw(void);
extern void mackbd_leds(unsigned int leds);
extern int mackbd_translate(unsigned char keycode, unsigned char *keycodep, char raw_mode);
@@ -207,7 +207,7 @@
if (!MACH_IS_MAC) {
printk("ERROR: no Mac, but config_mac() called!! \n");
}
-
+
#ifdef CONFIG_VT
#ifdef CONFIG_INPUT_ADBHID
mach_keyb_init = mac_hid_init_hw;
@@ -228,9 +228,12 @@
mach_keyb_init = mackbd_init_hw;
mach_kbd_leds = mackbd_leds;
mach_kbd_translate = mackbd_translate;
+#ifdef CONFIG_MAGIC_SYSRQ
mach_sysrq_xlate = mackbd_sysrq_xlate;
SYSRQ_KEY = 0x69;
+#endif /* CONFIG_MAGIC_SYSRQ */
#endif /* CONFIG_INPUT_ADBHID */
+ kd_mksound = mac_mksound;
#endif /* CONFIG_VT */
mach_sched_init = mac_sched_init;
@@ -252,12 +255,13 @@
mach_reset = mac_reset;
mach_halt = mac_poweroff;
mach_power_off = mac_poweroff;
+#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
+#endif
mach_max_dma_address = 0xffffffff;
#if 0
mach_debug_init = mac_debug_init;
#endif
- kd_mksound = mac_mksound;
#ifdef CONFIG_HEARTBEAT
#if 0
mach_heartbeat = mac_heartbeat;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)