Searched refs:sc_iot (Results 51 - 75 of 533) sorted by relevance

1234567891011>>

/openbsd-current/sys/dev/fdt/
H A Dbcm2711_rng.c38 (bus_space_read_4((sc)->sc_iot, (sc)->sc_ioh, (reg)))
40 bus_space_write_4((sc)->sc_iot, (sc)->sc_ioh, (reg), (val))
44 bus_space_tag_t sc_iot; member in struct:bcmirng_softc
83 sc->sc_iot = faa->fa_iot;
84 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
H A Dsxirintc.c33 (bus_space_read_4((sc)->sc_iot, (sc)->sc_ioh, (reg)))
35 bus_space_write_4((sc)->sc_iot, (sc)->sc_ioh, (reg), (val))
43 bus_space_tag_t sc_iot; member in struct:sxirintc_softc
79 sc->sc_iot = faa->fa_iot;
80 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
H A Dimxgpio.c59 bus_space_tag_t sc_iot; member in struct:imxgpio_softc
116 sc->sc_iot = faa->fa_iot;
117 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
129 bus_space_write_4(sc->sc_iot, sc->sc_ioh, GPIO_IMR, 0);
130 bus_space_write_4(sc->sc_iot, sc->sc_ioh, GPIO_ISR, ~0);
131 bus_space_write_4(sc->sc_iot, sc->sc_ioh, GPIO_EDGE_SEL, 0);
159 val = bus_space_read_4(sc->sc_iot, sc->sc_ioh, GPIO_GDIR);
164 bus_space_write_4(sc->sc_iot, sc->sc_ioh, GPIO_GDIR, val);
176 reg = bus_space_read_4(sc->sc_iot, sc->sc_ioh, GPIO_DR);
192 reg = bus_space_read_4(sc->sc_iot, s
[all...]
H A Damlsm.c48 bus_space_tag_t sc_iot; member in struct:amlsm_softc
82 sc->sc_iot = faa->fa_iot;
86 bus_space_map(sc->sc_iot, addr, PAGE_SIZE,
93 bus_space_map(sc->sc_iot, addr, PAGE_SIZE,
95 bus_space_unmap(sc->sc_iot, sc->sc_in_ioh, PAGE_SIZE);
104 info = bus_space_vaddr(sc->sc_iot, sc->sc_out_ioh);
H A Dplrtc.c44 bus_space_tag_t sc_iot; member in struct:plrtc_softc
68 tod = bus_space_read_4(sc->sc_iot, sc->sc_ioh, RTCDR);
81 bus_space_write_4(sc->sc_iot, sc->sc_ioh, RTCLR, tv->tv_sec);
106 sc->sc_iot = faa->fa_iot;
107 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
125 bus_space_write_4(sc->sc_iot, sc->sc_ioh, RTCCR, RTCCR_START);
H A Dahci_fdt.c73 sc->sc_iot = faa->fa_iot;
77 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
92 bus_space_write_4(sc->sc_iot, sc->sc_ioh, 0x118, 1U << 22);
95 bus_space_write_4(sc->sc_iot, sc->sc_ioh, AHCI_REG_PI, pi);
108 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_ios);
117 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_ios);
H A Dcdsdhc.c60 bus_space_tag_t sc_iot; member in struct:cdsdhc_softc
69 (bus_space_read_4((sc)->sc_iot, (sc)->sc_ioh, (reg)))
71 bus_space_write_4((sc)->sc_iot, (sc)->sc_ioh, (reg), (val))
103 sc->sc_iot = faa->fa_iot;
105 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr, faa->fa_reg[0].size,
111 if (bus_space_subregion(sc->sc_iot, sc->sc_ioh, SRS_OFFSET, SRS_SIZE,
133 sdhc_host_found(&sc->sc_sdhc, sc->sc_iot, sc->sc_srs_ioh, SRS_SIZE,
140 bus_space_unmap(sc->sc_iot, sc->sc_ioh, faa->fa_reg[0].size);
H A Dimxiomuxc.c43 bus_space_tag_t sc_iot; member in struct:imxiomuxc_softc
86 sc->sc_iot = faa->fa_iot;
87 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
135 bus_space_write_4(sc->sc_iot, sc->sc_ioh, mux_reg, mux_val);
139 bus_space_write_4(sc->sc_iot, sc->sc_ioh,
153 val = bus_space_read_4(sc->sc_iot, sc->sc_ioh,
157 bus_space_write_4(sc->sc_iot, sc->sc_ioh,
160 bus_space_write_4(sc->sc_iot, sc->sc_ioh,
/openbsd-current/sys/arch/arm64/dev/
H A Dapldog.c45 (bus_space_read_4((sc)->sc_iot, (sc)->sc_ioh, (reg)))
47 bus_space_write_4((sc)->sc_iot, (sc)->sc_ioh, (reg), (val))
51 bus_space_tag_t sc_iot; member in struct:apldog_softc
89 sc->sc_iot = faa->fa_iot;
90 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
H A Drpigpio.c95 bus_space_tag_t sc_iot; member in struct:rpigpio_softc
138 sc->sc_iot = faa->fa_iot;
139 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
144 if (bus_space_map(sc->sc_iot, faa->fa_reg[1].addr,
146 bus_space_unmap(sc->sc_iot, sc->sc_gpio_ioh,
151 if (bus_space_map(sc->sc_iot, faa->fa_reg[2].addr,
153 bus_space_unmap(sc->sc_iot, sc->sc_rio_ioh,
155 bus_space_unmap(sc->sc_iot, sc->sc_gpio_ioh,
216 val = bus_space_read_4(sc->sc_iot, sc->sc_rio_ioh, bank->rio + RIO_OE);
221 bus_space_write_4(sc->sc_iot, s
[all...]
/openbsd-current/sys/dev/acpi/
H A Diosf_acpi.c38 bus_space_tag_t sc_iot; member in struct:iosf_acpi_softc
85 sc->sc_iot = aaa->aaa_bst[0];
88 if (bus_space_map(sc->sc_iot, aaa->aaa_addr[0], aaa->aaa_size[0], 0,
128 bus_space_write_4(sc->sc_iot, sc->sc_ioh,
131 bus_space_write_4(sc->sc_iot, sc->sc_ioh, IOSF_ACPI_MBI_MCR, mcr);
133 return (bus_space_read_4(sc->sc_iot, sc->sc_ioh, IOSF_ACPI_MBI_MDR));
142 bus_space_write_4(sc->sc_iot, sc->sc_ioh, IOSF_ACPI_MBI_MDR, mdr);
144 bus_space_write_4(sc->sc_iot, sc->sc_ioh,
148 bus_space_write_4(sc->sc_iot, sc->sc_ioh, IOSF_ACPI_MBI_MCR, mcr);
/openbsd-current/sys/dev/pci/
H A Damdpm.c156 bus_space_tag_t sc_iot; member in struct:amdpm_softc
221 sc->sc_iot = pa->pa_iot;
234 bus_space_map(sc->sc_iot, AMDPM_PMBASE(reg), AMDPM_PMSIZE,
239 if (bus_space_subregion(sc->sc_iot, sc->sc_ioh, AMDPM_SMB_REGS,
268 (void) bus_space_read_4(sc->sc_iot, sc->sc_ioh,
271 if (bus_space_read_1(sc->sc_iot,
277 if (bus_space_read_1(sc->sc_iot, sc->sc_ioh,
289 bus_space_map(sc->sc_iot, AMDPM_PMBASE(reg), AMDPM_SMB_SIZE, 0,
343 if ((bus_space_read_4(sc->sc_iot, sc->sc_ioh, AMDPM_RNGSTAT) &
345 reg = bus_space_read_4(sc->sc_iot, s
[all...]
/openbsd-current/sys/arch/armv7/marvell/
H A Dmvpxa.c37 bus_space_read_4((sc)->sc_iot, (sc)->mbus_ioh, (reg))
39 bus_space_write_4((sc)->sc_iot, (sc)->mbus_ioh, (reg), (val))
52 bus_space_tag_t sc_iot; member in struct:mvpxa_softc
121 sc->sc_iot = faa->fa_iot;
124 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
130 if (bus_space_map(sc->sc_iot, faa->fa_reg[1].addr,
133 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_size);
137 if (bus_space_map(sc->sc_iot, faa->fa_reg[2].addr,
140 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_size);
141 bus_space_unmap(sc->sc_iot, s
[all...]
H A Dmvmpic.c51 bus_space_tag_t sc_iot; member in struct:mpic_softc
108 sc->sc_iot = faa->fa_iot;
109 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
113 if (bus_space_map(sc->sc_iot, faa->fa_reg[1].addr,
119 sc->sc_nintr = (bus_space_read_4(sc->sc_iot, sc->sc_m_ioh,
125 bus_space_write_4(sc->sc_iot, sc->sc_m_ioh, MPIC_ICE, i);
126 bus_space_write_4(sc->sc_iot, sc->sc_c_ioh, MPIC_ISM, i);
130 bus_space_write_4(sc->sc_iot, sc->sc_c_ioh, MPIC_DOORBELL_CAUSE, 0);
133 bus_space_write_4(sc->sc_iot, sc->sc_m_ioh, MPIC_CTRL,
137 bus_space_write_4(sc->sc_iot, s
[all...]
/openbsd-current/sys/arch/octeon/dev/
H A Dogxnexus.c38 bus_space_tag_t sc_iot; member in struct:ogxnexus_softc
44 bus_space_write_8((sc)->sc_iot, (sc)->sc_ioh, (reg))
46 bus_space_write_8((sc)->sc_iot, (sc)->sc_ioh, (reg), (val))
82 sc->sc_iot = faa->fa_iot;
83 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr, faa->fa_reg[0].size,
103 oaa.oaa_iot = sc->sc_iot;
H A Doctrng.c56 bus_space_tag_t sc_iot; member in struct:octrng_softc
91 sc->sc_iot = sc->sc_io->aa_bust;
93 if (bus_space_map(sc->sc_iot, OCTEON_RNG_BASE, OCTRNG_MAP_SIZE, 0,
115 value = bus_space_read_8(sc->sc_iot, sc->sc_ioh, OCTRNG_ENTROPY_REG);
/openbsd-current/sys/arch/sparc64/dev/
H A Dbeeper.c60 bus_space_tag_t sc_iot; member in struct:beeper_softc
100 sc->sc_iot = ea->ea_memtag;
104 if (bus_space_map(sc->sc_iot, ea->ea_vaddrs[0], 0,
109 } else if (ebus_bus_map(sc->sc_iot, 0,
131 bus_space_write_4(sc->sc_iot, sc->sc_ioh, BEEP_REG, 0);
156 bus_space_write_4(sc->sc_iot, sc->sc_ioh, BEEP_REG, 1);
H A Dlpt_ebus.c79 sc->sc_lpt.sc_iot = ea->ea_memtag;
83 sc->sc_lpt.sc_iot = ea->ea_iotag;
89 if (ebus_bus_map(sc->sc_lpt.sc_iot, 0,
93 bus_space_unmap(sc->sc_lpt.sc_iot, sc->sc_lpt.sc_ioh,
/openbsd-current/sys/arch/i386/pci/
H A Dgscpm.c41 bus_space_tag_t sc_iot; member in struct:gscpm_softc
97 sc->sc_iot = pa->pa_iot;
107 bus_space_map(sc->sc_iot, PCI_MAPREG_IO_ADDR(acpibase),
133 return (bus_space_read_4(sc->sc_iot, sc->sc_acpi_ioh, GSCPM_PM_TMR));
144 pctl = bus_space_read_4(sc->sc_iot, sc->sc_acpi_ioh, GSCPM_P_CNT);
158 bus_space_write_4(sc->sc_iot, sc->sc_acpi_ioh, GSCPM_P_CNT, pctl);
/openbsd-current/sys/arch/armv7/imx/
H A Dimxahci.c131 sc->sc_iot = faa->fa_iot;
135 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
170 bus_space_write_4(sc->sc_iot, sc->sc_ioh, SATA_P0PHYCR,
171 bus_space_read_4(sc->sc_iot, sc->sc_ioh, SATA_P0PHYCR) & ~SATA_P0PHYCR_TEST_PDDQ);
173 bus_space_write_4(sc->sc_iot, sc->sc_ioh, SATA_GHC, SATA_GHC_HR);
175 while (!bus_space_read_4(sc->sc_iot, sc->sc_ioh, SATA_VERSIONR));
177 bus_space_write_4(sc->sc_iot, sc->sc_ioh, SATA_CAP,
178 bus_space_read_4(sc->sc_iot, sc->sc_ioh, SATA_CAP) | SATA_CAP_SSS);
180 bus_space_write_4(sc->sc_iot, sc->sc_ioh, SATA_PI, 1);
182 bus_space_write_4(sc->sc_iot, s
[all...]
/openbsd-current/sys/arch/loongson/dev/
H A Dcom_leioc.c75 sc->sc_iot = &leioc_io_space_tag;
77 if (bus_space_map(sc->sc_iot, sc->sc_iobase, COM_NPORTS, 0,
84 sc->sc_iot = comconsiot;
86 if (comcnattach(sc->sc_iot, sc->sc_iobase, comconsrate,
/openbsd-current/sys/dev/ic/
H A Darcofivar.h24 bus_space_tag_t sc_iot; member in struct:arcofi_softc
/openbsd-current/sys/arch/hppa/gsc/
H A Dcom_gsc.c83 sc->sc_iot = ga->ga_iot;
88 if (bus_space_map(sc->sc_iot, sc->sc_iobase, COM_NPORTS,
96 bus_space_unmap(sc->sc_iot, sc->sc_ioh, COM_NPORTS);
97 comcnattach(sc->sc_iot, sc->sc_iobase, comdefaultrate,
/openbsd-current/sys/arch/hppa/dev/
H A Dcom_ssio.c63 sc->sc_iot = saa->saa_iot;
65 if (bus_space_map(sc->sc_iot, sc->sc_iobase, COM_NPORTS,
73 bus_space_unmap(sc->sc_iot, sc->sc_ioh, COM_NPORTS);
74 comcnattach(sc->sc_iot, sc->sc_iobase, comdefaultrate,
/openbsd-current/sys/arch/riscv64/dev/
H A Dsfcc.c34 bus_space_tag_t sc_iot; member in struct:sfcc_softc
75 sc->sc_iot = faa->fa_iot;
76 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
108 bus_space_write_8(sc->sc_iot, sc->sc_ioh, SFCC_FLUSH64, pa);

Completed in 136 milliseconds

1234567891011>>