aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/atkbdc/atkbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/atkbdc/atkbd.c')
-rw-r--r--sys/dev/atkbdc/atkbd.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/sys/dev/atkbdc/atkbd.c b/sys/dev/atkbdc/atkbd.c
index b74587635d9e..ddf266abf531 100644
--- a/sys/dev/atkbdc/atkbd.c
+++ b/sys/dev/atkbdc/atkbd.c
@@ -74,7 +74,6 @@ typedef struct atkbd_state {
} atkbd_state_t;
static void atkbd_timeout(void *arg);
-static void atkbd_shutdown_final(void *v);
static int atkbd_reset(KBDC kbdc, int flags, int c);
#define HAS_QUIRK(p, q) (((atkbdc_softc_t *)(p))->quirks & q)
@@ -151,9 +150,6 @@ atkbd_attach_unit(device_t dev, keyboard_t **kbd, int irq, int flags)
if (bootverbose)
(*sw->diag)(*kbd, bootverbose);
- EVENTHANDLER_REGISTER(shutdown_final, atkbd_shutdown_final, *kbd,
- SHUTDOWN_PRI_DEFAULT);
-
return 0;
}
@@ -1148,30 +1144,6 @@ atkbd_poll(keyboard_t *kbd, int on)
return 0;
}
-static void
-atkbd_shutdown_final(void *v)
-{
-#ifdef __sparc64__
- keyboard_t *kbd = v;
- KBDC kbdc = ((atkbd_state_t *)kbd->kb_data)->kbdc;
-
- /*
- * Turn off the translation in preparation for handing the keyboard
- * over to the OFW as the OBP driver doesn't use translation and
- * also doesn't disable it itself resulting in a broken keymap at
- * the boot prompt. Also disable the aux port and the interrupts as
- * the OBP driver doesn't use them, i.e. polls the keyboard. Not
- * disabling the interrupts doesn't cause real problems but the
- * responsiveness is a bit better when they are turned off.
- */
- send_kbd_command(kbdc, KBDC_DISABLE_KBD);
- set_controller_command_byte(kbdc,
- KBD_AUX_CONTROL_BITS | KBD_KBD_CONTROL_BITS | KBD_TRANSLATION,
- KBD_DISABLE_AUX_PORT | KBD_DISABLE_KBD_INT | KBD_ENABLE_KBD_PORT);
- send_kbd_command(kbdc, KBDC_ENABLE_KBD);
-#endif
-}
-
static int
atkbd_reset(KBDC kbdc, int flags, int c)
{
@@ -1468,14 +1440,6 @@ init_keyboard(KBDC kbdc, int *type, int flags)
}
}
-#if defined(__sparc64__)
- if (send_kbd_command_and_data(
- kbdc, KBDC_SET_SCANCODE_SET, 2) != KBD_ACK) {
- printf("atkbd: can't set translation.\n");
- }
- c |= KBD_TRANSLATION;
-#endif
-
/*
* Some keyboards require a SETLEDS command to be sent after
* the reset command before they will send keystrokes to us