예제 #1
0
void
auvitek_video_rescan(struct auvitek_softc *sc, const char *ifattr,
    const int *locs)
{
	if (ifattr_match(ifattr, "videobus") && sc->sc_videodev == NULL)
		sc->sc_videodev = video_attach_mi(&auvitek_video_if,
		    sc->sc_dev);
}
예제 #2
0
파일: emdtv_dtv.c 프로젝트: ryo/netbsd-src
void
emdtv_dtv_rescan(struct emdtv_softc *sc, const char *ifattr, const int *locs)
{
	struct dtv_attach_args daa;

	daa.hw = &emdtv_dtv_if;
	daa.priv = sc;

	if (ifattr_match(ifattr, "dtvbus") && sc->sc_dtvdev == NULL)
		sc->sc_dtvdev = config_found_ia(sc->sc_dev, "dtvbus",
		    &daa, dtv_print);
}
예제 #3
0
static int
coram_rescan(device_t self, const char *ifattr, const int *locs)
{
	struct coram_softc *sc = device_private(self);
	struct dtv_attach_args daa;

	daa.hw = &coram_dtv_if;
	daa.priv = sc;

	if (ifattr_match(ifattr, "dtvbus") && sc->sc_dtvdev == NULL)
		sc->sc_dtvdev = config_found_ia(sc->sc_dev, "dtvbus",
		    &daa, dtv_print);

	return 0;
}