-/* $OpenBSD: pckbd.c,v 1.26 2010/07/21 20:10:17 miod Exp $ */
+/* $OpenBSD: pckbd.c,v 1.27 2010/07/22 14:26:38 deraadt Exp $ */
/* $NetBSD: pckbd.c,v 1.24 2000/06/05 22:20:57 sommerfeld Exp $ */
/*-
int pckbdprobe(struct device *, void *, void *);
void pckbdattach(struct device *, struct device *, void *);
-int pckbd_activate(struct device *, int);
struct cfattach pckbd_ca = {
sizeof(struct pckbd_softc),
pckbdprobe,
pckbdattach,
NULL,
- pckbd_activate
+ NULL
};
int pckbd_enable(void *, int);
sc->sc_wskbddev = config_found(self, &a, wskbddevprint);
}
-int
-pckbd_activate(struct device *self, int act)
-{
- switch (act) {
- case DVACT_SUSPEND:
- pckbd_enable(self, 0);
- break;
- case DVACT_RESUME:
- pckbd_enable(self, 1);
- break;
- }
- return (0);
-}
-
int
pckbd_enable(v, on)
void *v;