Home
last modified time | relevance | path

Searched refs:sc_chip (Results 1 – 25 of 42) sorted by relevance

12

/netbsd/src/sys/dev/ic/
Dawivar.h70 struct am79c930_softc sc_chip; member
121 #define awi_read_1(sc, off) ((sc)->sc_chip.sc_ops->read_1)(&sc->sc_chip, off)
122 #define awi_read_2(sc, off) ((sc)->sc_chip.sc_ops->read_2)(&sc->sc_chip, off)
123 #define awi_read_4(sc, off) ((sc)->sc_chip.sc_ops->read_4)(&sc->sc_chip, off)
125 ((sc)->sc_chip.sc_ops->read_bytes)(&sc->sc_chip, off, ptr, len)
128 ((sc)->sc_chip.sc_ops->write_1)(&sc->sc_chip, off, val)
130 ((sc)->sc_chip.sc_ops->write_2)(&sc->sc_chip, off, val)
132 ((sc)->sc_chip.sc_ops->write_4)(&sc->sc_chip, off, val)
134 ((sc)->sc_chip.sc_ops->write_bytes)(&sc->sc_chip, off, ptr, len)
Dbwfm.c1046 LIST_INIT(&sc->sc_chip.ch_list); in bwfm_chip_attach()
1055 sc->sc_chip.ch_chip = BWFM_CHIP_CHIPID_ID(val); in bwfm_chip_attach()
1056 sc->sc_chip.ch_chiprev = BWFM_CHIP_CHIPID_REV(val); in bwfm_chip_attach()
1058 if ((sc->sc_chip.ch_chip > 0xa000) || (sc->sc_chip.ch_chip < 0x4000)) in bwfm_chip_attach()
1059 snprintf(sc->sc_chip.ch_name, sizeof(sc->sc_chip.ch_name), in bwfm_chip_attach()
1060 "%d", sc->sc_chip.ch_chip); in bwfm_chip_attach()
1062 snprintf(sc->sc_chip.ch_name, sizeof(sc->sc_chip.ch_name), in bwfm_chip_attach()
1063 "%x", sc->sc_chip.ch_chip); in bwfm_chip_attach()
1072 sc->sc_chip.ch_core_isup = bwfm_chip_ai_isup; in bwfm_chip_attach()
1073 sc->sc_chip.ch_core_disable = bwfm_chip_ai_disable; in bwfm_chip_attach()
[all …]
Dtulip.c200 switch (sc->sc_chip) { in tlp_attach()
220 switch (sc->sc_chip) { in tlp_attach()
244 switch (sc->sc_chip) { in tlp_attach()
271 switch (sc->sc_chip) { in tlp_attach()
292 switch (sc->sc_chip) { in tlp_attach()
377 switch (sc->sc_chip) { in tlp_attach()
439 switch (sc->sc_chip) { in tlp_attach()
1035 switch (sc->sc_chip) { in tlp_intr()
1179 switch (sc->sc_chip) { in tlp_intr()
1545 switch (sc->sc_chip) { in tlp_reset()
[all …]
/netbsd/src/sys/dev/pci/
Digma.c70 struct igma_chip sc_chip; member
346 igma_product_to_chip(pa, &sc->sc_chip); in igma_attach()
354 sc->sc_chip.mmiot = gttmmt; in igma_attach()
356 &sc->sc_chip.mmioh)) { in igma_attach()
360 sc->sc_chip.gttt = gttmmt; in igma_attach()
362 &sc->sc_chip.gtth)) { in igma_attach()
373 sc->sc_chip.gmt = gmt; in igma_attach()
374 sc->sc_chip.gmh = gmh; in igma_attach()
375 sc->sc_chip.gmb = gmb; in igma_attach()
388 sc->sc_chip.vgat = regt; in igma_attach()
[all …]
Dif_tlp_pci.c378 sc->sc_chip = (tulip_chip_t)dce->value; in tlp_pci_attach()
396 switch (sc->sc_chip) { in tlp_pci_attach()
399 sc->sc_chip = TULIP_CHIP_21140A; in tlp_pci_attach()
404 sc->sc_chip = TULIP_CHIP_21143; in tlp_pci_attach()
409 sc->sc_chip = TULIP_CHIP_82C169; in tlp_pci_attach()
414 sc->sc_chip = TULIP_CHIP_MX98713A; in tlp_pci_attach()
419 sc->sc_chip = TULIP_CHIP_MX98715A; in tlp_pci_attach()
421 sc->sc_chip = TULIP_CHIP_MX98715AEC_X; in tlp_pci_attach()
423 sc->sc_chip = TULIP_CHIP_MX98725; in tlp_pci_attach()
439 sc->sc_chip = TULIP_CHIP_AN985; in tlp_pci_attach()
[all …]
Dif_kse.c263 uint32_t sc_chip; member
431 sc->sc_chip = PCI_PRODUCT(pa->pa_id); in kse_attach()
516 if (sc->sc_chip == 0x8841) { in kse_attach()
618 int p = (sc->sc_chip == 0x8842) ? 3 : 1; in kse_attach()
681 ifm = (sc->sc_chip == 0x8841) in kse_ioctl()
797 if (sc->sc_chip == 0x8842) { in kse_init()
809 if (sc->sc_chip == 0x8841) in kse_init()
819 if (sc->sc_chip == 0x8841) in kse_init()
1398 if (sc->sc_chip == 0x8841) { in phy_tick()
1504 nport = (sc->sc_chip == 0x8842) ? 3 : 1; in stat_tick()
[all …]
Dips.c440 const struct ips_chipset *sc_chip; member
566 #define ips_exec(s, c) (s)->sc_chip->ic_exec((s), (c))
567 #define ips_intren(s) (s)->sc_chip->ic_intren((s))
568 #define ips_isintr(s) (s)->sc_chip->ic_isintr((s))
569 #define ips_status(s) (s)->sc_chip->ic_status((s))
642 sc->sc_chip = &ips_chips[IPS_CHIP_COPPERHEAD]; in ips_attach()
644 sc->sc_chip = &ips_chips[IPS_CHIP_MORPHEUS]; in ips_attach()
648 maptype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, sc->sc_chip->ic_bar); in ips_attach()
649 if (pci_mapreg_map(pa, sc->sc_chip->ic_bar, maptype, 0, &sc->sc_iot, in ips_attach()
674 if (sc->sc_chip->ic_id == IPS_CHIP_COPPERHEAD) { in ips_attach()
[all …]
/netbsd/src/sys/arch/hpcmips/dev/
Dtc5165buf.c78 struct tc5165buf_chip *sc_chip; member
113 sc->sc_chip = &tc5165buf_chip; in tc5165buf_attach()
115 callout_init(&sc->sc_chip->scc_soft_ch, 0); in tc5165buf_attach()
117 sc->sc_chip->scc_cst = ca->ca_csio.cstag; in tc5165buf_attach()
119 if (bus_space_map(sc->sc_chip->scc_cst, ca->ca_csio.csbase, in tc5165buf_attach()
120 ca->ca_csio.cssize, 0, &sc->sc_chip->scc_csh)) { in tc5165buf_attach()
125 sc->sc_chip->scc_enabled = 0; in tc5165buf_attach()
146 tc5165buf_ifsetup(sc->sc_chip); in tc5165buf_attach()
148 haa.haa_ic = &sc->sc_chip->scc_if; in tc5165buf_attach()
193 struct tc5165buf_chip *scc = sc->sc_chip; in tc5165buf_intr()
Dm38813c.c69 struct m38813c_chip *sc_chip; member
101 sc->sc_chip = &m38813c_chip; in m38813c_attach()
102 sc->sc_chip->scc_cst = ca->ca_csio.cstag; in m38813c_attach()
104 if (bus_space_map(sc->sc_chip->scc_cst, ca->ca_csio.csbase, in m38813c_attach()
105 ca->ca_csio.cssize, 0, &sc->sc_chip->scc_csh)) { in m38813c_attach()
121 m38813c_ifsetup(sc->sc_chip); in m38813c_attach()
123 haa.haa_ic = &sc->sc_chip->scc_if; in m38813c_attach()
173 return (m38813c_poll(sc->sc_chip)); in m38813c_intr()
Dplumvideo.c104 struct video_chip sc_chip; member
208 video_attach_drawfunc(&sc->sc_chip); in plumvideo_attach()
209 tx_conf_register_video(sc->sc_pc->pc_tc, &sc->sc_chip); in plumvideo_attach()
237 struct video_chip *chip = &sc->sc_chip; in plumvideo_hpcfbinit()
307 struct video_chip *chip = &sc->sc_chip; in plumvideo_init()
/netbsd/src/sys/arch/hpcarm/dev/
Dj720kbd.c74 struct j720kbd_chip *sc_chip; member
114 sc->sc_chip = &j720kbd_chip; in j720kbd_attach()
115 sc->sc_chip->scc_ssp = device_private(parent); in j720kbd_attach()
116 sc->sc_chip->scc_enabled = 0; in j720kbd_attach()
122 j720kbd_ifsetup(sc->sc_chip); in j720kbd_attach()
128 haa.haa_ic = &sc->sc_chip->scc_if; in j720kbd_attach()
170 struct j720ssp_softc *ssp = sc->sc_chip->scc_ssp; in j720kbd_intr()
174 return j720kbd_poll(sc->sc_chip); in j720kbd_intr()
/netbsd/src/sys/arch/hpcmips/vr/
Dvrkiu.c158 sc->sc_chip = vrkiu_consdata; in vrkiuattach()
160 sc->sc_chip = &sc->sc_chip_body; in vrkiuattach()
161 vrkiu_init(sc->sc_chip, iot, ioh); in vrkiuattach()
163 sc->sc_chip->kc_sc = sc; in vrkiuattach()
177 haa.haa_ic = &sc->sc_chip->kc_if; in vrkiuattach()
217 vrkiu_read(sc->sc_chip, KIUINT) & 7, in vrkiu_intr()
218 vrkiu_read(sc->sc_chip, KIUSCANS) & KIUSCANS_SSTAT_MASK)); in vrkiu_intr()
227 vrkiu_write(sc->sc_chip, KIUINT, 0x7); /* Clear all interrupt */ in vrkiu_intr()
231 if ((vrkiu_read(sc->sc_chip, KIUSCANS) & KIUSCANS_SSTAT_MASK) == in vrkiu_intr()
235 vrkiu_scan(sc->sc_chip); in vrkiu_intr()
Dvrkiuvar.h51 struct vrkiu_chip *sc_chip; member
/netbsd/src/sys/dev/pcmcia/
Dif_awi_pcmcia.c198 sc->sc_chip.sc_bustype = AM79C930_BUS_PCMCIA; in awi_pcmcia_attach()
199 sc->sc_chip.sc_iot = cfe->iospace[0].handle.iot; in awi_pcmcia_attach()
200 sc->sc_chip.sc_ioh = cfe->iospace[0].handle.ioh; in awi_pcmcia_attach()
202 sc->sc_chip.sc_memt = cfe->memspace[0].handle.memt; in awi_pcmcia_attach()
203 sc->sc_chip.sc_memh = cfe->memspace[0].handle.memh; in awi_pcmcia_attach()
204 am79c930_chip_init(&sc->sc_chip, 1); in awi_pcmcia_attach()
206 am79c930_chip_init(&sc->sc_chip, 0); in awi_pcmcia_attach()
/netbsd/src/sys/arch/hpcmips/tx/
Dtxcom.c99 struct txcom_chip *sc_chip; member
216 sc->sc_chip = &txcom_chip; in txcom_attach()
218 sc->sc_chip = kmem_zalloc(sizeof(struct txcom_chip), in txcom_attach()
222 chip = sc->sc_chip; in txcom_attach()
422 struct txcom_chip *chip = sc->sc_chip; in txcom_pulse_mode()
588 struct txcom_chip *chip = sc->sc_chip; in txcom_break()
597 struct txcom_chip *chip = sc->sc_chip; in txcom_modem()
643 if (!ISSET(sc->sc_chip->sc_hwflags, TXCOM_HW_CONSOLE)) { in txcom_shutdown()
644 txcom_disable(sc->sc_chip); in txcom_shutdown()
666 printf("%s frame error\n", __txcom_slotname(sc->sc_chip->sc_slot)); in txcom_frameerr_intr()
[all …]
Dtx3912video.c88 struct video_chip *sc_chip; member
147 sc->sc_chip = chip = &tx3912video_chip; in tx3912video_attach()
177 video_attach_drawfunc(sc->sc_chip); in tx3912video_attach()
178 tx_conf_register_video(tc, sc->sc_chip); in tx3912video_attach()
209 struct video_chip *chip = sc->sc_chip; in tx3912video_power()
240 struct video_chip *chip = sc->sc_chip; in tx3912video_hpcfbinit()
611 return (mips_btop(sc->sc_chip->vc_fbpaddr + offset)); in tx3912video_mmap()
716 if (sc->sc_chip->vc_fbdepth == 8) { in tx3912video_clut_install()
725 tx_chipset_tag_t tc = sc->sc_chip->vc_v; in tx3912video_clut_init()
727 if (sc->sc_chip->vc_fbdepth != 8) { in tx3912video_clut_init()
[all …]
/netbsd/src/sys/dev/nand/
Dnand_bbt.c51 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_init()
73 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_scan()
101 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_page_has_bbt()
119 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_get_bbt_from_page()
161 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_load()
204 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_block_mark()
223 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_block_isbad()
Dnand.c132 struct nand_chip *chip = &sc->sc_chip; in nand_attach()
189 struct nand_chip *chip = &sc->sc_chip; in nand_search()
228 struct nand_chip *chip = &sc->sc_chip; in nand_attach_mtdparts()
238 struct nand_chip *chip = &sc->sc_chip; in nand_detach()
614 struct nand_chip *chip = &sc->sc_chip; in nand_address_column()
638 struct nand_chip *chip = &sc->sc_chip; in nand_address_row()
685 struct nand_chip *chip = &sc->sc_chip; in nand_default_read_page()
773 struct nand_chip *chip = &sc->sc_chip; in nand_default_program_page()
841 struct nand_chip *chip = &sc->sc_chip; in nand_read_oob()
862 struct nand_chip *chip = &sc->sc_chip; in nand_write_oob()
[all …]
/netbsd/src/sys/dev/cardbus/
Dif_tlp_cardbus.c245 sc->sc_chip = tcp->tcp_chip; in tlp_cardbus_attach()
264 switch (sc->sc_chip) { in tlp_cardbus_attach()
267 sc->sc_chip = TULIP_CHIP_21143; in tlp_cardbus_attach()
279 sc->sc_chip = TULIP_CHIP_AN985; in tlp_cardbus_attach()
283 sc->sc_chip = TULIP_CHIP_AN983; in tlp_cardbus_attach()
295 tlp_chip_name(sc->sc_chip), in tlp_cardbus_attach()
328 switch (sc->sc_chip) { in tlp_cardbus_attach()
346 switch (sc->sc_chip) { in tlp_cardbus_attach()
538 switch (sc->sc_chip) { in tlp_cardbus_setup()
/netbsd/src/sys/arch/hpcsh/dev/hd64465/
Dhd64465uart.c67 struct hd64465uart_chip *sc_chip; member
157 sc->sc_chip = &hd64465uart_chip; in hd64465uart_attach()
161 if (!sc->sc_chip->console) in hd64465uart_attach()
164 bus_space_map(sc->sc_chip->io_tag, 0, 8, 0, &ioh); in hd64465uart_attach()
165 com_init_regs(&csc->sc_regs, sc->sc_chip->io_tag, ioh, 0); in hd64465uart_attach()
/netbsd/src/sys/arch/hpcsh/dev/hd64461/
Dhd64461uart.c70 struct hd64461uart_chip *sc_chip; member
174 sc->sc_chip = &hd64461uart_chip; in hd64461uart_attach()
178 if (!sc->sc_chip->console) in hd64461uart_attach()
181 bus_space_map(sc->sc_chip->io_tag, 0x0, 8, 0, &ioh); in hd64461uart_attach()
183 hd64461uart_init_regs(&csc->sc_regs, sc->sc_chip->io_tag, ioh, 0x0); in hd64461uart_attach()
/netbsd/src/sys/dev/sdmmc/
Dif_bwfm_sdio.c468 bwfm->sc_chip.ch_chip, bwfm->sc_chip.ch_chiprev)); in bwfm_sdio_attachhook()
473 if (bwfm->sc_chip.ch_chip == BRCM_CC_4335_CHIP_ID && in bwfm_sdio_attachhook()
474 bwfm->sc_chip.ch_chiprev >= 2) in bwfm_sdio_attachhook()
475 bwfm->sc_chip.ch_chip = BRCM_CC_4339_CHIP_ID; in bwfm_sdio_attachhook()
478 bwfm->sc_chip.ch_chip, bwfm->sc_chip.ch_chiprev, in bwfm_sdio_attachhook()
1166 (u_long)bwfm->sc_chip.ch_rambase)); in bwfm_sdio_load_microcode()
1168 err = bwfm_sdio_ram_read_write(sc, bwfm->sc_chip.ch_rambase, in bwfm_sdio_load_microcode()
1175 err = bwfm_sdio_ram_read_write(sc, bwfm->sc_chip.ch_rambase, in bwfm_sdio_load_microcode()
1186 (u_long)bwfm->sc_chip.ch_rambase + bwfm->sc_chip.ch_ramsize in bwfm_sdio_load_microcode()
1189 err = bwfm_sdio_ram_read_write(sc, bwfm->sc_chip.ch_rambase + in bwfm_sdio_load_microcode()
[all …]
/netbsd/src/sys/dev/nor/
Dnor.c144 struct nor_chip * const chip = &sc->sc_chip; in nor_attach()
202 struct nor_chip * const chip = &sc->sc_chip; in nor_search()
237 struct nor_chip * const chip = &sc->sc_chip; in nor_detach()
427 struct nor_chip * const chip = &sc->sc_chip; in nor_default_read_page()
466 struct nor_chip * const chip = &sc->sc_chip; in nor_default_program_page()
522 struct nor_chip * const chip = &sc->sc_chip; in nor_flash_erase()
600 struct nor_chip * const chip = &sc->sc_chip; in nor_flash_write_unaligned()
728 struct nor_chip * const chip = &sc->sc_chip; in nor_flash_write()
792 struct nor_chip * const chip = &sc->sc_chip; in nor_flash_read_unaligned()
864 struct nor_chip * const chip = &sc->sc_chip; in nor_flash_read()
[all …]
/netbsd/src/sys/arch/newsmips/apbus/
Dif_tlp_ap.c132 sc->sc_chip = TULIP_CHIP_21140A; in tlp_ap_attach()
134 sc->sc_chip = TULIP_CHIP_21140; in tlp_ap_attach()
142 tlp_chip_name(sc->sc_chip), in tlp_ap_attach()
/netbsd/src/sys/dev/usb/
Dif_bwfm_usb.c198 uint32_t sc_chip; member
349 sc->sc_chip = le32toh(brom.chip); in bwfm_usb_attachhook()
369 if (sc->sc_chip != BRCMF_POSTBOOT_ID) { in bwfm_usb_attachhook()
371 sc->sc_chip, sc->sc_chiprev, NULL, in bwfm_usb_attachhook()
406 sc->sc_chip = le32toh(brom.chip); in bwfm_usb_attachhook()

12