Home
last modified time | relevance | path

Searched refs:sc_model (Results 1 – 25 of 57) sorted by relevance

123

/netbsd-src/sys/dev/marvell/
H A Dgt.c223 if (gt_devs[i].model != sc->sc_model) in gt_attach_peripherals()
227 mva.mva_model = sc->sc_model; in gt_attach_peripherals()
252 gt->sc_model = PCI_PRODUCT(gt_read(gt, GTPCI_CD(0))); in gt_attach_common()
257 switch (gt->sc_model) { in gt_attach_common()
305 loaddr = GT_LADDR_GET(gt_read(gt, GT_SCS0_Low_Decode), gt->sc_model); in gt_attach_common()
306 hiaddr = GT_HADDR_GET(gt_read(gt, GT_SCS0_High_Decode), gt->sc_model); in gt_attach_common()
310 loaddr = GT_LADDR_GET(gt_read(gt, GT_SCS1_Low_Decode), gt->sc_model); in gt_attach_common()
311 hiaddr = GT_HADDR_GET(gt_read(gt, GT_SCS1_High_Decode), gt->sc_model); in gt_attach_common()
315 loaddr = GT_LADDR_GET(gt_read(gt, GT_SCS2_Low_Decode), gt->sc_model); in gt_attach_common()
316 hiaddr = GT_HADDR_GET(gt_read(gt, GT_SCS2_High_Decode), gt->sc_model); in gt_attach_common()
[all …]
H A Dehci_mv.c157 int sc_model; member
208 sc->sc_model = mva->mva_model; in mvusb_attach()
275 if (!((sc->sc_model == MARVELL_ORION_1_88F5181 && in mvusb_init()
277 (sc->sc_model == MARVELL_ORION_1_88F5182 && sc->sc_rev <= 1) || in mvusb_init()
278 (sc->sc_model == MARVELL_ORION_2_88F5281 && sc->sc_rev <= 1))) { in mvusb_init()
290 if (!(sc->sc_model == MARVELL_ARMADAXP_MV78460)) { in mvusb_init()
298 if (sc->sc_model == MARVELL_ORION_1_88F5181 && sc->sc_rev <= 1) in mvusb_init()
319 if (sc->sc_model == MARVELL_ORION_1_88F5181 && sc->sc_rev <= 2) in mvusb_init()
321 else if (sc->sc_model == MARVELL_ORION_2_88F5281 && in mvusb_init()
H A Dgtvar.h33 int sc_model; member
H A Dgtpcivar.h33 int sc_model; member
/netbsd-src/sys/arch/hpcarm/dev/
H A Dwzero3_tp.c116 const struct wzero3tp_model *sc_model; member
276 sc->sc_model = wzero3tp_lookup(); in wzero3tp_attach()
277 if (sc->sc_model == NULL) { in wzero3tp_attach()
285 if (sc->sc_model->wait_for_hsync) in wzero3tp_attach()
286 ads7846_wait_for_hsync = sc->sc_model->wait_for_hsync; in wzero3tp_attach()
288 (*sc->sc_model->chip.init)(); in wzero3tp_attach()
297 if (sc->sc_model->calib) { in wzero3tp_attach()
299 __UNCONST(sc->sc_model->calib), 0, 0); in wzero3tp_attach()
321 pxa2x0_gpio_set_function(sc->sc_model->intr_pin, GPIO_IN); in wzero3tp_enable()
326 sc->sc_model->intr_pin, IST_EDGE_FALLING, IPL_TTY, in wzero3tp_enable()
[all …]
H A Dwzero3_ssp.c60 const struct wzero3ssp_model *sc_model; member
153 sc->sc_model = wzero3ssp_lookup(); in wzero3ssp_attach()
154 if (sc->sc_model == NULL) { in wzero3ssp_attach()
162 if (bus_space_map(sc->sc_iot, sc->sc_model->sspaddr, PXA2X0_SSP_SIZE, 0, in wzero3ssp_attach()
183 if (sc->sc_model->sspaddr == PXA2X0_SSP1_BASE) in wzero3ssp_init()
185 else if (sc->sc_model->sspaddr == PXA2X0_SSP2_BASE) in wzero3ssp_init()
/netbsd-src/sys/dev/isa/
H A Dess.c286 if (!ESS_USE_AUDIO1(sc->sc_model)) { in ess_printsc()
449 if (sc->sc_model == ESS_1887 && in ess_config_irq()
482 if (sc->sc_model == ESS_1887) { in ess_config_irq()
516 if (ESS_USE_AUDIO1(sc->sc_model)) in ess_config_irq()
560 if (ESS_USE_AUDIO1(sc->sc_model)) in ess_config_drq()
620 sc->sc_model = ESS_UNSUPPORTED; in ess_identify()
640 sc->sc_model = ESS_688; in ess_identify()
662 sc->sc_model = ESS_1688; in ess_identify()
690 sc->sc_model = ESS_1788; in ess_identify()
699 sc->sc_model = ESS_1868; in ess_identify()
[all …]
H A Dsbdspvar.h163 u_int sc_model; /* DSP model */ member
195 #define ISSBPRO(sc) ((sc)->sc_model == SB_PRO || (sc)->sc_model == SB_JAZZ)
196 #define ISSBPROCLASS(sc) ((sc)->sc_model >= SB_PRO)
197 #define ISSB16CLASS(sc) ((sc)->sc_model >= SB_16)
H A Dsb.c271 if (sc->sc_model >= SB_20) { in sbattach()
292 if (sc->sc_model == SB_JAZZ) in sb_getdev()
298 if (sc->sc_model < sizeof names / sizeof names[0]) in sb_getdev()
299 config = names[sc->sc_model]; in sb_getdev()
H A Dsbdsp.c300 if (sc->sc_model == SB_UNK) { in sbdsp_probe()
372 sc->sc_model = SB_JAZZ; in sbdsp_jazz16_probe()
438 sc->sc_model == SB_JAZZ ? ": <Jazz16>" : ""); in sbdsp_attach()
568 model = uimin(sc->sc_model, SB_16); in sbdsp_init_format()
807 __func__, sc->sc_model, mode, in sbdsp_set_format16()
828 mp = sbdsp_find_mode(sbpmodes, sc->sc_model, play); in sbdsp_set_format8()
831 mr = sbdsp_find_mode(sbrmodes, sc->sc_model, rec); in sbdsp_set_format8()
858 __func__, sc->sc_model, in sbdsp_set_format8()
1219 sc->sc_model = SB_UNK; in sbversion()
1231 sc->sc_model = SB_1; in sbversion()
[all …]
/netbsd-src/sys/dev/i2c/
H A Dds1307.c189 struct dsrtc_model sc_model; member
319 sc->sc_model = *dm; in dsrtc_attach()
334 sc->sc_model.dm_flags |= DSRTC_FLAG_YEAR_START_2K; in dsrtc_attach()
338 if (base_2k) sc->sc_model.dm_flags |= DSRTC_FLAG_YEAR_START_2K; in dsrtc_attach()
342 if ((sc->sc_model.dm_flags & DSRTC_FLAG_TEMP) != 0) { in dsrtc_attach()
413 const struct dsrtc_model * const dm = &sc->sc_model; in dsrtc_read()
454 const struct dsrtc_model * const dm = &sc->sc_model; in dsrtc_write()
520 struct dsrtc_model * const dm = &sc->sc_model; in dsrtc_clock_read_ymdhms()
570 if (sc->sc_model.dm_flags & DSRTC_FLAG_YEAR_START_2K) in dsrtc_clock_read_ymdhms()
584 struct dsrtc_model * const dm = &sc->sc_model; in dsrtc_clock_write_ymdhms()
[all …]
H A Dm41st84.c95 const struct strtc_model *sc_model; member
202 sc->sc_model = sm; in strtc_attach()
257 const struct strtc_model * const sm = sc->sc_model; in strtc_read()
298 const struct strtc_model * const sm = sc->sc_model; in strtc_write()
512 if ((sc->sc_model->sm_flags & STRTC_F_HAS_WDOG) == 0) { in strtc_wdog_config()
/netbsd-src/sys/dev/acpi/
H A Daibs_acpi.c95 bool sc_model; /* new model = true */ member
152 if (sc->sc_model != false) in aibs_attach()
209 sc->sc_model = false; in aibs_init()
216 sc->sc_model = false; in aibs_init()
223 sc->sc_model = false; in aibs_init()
227 sc->sc_model = true; in aibs_init()
263 sc->sc_model = false; in aibs_init()
436 if (sc->sc_model != false) { in aibs_sensor_add()
470 if (sc->sc_model != false) in aibs_sensor_add()
529 if (sc->sc_model != false) { in aibs_sensor_value()
[all …]
/netbsd-src/sys/arch/ews4800mips/sbd/
H A Dmkclock_sbdio.c82 sc->sc_model = "mk48t08"; in mkclock_sbdio_attach()
87 sc->sc_model = "mk48t18"; in mkclock_sbdio_attach()
93 sc->sc_model = "mk48t18"; in mkclock_sbdio_attach()
/netbsd-src/sys/arch/mvme68k/dev/
H A Dtimekeeper.c88 sc->sc_model = "mk48t02"; in timekeeper_attach()
91 sc->sc_model = "mk48t08"; in timekeeper_attach()
/netbsd-src/sys/arch/arm/marvell/
H A Dpci_machdep.c425 !(sc->sc_model == MARVELL_ORION_2_88F5281 && sc->sc_rev == 1) &&
426 !(sc->sc_model == MARVELL_ORION_1_88F5181 && sc->sc_rev == 8)) {
454 (sc->sc_model == MARVELL_ORION_1_88F1181) ?
477 if (sc->sc_model == MARVELL_ORION_1_88F1181) {
480 } else if (sc->sc_model == MARVELL_ORION_1_88F5182) {
/netbsd-src/sys/dev/spi/
H A Dmcp3k.c77 int sc_model; member
199 sc->sc_model = device_cfdata(sc->sc_dev)->cf_flags; in mcp3kadc_attach()
200 model = &mcp3k_models[sc->sc_model]; in mcp3kadc_attach()
288 model = &mcp3k_models[sc->sc_model]; in mcp3kadc_envsys_refresh()
/netbsd-src/sys/arch/sparc/sparc/
H A Dmkclock.c232 sc->sc_model = "mk48t02"; /* Hard-coded sun4 clock */ in clockattach()
234 sc->sc_model = prom_getpropstring(node, "model"); in clockattach()
250 panic("Cannot get nvram size on %s", sc->sc_model); in clockattach()
/netbsd-src/sys/dev/ic/
H A Daha.c866 if (!strncmp(sc->sc_model, "1542C", 5)) { in aha_init()
1032 strcpy(sc->sc_model, "unknown"); in aha_inquire_setup_information()
1077 strcpy(sc->sc_model, "1540"); in aha_inquire_setup_information()
1080 strcpy(sc->sc_model, "1540A/1542A/1542B"); in aha_inquire_setup_information()
1083 strcpy(sc->sc_model, "1640"); in aha_inquire_setup_information()
1086 strcpy(sc->sc_model, "1740"); in aha_inquire_setup_information()
1089 strcpy(sc->sc_model, "1542C"); in aha_inquire_setup_information()
1092 strcpy(sc->sc_model, "1542CF"); in aha_inquire_setup_information()
1095 strcpy(sc->sc_model, "1542CP"); in aha_inquire_setup_information()
1108 sc->sc_model, sc->sc_firmware); in aha_inquire_setup_information()
H A Dbha.c1165 snprintf(sc->sc_model, sizeof(sc->sc_model), "542B"); in bha_info()
1170 snprintf(sc->sc_model, sizeof(sc->sc_model), "742A"); in bha_info()
1173 snprintf(sc->sc_model, sizeof(sc->sc_model), "747A"); in bha_info()
1175 p = sc->sc_model; in bha_info()
1185 while (p > sc->sc_model && (p[-1] == ' ' || p[-1] == '\0')) in bha_info()
1189 while (p > sc->sc_model && (p[-1] == ' ' || p[-1] == '\0')) in bha_info()
1237 if (sc->sc_model[0] == '5') in bha_info()
1278 sc->sc_model, sc->sc_firmware); in bha_info()
H A Drs5c313var.h51 } sc_model; member
H A Dmk48txx.c73 aprint_normal(": %s", sc->sc_model); in mk48txx_attach()
77 if (strcmp(sc->sc_model, mk48txx_models[i].name) == 0) in mk48txx_attach()
H A Dmk48txxvar.h43 const char *sc_model; /* chip model name */ member
/netbsd-src/sys/arch/sparc64/dev/
H A Dmkclock.c248 sc->sc_model = prom_getpropstring(node, "model"); in mkclock_attach()
251 if (sc->sc_model == NULL) in mkclock_attach()
/netbsd-src/sys/arch/evbarm/tsarm/
H A Dtspld.c75 unsigned const char * sc_model; member
169 sc->sc_model = (model ? "TS-7250" : "TS-7200"); in tspldattach()
173 NULL, 0, __UNCONST(sc->sc_model), 0, in tspldattach()
274 sc->sc_model, rev, features); in tspldattach()

123