/src/sys/arch/pmax/tc/ |
asc_ioasic.c | 59 bus_space_handle_t sc_scsi_bsh; /* ASC register handle */ 71 #define ASC_READ_REG(asc, reg) \ 72 ((uint8_t)bus_space_read_4((asc)->sc_bst, (asc)->sc_scsi_bsh, \ 74 #define ASC_WRITE_REG(asc, reg, val) \ 75 bus_space_write_4((asc)->sc_bst, (asc)->sc_scsi_bsh, \ 113 if (strncmp("asc", d->iada_modname, TC_ROM_LLEN)) 122 struct asc_softc *asc = device_private(self); local in function:asc_ioasic_attach 123 struct ncr53c9x_softc *sc = &asc->sc_ncr53c9x 197 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_ioasic_reset 216 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_ioasic_setup 291 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_ioasic_go 311 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_ioasic_intr 405 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_ioasic_stop 421 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_read_reg 429 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_write_reg 437 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_dma_isintr 445 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_dma_isactive [all...] |
/src/sys/dev/tc/ |
asc_tc.c | 127 struct asc_softc *asc = device_private(self); local in function:asc_tc_attach 128 struct ncr53c9x_softc *sc = &asc->sc_ncr53c9x; 136 asc->sc_bst = ta->ta_memt; 137 asc->sc_dmat = ta->ta_dmat; 138 if (bus_space_map(asc->sc_bst, ta->ta_addr, 139 PMAZ_OFFSET_RAM + PMAZ_RAM_SIZE, 0, &asc->sc_bsh)) { 143 asc->sc_base = (void *)ta->ta_addr; /* XXX XXX XXX */ 195 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_tc_reset 197 asc->sc_active = 0; 203 struct asc_softc *asc = (struct asc_softc *)sc local in function:asc_tc_intr 231 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_tc_setup 303 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_read_reg 312 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_write_reg 328 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_dma_isactive [all...] |
asc_tcds.c | 86 bus_space_handle_t sc_scsi_bsh; /* ASC register handle */ 149 struct asc_softc *asc = device_private(self); local in function:asc_tcds_attach 150 struct ncr53c9x_softc *sc = &asc->sc_ncr53c9x; 160 asc->sc_bst = tcdsdev->tcdsda_bst; 161 asc->sc_scsi_bsh = tcdsdev->tcdsda_bsh; 162 asc->sc_tcds = tcdsdev->tcdsda_sc; 170 asc->sc_dmat = tcdsdev->tcdsda_dmat; 171 if ((error = bus_dmamap_create(asc->sc_dmat, PAGE_SIZE, 1, PAGE_SIZE, 172 PAGE_SIZE, BUS_DMA_NOWAIT, &asc->sc_dmamap)) < 0) { 233 struct asc_softc *asc = (struct asc_softc *)sc local in function:tcds_dma_reset 250 struct asc_softc *asc = (struct asc_softc *)sc; local in function:tcds_dma_setup 306 struct asc_softc *asc = (struct asc_softc *)sc; local in function:tcds_dma_go 337 struct asc_softc *asc = (struct asc_softc *)sc; local in function:tcds_dma_intr 463 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_read_reg 475 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_write_reg 484 struct asc_softc *asc = (struct asc_softc *)sc; local in function:tcds_dma_isintr 496 struct asc_softc *asc = (struct asc_softc *)sc; local in function:tcds_dma_isactive 504 struct asc_softc *asc = (struct asc_softc *)sc; local in function:tcds_clear_latched_intr [all...] |
/src/sys/arch/vax/vsa/ |
asc_vsbus.c | 125 static uint8_t asc_attached; /* can't have more than one asc */ 177 struct asc_vsbus_softc * const asc = device_private(self); local in function:asc_vsbus_attach 178 struct ncr53c9x_softc * const sc = &asc->sc_ncr53c9x; 188 asc->sc_bst = va->va_memt; 189 asc->sc_dmat = va->va_dmat; 191 error = bus_space_map(asc->sc_bst, va->va_paddr - ASC_REG_NCR, 192 ASC_REG_END, 0, &asc->sc_bsh); 197 error = bus_space_subregion(asc->sc_bst, asc->sc_bsh, ASC_REG_NCR, 198 ASC_REG_END - ASC_REG_NCR, &asc->sc_ncrh) 307 struct asc_vsbus_softc * const asc = (struct asc_vsbus_softc *)sc; local in function:asc_vsbus_read_reg 316 struct asc_vsbus_softc * const asc = (struct asc_vsbus_softc *)sc; local in function:asc_vsbus_write_reg 325 struct asc_vsbus_softc * const asc = (struct asc_vsbus_softc *)sc; local in function:asc_vsbus_dma_isintr 334 struct asc_vsbus_softc * const asc = (struct asc_vsbus_softc *)sc; local in function:asc_vsbus_dma_reset 344 struct asc_vsbus_softc * const asc = (struct asc_vsbus_softc *)sc; local in function:asc_vsbus_dma_intr 400 struct asc_vsbus_softc * const asc = (struct asc_vsbus_softc *)sc; local in function:asc_vsbus_dma_setup 447 struct asc_vsbus_softc * const asc = (struct asc_vsbus_softc *)sc; local in function:asc_vsbus_dma_go 455 struct asc_vsbus_softc * const asc = (struct asc_vsbus_softc *)sc; local in function:asc_vsbus_dma_stop 472 struct asc_vsbus_softc * const asc = (struct asc_vsbus_softc *)sc; local in function:asc_vsbus_dma_isactive [all...] |
/src/sys/arch/arc/jazz/ |
asc.c | 1 /* $NetBSD: asc.c,v 1.26 2019/12/27 09:41:49 msaitoh Exp $ */ 28 __KERNEL_RCSID(0, "$NetBSD: asc.c,v 1.26 2019/12/27 09:41:49 msaitoh Exp $"); 78 CFATTACH_DECL_NEW(asc, sizeof(struct asc_softc), 125 struct asc_softc *asc = device_private(self); local in function:asc_attach 126 struct ncr53c9x_softc *sc = &asc->sc_ncr53c9x; 140 asc->sc_iot = iot = ja->ja_bust; 141 asc->sc_dmat = ja->ja_dmat; 143 if (bus_space_map(iot, ja->ja_addr, ASC_NPORTS, 0, &asc->sc_ioh)) { 149 0, &asc->sc_dmaioh)) { 154 if (bus_dmamap_create(asc->sc_dmat, MAXPHYS, 1, MAXPHYS, 0 253 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_read_reg 261 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_write_reg 276 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_dma_reset 286 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_dma_intr 381 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_dma_setup 425 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_dma_go 437 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_dma_stop 451 struct asc_softc *asc = (struct asc_softc *)sc; local in function:asc_dma_isactive [all...] |
/src/sys/dev/pci/ |
agp_amd64.c | 203 struct agp_amd64_softc *asc; local in function:agp_amd64_attach 211 asc = malloc(sizeof(struct agp_amd64_softc), M_AGP, M_WAITOK | M_ZERO); 226 asc->mctrl_tag[n] = tag; 235 asc->n_mctrl = n; 238 asc->n_mctrl); 241 sc->as_chipc = asc; 245 asc->initial_aperture = AGP_GET_APERTURE(sc); 261 asc->gatt = gatt; 266 if (agp_amd64_uli_set_aperture(sc, asc->initial_aperture)) { 274 asc->ctrl_tag = AGP_AMD64_NVIDIA_PCITAG(pa->pa_pc) 341 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_get_aperture 356 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_set_aperture 395 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_bind_page 409 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_unbind_page 422 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_flush_tlb 438 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_apbase_fixup 453 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_uli_init 467 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_uli_set_aperture 488 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_nvidia_init 505 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_nvidia_set_aperture 532 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_via_init 544 struct agp_amd64_softc *asc = sc->as_chipc; local in function:agp_amd64_via_set_aperture [all...] |
agp_via.c | 90 struct agp_via_softc *asc; local in function:agp_via_attach 94 asc = malloc(sizeof *asc, M_AGP, M_WAITOK|M_ZERO); 95 sc->as_chipc = asc; 103 asc->regs = via_v3_regs; 106 asc->regs = via_v2_regs; 110 asc->regs = via_v2_regs; 116 free(asc, M_AGP); 120 asc->initial_aperture = AGP_GET_APERTURE(sc); 137 asc->gatt = gatt 184 struct agp_via_softc *asc = sc->as_chipc; local in function:agp_via_get_aperture 234 struct agp_via_softc *asc = sc->as_chipc; local in function:agp_via_set_aperture 306 struct agp_via_softc *asc = sc->as_chipc; local in function:agp_via_bind_page 318 struct agp_via_softc *asc = sc->as_chipc; local in function:agp_via_unbind_page 330 struct agp_via_softc *asc = sc->as_chipc; local in function:agp_via_flush_tlb [all...] |
agp_amd.c | 50 #define READ2(off) bus_space_read_2(asc->iot, asc->ioh, off) 51 #define READ4(off) bus_space_read_4(asc->iot, asc->ioh, off) 52 #define WRITE2(off,v) bus_space_write_2(asc->iot, asc->ioh, off, v) 53 #define WRITE4(off,v) bus_space_write_4(asc->iot, asc->ioh, off, v) 170 struct agp_amd_softc *asc; local in function:agp_amd_attach 176 asc = malloc(sizeof *asc, M_AGP, M_WAITOK|M_ZERO) 301 struct agp_amd_softc *asc = sc->as_chipc; local in function:agp_amd_bind_page 313 struct agp_amd_softc *asc = sc->as_chipc; local in function:agp_amd_unbind_page 325 struct agp_amd_softc *asc = sc->as_chipc; local in function:agp_amd_flush_tlb [all...] |
agp_ali.c | 79 struct agp_ali_softc *asc; local in function:agp_ali_attach 84 asc = malloc(sizeof *asc, M_AGP, M_WAITOK); 85 sc->as_chipc = asc; 90 free(asc, M_AGP); 97 asc->initial_aperture = agp_ali_get_aperture(sc); 114 asc->gatt = gatt; 135 struct agp_ali_softc *asc = sc->as_chipc; 148 AGP_SET_APERTURE(sc, asc->initial_aperture); 153 agp_free_gatt(sc, asc->gatt) 215 struct agp_ali_softc *asc = sc->as_chipc; local in function:agp_ali_bind_page 227 struct agp_ali_softc *asc = sc->as_chipc; local in function:agp_ali_unbind_page [all...] |
agp_apple.c | 84 struct agp_apple_softc *asc; local in function:agp_apple_attach 87 asc = malloc(sizeof *asc, M_AGP, M_WAITOK|M_ZERO); 88 sc->as_chipc = asc; 100 asc->initial_aperture = sc->as_apsize; 112 asc->gatt = gatt; 164 struct agp_apple_softc *asc = sc->as_chipc; local in function:agp_apple_bind_page 166 if (offset < 0 || offset >= (asc->gatt->ag_entries << AGP_PAGE_SHIFT)) 169 asc->gatt->ag_virtual[offset >> AGP_PAGE_SHIFT] = htole32(physical); 176 struct agp_apple_softc *asc = sc->as_chipc local in function:agp_apple_unbind_page [all...] |
/src/share/man/man4/man4.pmax/ |
Makefile | 4 MAN= asc.4 autoconf.4 ibus.4 intro.4 pm.4 sii.4 xcfb.4
|
/src/sys/arch/mips/atheros/dev/ |
if_ath_arbus.c | 99 struct ath_arbus_softc *asc = device_private(dv); local in function:ath_arbus_resume 100 ath_resume(&asc->sc_ath); 109 struct ath_arbus_softc *asc; local in function:ath_arbus_attach 117 asc = device_private(self); 118 sc = &asc->sc_ath; 135 asc->sc_iot = aa->aa_bst; 136 rv = bus_space_map(asc->sc_iot, aa->aa_addr, aa->aa_size, 0, 137 &asc->sc_ioh); 145 rv = atheros_get_board_config(&asc->sc_config); 150 asc->sc_config.unit = device_unit(sc->sc_dev) 186 struct ath_arbus_softc *asc = device_private(self); local in function:ath_arbus_detach [all...] |
/src/sys/dev/acpi/ |
igpio_acpi.c | 112 struct igpio_acpi_softc * const asc = device_private(self); local in function:igpio_acpi_attach 122 asc->sc_handle = aa->aa_node->ad_handle; 135 asc->sc_isc.sc_dev = self; 137 asc->sc_isc.sc_bst = aa->aa_memt; 139 asc->sc_isc.sc_nbar = nbar; 140 asc->sc_isc.sc_base = 141 kmem_zalloc(sizeof(*asc->sc_isc.sc_base) * nbar, KM_SLEEP); 142 asc->sc_isc.sc_length = 143 kmem_zalloc(sizeof(*asc->sc_isc.sc_length) * nbar, KM_SLEEP); 144 asc->sc_isc.sc_bsh = 190 struct igpio_acpi_softc * const asc = device_private(self); local in function:igpio_acpi_detach 230 struct igpio_acpi_softc *asc = priv; local in function:igpio_acpi_intr [all...] |
plgpio_acpi.c | 84 struct plgpio_acpi_softc * const asc = device_private(self); local in function:plgpio_acpi_attach 85 struct plgpio_softc * const sc = &asc->sc_base; 95 asc->sc_handle = aa->aa_node->ad_handle; 124 rv = acpi_event_create_gpio(self, asc->sc_handle, plgpio_acpi_register_event, asc); 132 (uint64_t)(uintptr_t)asc->sc_handle, 133 IPL_VM, false, plgpio_acpi_intr, asc, device_xname(self)); 144 struct plgpio_acpi_softc * const asc = priv; local in function:plgpio_acpi_register_event 145 struct plgpio_softc * const sc = &asc->sc_base; 150 if (pin >= __arraycount(asc->sc_event)) 209 struct plgpio_acpi_softc * const asc = priv; local in function:plgpio_acpi_intr [all...] |
acpi_display.c | 516 struct acpidisp_vga_softc *asc = device_private(self); local in function:acpidisp_vga_attach 523 asc->sc_node = ad; 524 asc->sc_dev = self; 525 asc->sc_log = NULL; 527 mutex_init(&asc->sc_mtx, MUTEX_DEFAULT, IPL_NONE); 529 asc->sc_caps = acpidisp_vga_capabilities(ad); 530 asc->sc_policy = acpidisp_default_bios_policy; 531 asc->sc_odinfo = NULL; 533 acpidisp_vga_print_capabilities(self, asc->sc_caps); 540 asc->sc_odinfo = acpidisp_init_odinfo(asc) 572 struct acpidisp_vga_softc *asc = device_private(self); local in function:acpidisp_vga_detach 603 struct acpidisp_vga_softc *asc = device_private(self); local in function:acpidisp_vga_childdetached 776 struct acpidisp_vga_softc *asc = device_private(self); local in function:acpidisp_vga_resume 914 struct acpidisp_vga_softc *asc = device_private(context); local in function:acpidisp_vga_notify_handler 994 struct acpidisp_vga_softc *asc = arg; local in function:acpidisp_vga_cycle_output_device_callback 1059 struct acpidisp_vga_softc *asc = arg; local in function:acpidisp_vga_output_device_change_callback 1316 struct acpidisp_vga_softc *asc; local in function:acpidisp_vga_sysctl_policy 1348 struct acpidisp_vga_softc *asc; local in function:acpidisp_vga_sysctl_policy_output [all...] |
fdc_acpi.c | 98 struct fdc_acpi_softc *asc = device_private(self); local in function:fdc_acpi_attach 99 struct fdc_softc *sc = &asc->sc_fdc; 108 asc->sc_node = aa->aa_node; 134 0, &asc->sc_baseioh)) { 141 sc->sc_ioh = asc->sc_baseioh; 144 if (bus_space_subregion(sc->sc_iot, asc->sc_baseioh, 2, 4, 190 sc->sc_present = fdc_acpi_enumerate(asc); 193 fdc_acpi_getknownfds(asc); 210 fdc_acpi_enumerate(struct fdc_acpi_softc *asc) 212 struct fdc_softc *sc = &asc->sc_fdc [all...] |
joy_acpi.c | 80 struct joy_acpi_softc *asc = device_private(self); local in function:joy_acpi_attach 81 struct joy_softc *sc = &asc->sc_joy; 110 mutex_init(&asc->sc_lock, MUTEX_DEFAULT, IPL_NONE); 111 sc->sc_lock = &asc->sc_lock;
|
mpu_acpi.c | 83 struct mpu_acpi_softc *asc = device_private(self); local in function:mpu_acpi_attach 84 struct mpu_softc *sc = &asc->sc_mpu; 112 sc->lock = &asc->sc_lock; 113 mutex_init(&asc->sc_lock, MUTEX_DEFAULT, IPL_AUDIO);
|
/src/sys/dev/mca/ |
if_elmc_mca.c | 104 struct elmc_mca_softc *asc = device_private(self); local in function:elmc_mca_attach 105 struct ie_softc *sc = &asc->sc_ie; 175 asc->sc_regt = ma->ma_iot; 176 asc->sc_regh = ioh; 240 bus_space_unmap(asc->sc_regt, asc->sc_regh, ELMC_IOADDR_SIZE); 246 revision = (int) bus_space_read_1(asc->sc_regt, asc->sc_regh, 262 myaddr[i] = bus_space_read_1(asc->sc_regt, asc->sc_regh, i) 346 struct elmc_mca_softc* asc = (struct elmc_mca_softc *) sc; local in function:elmc_mca_attn 371 struct elmc_mca_softc* asc = (struct elmc_mca_softc *) sc; local in function:elmc_mca_hwreset [all...] |
/src/share/man/man4/man4.acorn32/ |
Makefile | 3 MAN= asc.4 autoconf.4 cosc.4 csc.4 ie.4 intro.4 iomdkbc.4 \
|
/src/sys/arch/mips/alchemy/dev/ |
com_aubus.c | 88 struct com_aubus_softc *asc = device_private(self); local in function:com_aubus_attach 89 struct com_softc *sc = &asc->sc_com; 95 asc->sc_irq = aa->aa_irq[0]; 136 struct com_aubus_softc *asc = (void *)sc; /* XXX mi prototype */ local in function:com_aubus_enable 139 if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE) && (asc->sc_ih != NULL)) 147 asc->sc_ih = au_intr_establish(asc->sc_irq, 0, IPL_SERIAL, IST_LEVEL, 149 if (asc->sc_ih == NULL) { 161 struct com_aubus_softc *asc = (void *)sc; /* XXX mi prototype */ local in function:com_aubus_disable 168 au_intr_disestablish(asc->sc_ih) [all...] |
/src/sys/dev/isa/ |
if_ai.c | 110 struct ai_softc *asc = (struct ai_softc *)sc; local in function:ai_reset 115 bus_space_write_1(asc->sc_regt, asc->sc_regh, AI_RESET, 0); 131 struct ai_softc *asc = (struct ai_softc *)sc; local in function:ai_atten 133 bus_space_write_1(asc->sc_regt, asc->sc_regh, AI_ATTN, 0); 210 struct ai_softc asc; local in function:ai_match 259 memset(&asc, 0, sizeof asc); 260 asc.sc_regt = iot 300 struct ai_softc *asc = device_private(self); local in function:ai_attach [all...] |
/src/sys/arch/arm/apple/ |
apple_nvme.c | 277 struct apple_nvme_softc * const asc = local in function:apple_nvme_intr_establish 279 const int phandle = asc->asc_phandle; 328 struct apple_nvme_softc * const asc = local in function:apple_nvme_intr_disestablish 339 fdtbus_intr_disestablish(asc->asc_phandle, sc->sc_ih[qid]); 348 struct apple_nvme_softc * const asc) 350 struct nvme_softc * const sc = &asc->asc_nvme; 352 asc->asc_nintrs = 1; 353 asc->asc_phandle = faa->faa_phandle; 355 sc->sc_use_mq = asc->asc_nintrs > 1; 373 struct apple_nvme_softc * const asc = device_private(self) local in function:apple_nvme_attach [all...] |
/src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/ |
vchiq_netbsd_acpi.c | 84 struct vchiq_acpi_softc *asc = device_private(self); local in function:vchiq_acpi_attach 85 struct vchiq_softc *sc = &asc->sc_vchiq; 94 asc->sc_handle = aa->aa_node->ad_handle; 130 struct vchiq_acpi_softc *asc = device_private(self); local in function:vchiq_acpi_defer 131 struct vchiq_softc *sc = &asc->sc_vchiq; 132 ACPI_HANDLE handle = asc->sc_handle;
|
/src/share/man/man4/man4.alpha/ |
Makefile | 3 MAN= apecs.4 asc.4 autoconf.4 cia.4 dwlpx.4 gbus.4 \
|