Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/i386/isa/spic.c
Show First 20 Lines • Show All 344 Lines • ▼ Show 20 Lines | spic_attach(device_t dev) | ||||
spic_call1(sc, 0x82); | spic_call1(sc, 0x82); | ||||
spic_call2(sc, 0x81, 0xff); | spic_call2(sc, 0x81, 0xff); | ||||
spic_call1(sc, 0x92); | spic_call1(sc, 0x92); | ||||
/* There can be only one */ | /* There can be only one */ | ||||
sc->sc_cdev = make_dev(&spic_cdevsw, 0, 0, 0, 0600, "jogdial"); | sc->sc_cdev = make_dev(&spic_cdevsw, 0, 0, 0, 0600, "jogdial"); | ||||
sc->sc_cdev->si_drv1 = sc; | sc->sc_cdev->si_drv1 = sc; | ||||
device_printf(dev, | |||||
"WARNING: This driver is deprecated and will be removed.\n"); | |||||
return 0; | return 0; | ||||
} | } | ||||
static void | static void | ||||
spictimeout(void *arg) | spictimeout(void *arg) | ||||
{ | { | ||||
struct spic_softc *sc = arg; | struct spic_softc *sc = arg; | ||||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |