aboutsummaryrefslogtreecommitdiff
path: root/sys/isa
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>2001-06-30 10:02:32 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>2001-06-30 10:02:32 +0000
commit6c726162da6e9ace516d90f7c88faa0d5670ebb2 (patch)
tree99765e0b6d606fe48d9c02a515750685c8614441 /sys/isa
parent1036bb970ac67adb75d95a1844aa6c1e781fd75e (diff)
downloadsrc-6c726162da6e9ace516d90f7c88faa0d5670ebb2.tar.gz
src-6c726162da6e9ace516d90f7c88faa0d5670ebb2.zip
Add the device resume method to keyboard drivers.
MFC after: 4 weeks
Notes
Notes: svn path=/head/; revision=79022
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/atkbd_isa.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/isa/atkbd_isa.c b/sys/isa/atkbd_isa.c
index 65f0b239e16c..194161217c44 100644
--- a/sys/isa/atkbd_isa.c
+++ b/sys/isa/atkbd_isa.c
@@ -53,11 +53,13 @@ devclass_t atkbd_devclass;
static int atkbdprobe(device_t dev);
static int atkbdattach(device_t dev);
+static int atkbdresume(device_t dev);
static void atkbd_isa_intr(void *arg);
static device_method_t atkbd_methods[] = {
DEVMETHOD(device_probe, atkbdprobe),
DEVMETHOD(device_attach, atkbdattach),
+ DEVMETHOD(device_resume, atkbdresume),
{ 0, 0 }
};
@@ -116,6 +118,18 @@ atkbdattach(device_t dev)
return 0;
}
+static int
+atkbdresume(device_t dev)
+{
+ keyboard_t *kbd;
+
+ kbd = kbd_get_keyboard(kbd_find_keyboard(ATKBD_DRIVER_NAME,
+ device_get_unit(dev)));
+ if (kbd)
+ (*kbdsw[kbd->kb_index]->clear_state)(kbd);
+ return 0;
+}
+
static void
atkbd_isa_intr(void *arg)
{