/netbsd/sys/dev/pci/ |
H A D | mvsata_pci.c | 383 bus_space_write_4(psc->psc_iot, psc->psc_ioh, in mvsata_pci_misc_reset() 391 bus_space_write_4(psc->psc_iot, psc->psc_ioh, in mvsata_pci_misc_reset() 396 bus_space_write_4(psc->psc_iot, psc->psc_ioh, in mvsata_pci_misc_reset() 398 bus_space_write_4(psc->psc_iot, psc->psc_ioh, in mvsata_pci_misc_reset() 400 bus_space_write_4(psc->psc_iot, psc->psc_ioh, in mvsata_pci_misc_reset() 405 bus_space_write_4(psc->psc_iot, psc->psc_ioh, in mvsata_pci_misc_reset() 407 bus_space_write_4(psc->psc_iot, psc->psc_ioh, in mvsata_pci_misc_reset() 409 bus_space_write_4(psc->psc_iot, psc->psc_ioh, in mvsata_pci_misc_reset() 411 bus_space_write_4(psc->psc_iot, psc->psc_ioh, in mvsata_pci_misc_reset() 413 bus_space_write_4(psc->psc_iot, psc->psc_ioh, in mvsata_pci_misc_reset() [all …]
|
H A D | virtio_pci.c | 343 bus_space_unmap(psc->sc_iot, psc->sc_ioh, in virtio_pci_detach() 363 &psc->sc_iot, &psc->sc_ioh, NULL, &psc->sc_iosize)) { in virtio_pci_attach_09() 367 psc->sc_mapped_iosize = psc->sc_iosize; in virtio_pci_attach_09() 376 psc->sc_notify_iot = psc->sc_iot; in virtio_pci_attach_09() 385 psc->sc_isr_iot = psc->sc_iot; in virtio_pci_attach_09() 467 psc->sc_notify_iot = psc->sc_bars_iot[i]; in virtio_pci_attach_10() 494 psc->sc_isr_iot = psc->sc_bars_iot[i]; in virtio_pci_attach_10() 504 psc->sc_iot = psc->sc_bars_iot[i]; in virtio_pci_attach_10() 614 bus_space_write_2(psc->sc_iot, psc->sc_ioh, in virtio_pci_read_queue_size_09() 1169 pci_intr_release(psc->sc_pa.pa_pc, psc->sc_ihp, psc->sc_ihs_num); in virtio_pci_free_interrupts() [all …]
|
H A D | if_athn_pci.c | 193 &psc->psc_ioh, NULL, &psc->psc_mapsz); in athn_pci_attach() 208 psc->psc_ih = pci_intr_establish_xname(psc->psc_pc, psc->psc_pih, in athn_pci_attach() 232 pci_intr_disestablish(psc->psc_pc, psc->psc_ih); in athn_pci_attach() 235 bus_space_unmap(psc->psc_iot, psc->psc_ioh, psc->psc_mapsz); in athn_pci_attach() 249 pci_intr_disestablish(psc->psc_pc, psc->psc_ih); in athn_pci_detach() 253 bus_space_unmap(psc->psc_iot, psc->psc_ioh, psc->psc_mapsz); in athn_pci_detach() 281 pci_intr_disestablish(psc->psc_pc, psc->psc_ih); in athn_pci_suspend() 302 psc->psc_ih = pci_intr_establish_xname(psc->psc_pc, psc->psc_pih, in athn_pci_resume() 332 bus_space_barrier(psc->psc_iot, psc->psc_ioh, 0, psc->psc_mapsz, in athn_pci_write_barrier() 343 reg = pci_conf_read(psc->psc_pc, psc->psc_tag, in athn_pci_disable_aspm() [all …]
|
H A D | if_rtw_pci.c | 194 psc->psc_pc = pa->pa_pc; in rtw_pci_attach() 210 pci_conf_read(psc->psc_pc, psc->psc_tag, 0x80)); in rtw_pci_attach() 249 intrstr = pci_intr_string(psc->psc_pc, psc->psc_pih, intrbuf, sizeof(intrbuf)); in rtw_pci_attach() 250 psc->psc_ih = pci_intr_establish_xname(psc->psc_pc, psc->psc_pih, in rtw_pci_attach() 287 if (psc->psc_ih != NULL) in rtw_pci_detach() 288 pci_intr_disestablish(psc->psc_pc, psc->psc_ih); in rtw_pci_detach() 301 psc->psc_ih = pci_intr_establish_xname(psc->psc_pc, psc->psc_pih, in rtw_pci_resume() 320 pci_intr_disestablish(psc->psc_pc, psc->psc_ih); in rtw_pci_suspend() 321 psc->psc_ih = NULL; in rtw_pci_suspend() 334 rc = pci_activate(psc->psc_pc, psc->psc_tag, self, NULL); in rtw_pci_setup() [all …]
|
H A D | xhci_pci.c | 93 val = pci_conf_read(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_USB3PRM); in xhci_pci_port_route() 106 val = pci_conf_read(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_USB2PRM); in xhci_pci_port_route() 110 pci_conf_write(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_XUSB2PR, val); in xhci_pci_port_route() 111 val = pci_conf_read(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_XUSB2PR); in xhci_pci_port_route() 192 psc->sc_pc = pc; in xhci_pci_attach() 193 psc->sc_tag = tag; in xhci_pci_attach() 233 psc->sc_ih = pci_intr_establish_xname(pc, psc->sc_pihp[0], IPL_USB, in xhci_pci_attach() 303 pci_intr_disestablish(psc->sc_pc, psc->sc_ih); in xhci_pci_attach() 307 pci_intr_release(psc->sc_pc, psc->sc_pihp, 1); in xhci_pci_attach() 341 pci_intr_disestablish(psc->sc_pc, psc->sc_ih); in xhci_pci_detach() [all …]
|
H A D | fwohci_pci.c | 107 fwohci_init(&psc->psc_sc); in fwohci_pci_attach() 109 psc->psc_sc.fc.dev = self; in fwohci_pci_attach() 111 psc->psc_pc = pa->pa_pc; in fwohci_pci_attach() 112 psc->psc_tag = pa->pa_tag; in fwohci_pci_attach() 116 &psc->psc_sc.bst, &psc->psc_sc.bsh, NULL, &psc->psc_sc.bssize)) { in fwohci_pci_attach() 183 pci_intr_disestablish(psc->psc_pc, psc->psc_ih); in fwohci_pci_detach() 184 psc->psc_ih = NULL; in fwohci_pci_detach() 186 if (psc->psc_sc.bssize) { in fwohci_pci_detach() 187 bus_space_unmap(psc->psc_sc.bst, psc->psc_sc.bsh, in fwohci_pci_detach() 188 psc->psc_sc.bssize); in fwohci_pci_detach() [all …]
|
H A D | ahcisata_pci.c | 396 intrstr = pci_intr_string(psc->sc_pc, psc->sc_pihp[vec], intrbuf, in ahci_pci_intr_establish() 398 psc->sc_ih[vec] = pci_intr_establish_xname(psc->sc_pc, in ahci_pci_intr_establish() 452 psc->sc_nintr = counts[pci_intr_type(pa->pa_pc, psc->sc_pihp[0])]; in ahci_pci_attach() 453 psc->sc_ih = kmem_zalloc(sizeof(void *) * psc->sc_nintr, KM_SLEEP); in ahci_pci_attach() 478 reg = pci_conf_read(psc->sc_pc, psc->sc_pcitag, PCI_COMMAND_STATUS_REG); in ahci_pci_attach() 480 pci_conf_write(psc->sc_pc, psc->sc_pcitag, PCI_COMMAND_STATUS_REG, reg); in ahci_pci_attach() 490 pci_intr_release(psc->sc_pc, psc->sc_pihp, psc->sc_nintr); in ahci_pci_attach() 519 sc = &psc->ah_sc; in ahci_pci_detach() 535 kmem_free(psc->sc_ih, sizeof(void *) * psc->sc_nintr); in ahci_pci_detach() 536 psc->sc_ih = NULL; in ahci_pci_detach() [all …]
|
H A D | if_tlp_pci.c | 318 if (cur == psc) in tlp_pci_check_slaved() 995 if (psc->sc_master) in tlp_pci_attach() 1001 psc->sc_master = psc; in tlp_pci_attach() 1004 psc, sc_intrq); in tlp_pci_attach() 1043 pci_intr_disestablish(psc->sc_pc, psc->sc_ih); in tlp_pci_attach() 1044 psc->sc_ih = NULL; in tlp_pci_attach() 1051 psc->sc_mapsize = 0; in tlp_pci_attach() 1067 pci_intr_disestablish(psc->sc_pc, psc->sc_ih); in tlp_pci_detach() 1068 psc->sc_ih = NULL; in tlp_pci_detach() 1126 psc->sc_flags |= in tlp_pci_znyx_21040_quirks() [all …]
|
H A D | if_ath_pci.c | 164 psc->sc_pc = pc; in ath_pci_attach() 170 if (!ath_pci_setup(psc)) in ath_pci_attach() 184 &psc->sc_ioh, NULL, &psc->sc_mapsz) != 0) { in ath_pci_attach() 201 psc->sc_ih = pci_intr_establish_xname(pc, psc->sc_pih, IPL_NET, in ath_pci_attach() 221 psc->sc_ih = NULL; in ath_pci_attach() 223 bus_space_unmap(psc->sc_iot, psc->sc_ioh, psc->sc_mapsz); in ath_pci_attach() 224 psc->sc_mapsz = 0; in ath_pci_attach() 241 pci_intr_disestablish(psc->sc_pc, psc->sc_ih); in ath_pci_detach() 242 psc->sc_ih = NULL; in ath_pci_detach() 246 bus_space_unmap(psc->sc_iot, psc->sc_ioh, psc->sc_mapsz); in ath_pci_detach() [all …]
|
H A D | if_ex_pci.c | 244 psc->psc_pc = pc; in ex_pci_attach() 245 psc->psc_tag = pa->pa_tag; in ex_pci_attach() 256 &psc->sc_funct, &psc->sc_funch, NULL, NULL)) { in ex_pci_attach() 305 bus_space_write_4(psc->sc_funct, psc->sc_funch, PCI_INTR, in ex_pci_attach() 317 bus_space_write_4(psc->sc_funct, psc->sc_funch, PCI_INTR, in ex_pci_intr_ack() 366 reg = pci_conf_read(psc->psc_pc, psc->psc_tag, PCI_COMMAND_STATUS_REG); in ex_pci_confreg_restore() 368 pci_conf_write(psc->psc_pc, psc->psc_tag, in ex_pci_confreg_restore() 372 pci_conf_write(psc->psc_pc, psc->psc_tag, PCI_BHLC_REG, in ex_pci_confreg_restore() 374 pci_conf_write(psc->psc_pc, psc->psc_tag, PCI_CBIO, in ex_pci_confreg_restore() 377 pci_conf_write(psc->psc_pc, psc->psc_tag, PCI_FUNCMEM, in ex_pci_confreg_restore() [all …]
|
H A D | if_malo_pci.c | 102 struct malo_softc *sc = &psc->sc_malo; in malo_pci_attach() 111 psc->sc_pc = pa->pa_pc; in malo_pci_attach() 129 NULL, &psc->sc_mapsize1); in malo_pci_attach() 148 NULL, &psc->sc_mapsize2); in malo_pci_attach() 168 psc->sc_ih = pci_intr_establish_xname(psc->sc_pc, ih, IPL_NET, in malo_pci_attach() 170 if (psc->sc_ih == NULL) { in malo_pci_attach() 188 failih: pci_intr_disestablish(psc->sc_pc, psc->sc_ih); in malo_pci_attach() 189 psc->sc_ih = NULL; in malo_pci_attach() 203 if (psc->sc_ih != NULL) { in malo_pci_detach() 204 pci_intr_disestablish(psc->sc_pc, psc->sc_ih); in malo_pci_detach() [all …]
|
H A D | if_fxp_pci.c | 261 if (((reg = pci_conf_read(psc->psc_pc, psc->psc_tag, in fxp_pci_confreg_restore() 265 reg = pci_conf_read(psc->psc_pc, psc->psc_tag, PCI_COMMAND_STATUS_REG); in fxp_pci_confreg_restore() 268 pci_conf_write(psc->psc_pc, psc->psc_tag, PCI_COMMAND_STATUS_REG, in fxp_pci_confreg_restore() 271 pci_conf_write(psc->psc_pc, psc->psc_tag, PCI_BHLC_REG, in fxp_pci_confreg_restore() 273 pci_conf_write(psc->psc_pc, psc->psc_tag, PCI_MAPREG_START+0x0, in fxp_pci_confreg_restore() 275 pci_conf_write(psc->psc_pc, psc->psc_tag, PCI_MAPREG_START+0x4, in fxp_pci_confreg_restore() 277 pci_conf_write(psc->psc_pc, psc->psc_tag, PCI_MAPREG_START+0x8, in fxp_pci_confreg_restore() 285 fxp_pci_confreg_restore(psc); in fxp_pci_resume() 495 psc->psc_pc = pc; in fxp_pci_attach() 496 psc->psc_tag = pa->pa_tag; in fxp_pci_attach() [all …]
|
/netbsd/sys/dev/pckbport/ |
H A D | alps.c | 161 if ((res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, in pms_alps_e6sig() 165 if ((res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, in pms_alps_e6sig() 169 if ((res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, in pms_alps_e6sig() 173 if ((res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, in pms_alps_e6sig() 179 if ((res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, in pms_alps_e6sig() 717 pckbport_flush(psc->sc_kbctag, psc->sc_kbcslot); in pms_alps_probe_init() 762 pms_alps_input_v7, psc, device_xname(psc->sc_dev)); in pms_alps_probe_init() 765 pms_alps_input_v2, psc, device_xname(psc->sc_dev)); in pms_alps_probe_init() 776 (void)pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, in pms_alps_probe_init() 1102 psc->packet[psc->inputstate++] = data & 0xff; in pms_alps_input_v2() [all …]
|
H A D | elantech.c | 234 psc->packet[psc->inputstate++] = data & 0xff; in pms_elantech_input() 261 psc->packet[0], psc->packet[1], psc->packet[2], in pms_elantech_input() 262 psc->packet[3], psc->packet[4], psc->packet[5]); in pms_elantech_input() 288 psc->packet[0], psc->packet[1], psc->packet[2], in pms_elantech_input() 289 psc->packet[3], psc->packet[4], psc->packet[5]); in pms_elantech_input() 324 pckbport_flush(psc->sc_kbctag, psc->sc_kbcslot); in pms_elantech_probe_init() 327 if ((res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, in pms_elantech_probe_init() 354 res = pms_sliced_command(psc->sc_kbctag, psc->sc_kbcslot, in pms_elantech_probe_init() 357 res |= pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, in pms_elantech_probe_init() 384 pckbport_set_inputhandler(psc->sc_kbctag, psc->sc_kbcslot, in pms_elantech_probe_init() [all …]
|
H A D | synaptics.c | 249 res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, in synaptics_special_write() 490 res = pms_sliced_command(psc->sc_kbctag, psc->sc_kbcslot, in pms_synaptics_probe_init() 624 pckbport_set_inputhandler(psc->sc_kbctag, psc->sc_kbcslot, in pms_synaptics_probe_init() 625 pms_synaptics_input, psc, device_xname(psc->sc_dev)); in pms_synaptics_probe_init() 1462 if ((psc->packet[0] ^ psc->packet[3]) & 0x02) { in pms_synaptics_parse() 1467 psc->packet[0], psc->packet[1], psc->packet[2], in pms_synaptics_parse() 1468 psc->packet[3], psc->packet[4], psc->packet[5]); in pms_synaptics_parse() 1526 u_char bstate = (psc->packet[0] ^ psc->packet[3]) in pms_synaptics_parse() 1717 timersub(&psc->current, &psc->last, &diff); in pms_synaptics_input() 1732 psc->last = psc->current; in pms_synaptics_input() [all …]
|
/netbsd/sys/net/lagg/ |
H A D | if_laggproto.c | 162 psc = kmem_zalloc(sizeof(*psc), KM_NOSLEEP); in lagg_proto_alloc() 163 if (psc == NULL) in lagg_proto_alloc() 169 kmem_free(psc, sizeof(*psc)); in lagg_proto_alloc() 181 return psc; in lagg_proto_alloc() 192 kmem_free(psc->psc_ctx, psc->psc_ctxsiz); in lagg_proto_free() 194 kmem_free(psc, sizeof(*psc)); in lagg_proto_free() 390 if (psc == NULL) in lagg_fail_attach() 396 *xpsc = psc; in lagg_fail_attach() 520 if (psc == NULL) in lagg_lb_attach() 523 lb = psc->psc_ctx; in lagg_lb_attach() [all …]
|
/netbsd/sys/arch/sgimips/dev/ |
H A D | pic.c | 108 reg = bus_space_read_4(psc.iot, psc.ioh, PIC_SYSID); in pic_attach() 113 reg = bus_space_read_4(psc.iot, psc.ioh, PIC_CPUCTRL); in pic_attach() 116 bus_space_write_4(psc.iot, psc.ioh, PIC_CPUCTRL, reg); in pic_attach() 119 reg = bus_space_read_4(psc.iot, psc.ioh, PIC_MODE); in pic_attach() 171 bus_space_write_4(psc.iot, psc.ioh, PIC_GIO32ARB_BURST, in pic_attach() 175 bus_space_write_4(psc.iot, psc.ioh, PIC_GIO32ARB_DELAY, in pic_attach() 208 bus_space_write_4(psc.iot, psc.ioh, PIC_PARITY_ERROR, 0); in pic_bus_reset() 224 reg = bus_space_read_4(psc.iot, psc.ioh, PIC_CPUCTRL); in pic_watchdog_enable() 226 bus_space_write_4(psc.iot, psc.ioh, PIC_CPUCTRL, reg); in pic_watchdog_enable() 234 reg = bus_space_read_4(psc.iot, psc.ioh, PIC_CPUCTRL); in pic_watchdog_disable() [all …]
|
/netbsd/sys/arch/arm/nvidia/ |
H A D | tegra_xusb.c | 231 psc->sc_phandle = faa->faa_phandle; in tegra_xusb_attach() 276 if (psc->sc_ih == NULL) { in tegra_xusb_attach() 291 if (psc->sc_ih_mbox == NULL) { in tegra_xusb_attach() 402 tegra_xusb_init_regulators(psc); in tegra_xusb_attach() 404 tegra_xusb_init(psc); in tegra_xusb_attach() 439 if (tegra_xusb_open_fw(psc) != 0) in tegra_xusb_mountroot() 575 xusb_mailbox_send(psc, msg); in tegra_xusb_intr_mbox() 580 xusb_mailbox_send(psc, msg); in tegra_xusb_intr_mbox() 747 switch (psc->sc_txd->txd_type) { in tegra_xusb_open_fw() 782 &psc->sc_fw_dma); in tegra_xusb_open_fw() [all …]
|
/netbsd/sys/arch/evbppc/virtex/dev/ |
H A D | tft_plb.c | 89 struct tft_softc *sc = &psc->psc_sc; in plb_tft_attach() 92 psc->psc_dmat = vaa->vaa_dmat; in plb_tft_attach() 113 if ((error = bus_dmamem_map(psc->psc_dmat, &psc->psc_seg, nseg, in plb_tft_attach() 123 if ((error = bus_dmamap_load(psc->psc_dmat, psc->psc_dmap, in plb_tft_attach() 142 bus_dmamap_sync(psc->psc_dmat, psc->psc_dmap, 0, in plb_tft_attach() 160 bus_dmamap_destroy(psc->psc_dmat, psc->psc_dmap); in plb_tft_attach() 164 bus_dmamem_free(psc->psc_dmat, &psc->psc_seg, nseg); in plb_tft_attach() 175 struct plb_tft_softc *psc = vc->cookie; in plb_tft_mmap() local 179 if (offs < psc->psc_sc.sc_size) in plb_tft_mmap() 180 pa = bus_dmamem_mmap(psc->psc_dmat, &psc->psc_seg, 1, in plb_tft_mmap() [all …]
|
/netbsd/sys/dev/pcmcia/ |
H A D | if_mbe_pcmcia.c | 171 psc->sc_pf = pa->pf; in mbe_pcmcia_attach() 228 psc->sc_state = MBE_PCMCIA_ATTACHED; in mbe_pcmcia_attach() 260 psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, mb86960_intr, in mbe_pcmcia_enable() 262 if (!psc->sc_ih) in mbe_pcmcia_enable() 267 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in mbe_pcmcia_enable() 268 psc->sc_ih = 0; in mbe_pcmcia_enable() 279 pcmcia_function_disable(psc->sc_pf); in mbe_pcmcia_disable() 280 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in mbe_pcmcia_disable() 281 psc->sc_ih = 0; in mbe_pcmcia_disable() 325 pcmcia_mem_unmap(psc->sc_pf, mwindow); in mbe_pcmcia_get_enaddr_from_mem() [all …]
|
H A D | slhci_pcmcia.c | 91 psc->sc_slhci.sc_dev = self; in slhci_pcmcia_attach() 92 psc->sc_slhci.sc_bus.ub_hcpriv = &psc->sc_slhci; in slhci_pcmcia_attach() 94 psc->sc_pf = pf; in slhci_pcmcia_attach() 95 psc->sc_flags = 0; in slhci_pcmcia_attach() 97 slhci_pcmcia_enable(psc, 1); in slhci_pcmcia_attach() 107 slhci_pcmcia_enable(psc, 0); in slhci_pcmcia_detach() 120 pf = psc->sc_pf; in slhci_pcmcia_enable() 121 sc = &psc->sc_slhci; in slhci_pcmcia_enable() 146 if (psc->sc_ih == NULL) { in slhci_pcmcia_enable() 162 psc->sc_flags |= PFL_ENABLED; in slhci_pcmcia_enable() [all …]
|
H A D | if_ep_pcmcia.c | 227 psc->sc_pf = pa->pf; in ep_pcmcia_attach() 258 &psc->sc_pcioh) == 0) in ep_pcmcia_attach() 266 &psc->sc_pcioh) == 0) in ep_pcmcia_attach() 275 sc->sc_iot = psc->sc_pcioh.iot; in ep_pcmcia_attach() 283 &psc->sc_io_window)) { in ep_pcmcia_attach() 330 pcmcia_io_unmap(psc->sc_pf, psc->sc_io_window); in ep_pcmcia_attach() 332 pcmcia_io_free(psc->sc_pf, &psc->sc_pcioh); in ep_pcmcia_attach() 334 psc->sc_io_window = -1; in ep_pcmcia_attach() 343 if (psc->sc_io_window == -1) in ep_pcmcia_detach() 352 pcmcia_io_unmap(psc->sc_pf, psc->sc_io_window); in ep_pcmcia_detach() [all …]
|
H A D | if_an_pcmcia.c | 123 struct an_softc *sc = &psc->sc_an; in an_pcmcia_attach() 129 psc->sc_pf = pa->pf; in an_pcmcia_attach() 163 psc->sc_state = AN_PCMCIA_ATTACHED; in an_pcmcia_attach() 185 error = an_detach(&psc->sc_an); in an_pcmcia_detach() 201 psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, an_intr, sc); in an_pcmcia_enable() 202 if (!psc->sc_ih) in an_pcmcia_enable() 207 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in an_pcmcia_enable() 208 psc->sc_ih = 0; in an_pcmcia_enable() 219 pcmcia_function_disable(psc->sc_pf); in an_pcmcia_disable() 220 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in an_pcmcia_disable() [all …]
|
H A D | aic_pcmcia.c | 113 struct aic_softc *sc = &psc->sc_aic; in aic_pcmcia_attach() 120 psc->sc_pf = pf; in aic_pcmcia_attach() 147 psc->sc_state = AIC_PCMCIA_ATTACHED; in aic_pcmcia_attach() 178 struct aic_softc *sc = &psc->sc_aic; in aic_pcmcia_enable() 183 psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_BIO, in aic_pcmcia_enable() 185 if (!psc->sc_ih) in aic_pcmcia_enable() 190 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in aic_pcmcia_enable() 191 psc->sc_ih = 0; in aic_pcmcia_enable() 198 pcmcia_function_disable(psc->sc_pf); in aic_pcmcia_enable() 199 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in aic_pcmcia_enable() [all …]
|
/netbsd/sys/arch/zaurus/dev/ |
H A D | ziic.c | 98 psc->sc_dev = self; in pxaiic_attach() 99 psc->sc_iot = pxa->pxa_iot; in pxaiic_attach() 100 psc->sc_addr = pxa->pxa_addr; in pxaiic_attach() 101 psc->sc_size = pxa->pxa_size; in pxaiic_attach() 102 psc->sc_flags = 0; in pxaiic_attach() 103 if (pxa2x0_i2c_attach_sub(psc)) { in pxaiic_attach() 112 pxa2x0_i2c_intr, &psc); in pxaiic_attach() 141 pxa2x0_i2c_open(psc); in pxaiic_acquire_bus() 152 pxa2x0_i2c_close(psc); in pxaiic_release_bus() 161 return pxa2x0_i2c_send_start(psc, flags); in pxaiic_send_start() [all …]
|