Ejemplo n.º 1
0
int
btkbd_detach(struct device *self, int flags)
{
    struct btkbd_softc *sc = (struct btkbd_softc *)self;

    return hidkbd_detach(&sc->sc_kbd, flags);
}
Ejemplo n.º 2
0
int
ukbd_detach(struct device *self, int flags)
{
	struct ukbd_softc *sc = (struct ukbd_softc *)self;
	struct hidkbd *kbd = &sc->sc_kbd;
	int rv;

	rv = hidkbd_detach(kbd, flags);

	/* The console keyboard does not get a disable call, so check pipe. */
	if (sc->sc_hdev.sc_state & UHIDEV_OPEN)
		uhidev_close(&sc->sc_hdev);

	return (rv);
}