/* $NetBSD: joy_ess.c,v 1.2 2005/12/11 12:22:03 christos Exp $ */ #include #include #include #include #include #include #include #include #include #include int joy_ess_match(struct device *, struct cfdata *, void *); void joy_ess_attach(struct device *, struct device *, void *); CFATTACH_DECL(joy_ess, sizeof (struct joy_softc), joy_ess_match, joy_ess_attach, NULL, NULL); int joy_ess_match(struct device *parent, struct cfdata *match, void *aux) { struct audio_attach_args *aa = aux; if (aa->type != AUDIODEV_TYPE_AUX) return (0); return (1); } void joy_ess_attach(struct device *parent, struct device *self, void *aux) { struct ess_softc *esc = (struct ess_softc *)parent; struct joy_softc *sc = (struct joy_softc *)self; printf("\n"); sc->sc_iot = esc->sc_joy_iot; sc->sc_ioh = esc->sc_joy_ioh; joyattach(sc); }