version 1.80, 2019/10/03 05:16:16 |
version 1.81, 2019/12/01 08:27:54 |
Line 308 struct midi_hw_if_ext umidi_hw_if_mm = { |
|
Line 308 struct midi_hw_if_ext umidi_hw_if_mm = { |
|
.compress = 1, |
.compress = 1, |
}; |
}; |
|
|
int umidi_match(device_t, cfdata_t, void *); |
static int umidi_match(device_t, cfdata_t, void *); |
void umidi_attach(device_t, device_t, void *); |
static void umidi_attach(device_t, device_t, void *); |
void umidi_childdet(device_t, device_t); |
static void umidi_childdet(device_t, device_t); |
int umidi_detach(device_t, int); |
static int umidi_detach(device_t, int); |
int umidi_activate(device_t, enum devact); |
static int umidi_activate(device_t, enum devact); |
|
|
CFATTACH_DECL2_NEW(umidi, sizeof(struct umidi_softc), umidi_match, |
CFATTACH_DECL2_NEW(umidi, sizeof(struct umidi_softc), umidi_match, |
umidi_attach, umidi_detach, umidi_activate, NULL, umidi_childdet); |
umidi_attach, umidi_detach, umidi_activate, NULL, umidi_childdet); |
|
|
int |
static int |
umidi_match(device_t parent, cfdata_t match, void *aux) |
umidi_match(device_t parent, cfdata_t match, void *aux) |
{ |
{ |
struct usbif_attach_arg *uiaa = aux; |
struct usbif_attach_arg *uiaa = aux; |
Line 335 umidi_match(device_t parent, cfdata_t ma |
|
Line 335 umidi_match(device_t parent, cfdata_t ma |
|
return UMATCH_NONE; |
return UMATCH_NONE; |
} |
} |
|
|
void |
static void |
umidi_attach(device_t parent, device_t self, void *aux) |
umidi_attach(device_t parent, device_t self, void *aux) |
{ |
{ |
usbd_status err; |
usbd_status err; |
|
|
return; |
return; |
} |
} |
|
|
void |
static void |
umidi_childdet(device_t self, device_t child) |
umidi_childdet(device_t self, device_t child) |
{ |
{ |
int i; |
int i; |
Line 434 umidi_childdet(device_t self, device_t c |
|
Line 434 umidi_childdet(device_t self, device_t c |
|
sc->sc_mididevs[i].mdev = NULL; |
sc->sc_mididevs[i].mdev = NULL; |
} |
} |
|
|
int |
static int |
umidi_activate(device_t self, enum devact act) |
umidi_activate(device_t self, enum devact act) |
{ |
{ |
struct umidi_softc *sc = device_private(self); |
struct umidi_softc *sc = device_private(self); |
Line 451 umidi_activate(device_t self, enum devac |
|
Line 451 umidi_activate(device_t self, enum devac |
|
} |
} |
} |
} |
|
|
int |
static int |
umidi_detach(device_t self, int flags) |
umidi_detach(device_t self, int flags) |
{ |
{ |
struct umidi_softc *sc = device_private(self); |
struct umidi_softc *sc = device_private(self); |