patch-2.2.18 linux/arch/ppc/kernel/mbx_setup.c
Next file: linux/arch/ppc/kernel/misc.S
Previous file: linux/arch/ppc/kernel/mbx_pci.c
Back to the patch index
Back to the overall index
- Lines: 55
- Date:
Wed Nov 8 23:00:34 2000
- Orig file:
v2.2.17/arch/ppc/kernel/mbx_setup.c
- Orig date:
Sat Sep 9 18:42:33 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/arch/ppc/kernel/mbx_setup.c linux/arch/ppc/kernel/mbx_setup.c
@@ -31,6 +31,7 @@
#include <linux/init.h>
#include <linux/blk.h>
#include <linux/ioport.h>
+#include <linux/delay.h>
#include <asm/mmu.h>
#include <asm/processor.h>
@@ -40,14 +41,25 @@
#include <asm/ide.h>
#include <asm/mbx.h>
#include <asm/machdep.h>
-
+#include <asm/keyboard.h>
+#include <asm/8xx_immap.h>
#include <asm/time.h>
+
#include "local_irq.h"
static int mbx_set_rtc_time(unsigned long time);
unsigned long mbx_get_rtc_time(void);
void mbx_calibrate_decr(void);
+extern int pckbd_setkeycode(unsigned int scancode, unsigned int keycode);
+extern int pckbd_getkeycode(unsigned int scancode);
+extern int pckbd_translate(unsigned char scancode, unsigned char *keycode,
+ char raw_mode);
+extern char pckbd_unexpected_up(unsigned char keycode);
+extern void pckbd_leds(unsigned char leds);
+extern void pckbd_init_hw(void);
+extern unsigned char pckbd_sysrq_xlate[128];
+
extern int mackbd_setkeycode(unsigned int scancode, unsigned int keycode);
extern int mackbd_getkeycode(unsigned int scancode);
extern int mackbd_translate(unsigned char scancode, unsigned char *keycode,
@@ -56,8 +68,6 @@
extern void mackbd_leds(unsigned char leds);
extern void mackbd_init_hw(void);
-extern unsigned long loops_per_sec;
-
unsigned long empty_zero_page[1024];
#ifdef CONFIG_BLK_DEV_RAM
@@ -453,8 +463,8 @@
ppc_md.kbd_leds = pckbd_leds;
ppc_md.kbd_init_hw = pckbd_init_hw;
#ifdef CONFIG_MAGIC_SYSRQ
- ppc_md.kbd_sysrq_xlate = pckbd_sysrq_xlate;
- ppc_md.SYSRQ_KEY = 0x54;
+ ppc_md.sysrq_xlate = pckbd_sysrq_xlate;
+ SYSRQ_KEY = 0x54;
#endif
#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)