* [PATCH] pc_keyb.c: hook for keybd controller detection
@ 2002-09-28 4:34 Bjorn Helgaas
0 siblings, 0 replies; only message in thread
From: Bjorn Helgaas @ 2002-09-28 4:34 UTC (permalink / raw)
To: marcelo; +Cc: linux-kernel
This patch adds the ability for architecture-specific code to
determine whether a keyboard controller is present (IA64 uses
ACPI to figure this out).
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.666 -> 1.667
# drivers/char/pc_keyb.c 1.12 -> 1.13
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/09/16 bjorn_helgaas@hp.com 1.667
# Add hook so arch-specific code can determine whether
# keyboard controller is present.
# --------------------------------------------
#
diff -Nru a/drivers/char/pc_keyb.c b/drivers/char/pc_keyb.c
--- a/drivers/char/pc_keyb.c Mon Sep 16 16:39:24 2002
+++ b/drivers/char/pc_keyb.c Mon Sep 16 16:39:24 2002
@@ -69,6 +69,9 @@
static int aux_reconnect = 0;
#endif
+#ifndef kbd_controller_present
+#define kbd_controller_present() 1
+#endif
static spinlock_t kbd_controller_lock = SPIN_LOCK_UNLOCKED;
static unsigned char handle_kbd_event(void);
@@ -895,6 +898,11 @@
void __init pckbd_init_hw(void)
{
+ if (!kbd_controller_present()) {
+ kbd_exists = 0;
+ return;
+ }
+
kbd_request_region();
/* Flush any pending input. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-28 4:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-28 4:34 [PATCH] pc_keyb.c: hook for keybd controller detection Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®