Home
last modified time | relevance | path

Searched refs:zsc (Results 1 – 25 of 83) sorted by relevance

1234

/netbsd/src/sys/arch/mipsco/obio/
Dzs.c158 CFATTACH_DECL_NEW(zsc, sizeof(struct zsc_softc),
197 struct zsc_softc *zsc = device_private(self); in zs_attach() local
204 zsc->zsc_dev = self; in zs_attach()
205 zsc->zsc_bustag = ca->ca_bustag; in zs_attach()
209 &zsc->zsc_base) != 0) { in zs_attach()
223 ch = &zsc->zsc_cs_store[channel]; in zs_attach()
224 cs = zsc->zsc_cs[channel] = (struct zs_chanstate *)ch; in zs_attach()
234 if (bus_space_subregion(ca->ca_bustag, zsc->zsc_base, in zs_attach()
283 zsc->sc_si = softint_establish(SOFTINT_SERIAL, zssoft, zsc); in zs_attach()
284 bus_intr_establish(zsc->zsc_bustag, SYS_INTR_SCC0, 0, 0, zshard, NULL); in zs_attach()
[all …]
/netbsd/src/sys/arch/sgimips/dev/
Dzs.c211 struct zsc_softc *zsc = device_private(self); in zs_hpc_attach() local
221 zsc->zsc_dev = self; in zs_hpc_attach()
222 zsc->zsc_bustag = haa->ha_st; in zs_hpc_attach()
225 &zsc->zsc_base)) != 0) { in zs_hpc_attach()
245 ch = &zsc->zsc_cs_store[channel]; in zs_hpc_attach()
246 cs = zsc->zsc_cs[channel] = (struct zs_chanstate *)ch; in zs_hpc_attach()
256 if (bus_space_subregion(zsc->zsc_bustag, zsc->zsc_base, in zs_hpc_attach()
263 ch->cs_bustag = zsc->zsc_bustag; in zs_hpc_attach()
333 zsc->sc_si = softint_establish(SOFTINT_SERIAL, zssoft, zsc); in zs_hpc_attach()
336 evcnt_attach_dynamic(&zsc->zsc_intrcnt, EVCNT_TYPE_INTR, NULL, in zs_hpc_attach()
[all …]
/netbsd/src/sys/arch/sparc64/dev/
Dzs.c217 struct zsc_softc *zsc = device_private(self); in zs_attach_sbus() local
222 zsc->zsc_dev = self; in zs_attach_sbus()
260 zsc->zsc_bustag = sa->sa_bustag; in zs_attach_sbus()
261 zsc->zsc_dmatag = sa->sa_dmatag; in zs_attach_sbus()
262 zsc->zsc_promunit = prom_getpropint(sa->sa_node, "slave", -2); in zs_attach_sbus()
263 zsc->zsc_node = sa->sa_node; in zs_attach_sbus()
265 zs_attach(zsc, zsaddr[zs_unit], sa->sa_pri); in zs_attach_sbus()
271 struct zsc_softc *zsc = device_private(self); in zs_attach_fhc() local
276 zsc->zsc_dev = self; in zs_attach_fhc()
320 zsc->zsc_bustag = fa->fa_bustag; in zs_attach_fhc()
[all …]
/netbsd/src/sys/arch/sparc/dev/
Dzs.c237 struct zsc_softc *zsc = device_private(self); in zs_attach_mainbus() local
240 zsc->zsc_dev = self; in zs_attach_mainbus()
241 zsc->zsc_bustag = ma->ma_bustag; in zs_attach_mainbus()
242 zsc->zsc_dmatag = ma->ma_dmatag; in zs_attach_mainbus()
243 zsc->zsc_promunit = prom_getpropint(ma->ma_node, "slave", -2); in zs_attach_mainbus()
244 zsc->zsc_node = ma->ma_node; in zs_attach_mainbus()
250 zs_attach(zsc, ma->ma_promvaddr, ma->ma_pri); in zs_attach_mainbus()
256 struct zsc_softc *zsc = device_private(self); in zs_attach_obio() local
259 zsc->zsc_dev = self; in zs_attach_obio()
297 cs = &zsc->zsc_cs_store[channel]; in zs_attach_obio()
[all …]
/netbsd/src/sys/arch/amiga/dev/
Dslhci_zbus.c92 struct slhci_zbus_softc *zsc; in slhci_zbus_attach() local
99 zsc = device_private(self); in slhci_zbus_attach()
100 sc = &zsc->sc_sc; in slhci_zbus_attach()
104 zsc->sc_bst.base = (bus_addr_t)zap->va; in slhci_zbus_attach()
105 zsc->sc_bst.absm = &amiga_bus_stride_1; in slhci_zbus_attach()
106 iot = &zsc->sc_bst; in slhci_zbus_attach()
119 zsc->sc_isr.isr_intr = slhci_intr; in slhci_zbus_attach()
120 zsc->sc_isr.isr_arg = sc; in slhci_zbus_attach()
121 zsc->sc_isr.isr_ipl = 6; in slhci_zbus_attach()
122 add_isr(&zsc->sc_isr); in slhci_zbus_attach()
[all …]
Dif_ne_zbus.c106 struct ne_zbus_softc *zsc = device_private(self); in ne_zbus_attach() local
107 struct ne2000_softc *nsc = &zsc->sc_ne2000; in ne_zbus_attach()
110 bus_space_tag_t nict = &zsc->sc_bst; in ne_zbus_attach()
121 zsc->sc_bst.base = (u_long)zap->va + 0; in ne_zbus_attach()
123 zsc->sc_bst.absm = &amiga_bus_stride_2; in ne_zbus_attach()
154 zsc->sc_isr.isr_intr = dp8390_intr; in ne_zbus_attach()
155 zsc->sc_isr.isr_arg = dsc; in ne_zbus_attach()
156 zsc->sc_isr.isr_ipl = 2; in ne_zbus_attach()
157 add_isr(&zsc->sc_isr); in ne_zbus_attach()
Dif_ne_xsurf.c119 struct ne_xsurf_softc *zsc = device_private(self); in ne_xsurf_attach() local
120 struct ne2000_softc *nsc = &zsc->sc_ne2000; in ne_xsurf_attach()
125 bus_space_tag_t nict = &zsc->sc_bst; in ne_xsurf_attach()
136 zsc->sc_bst.base = xap->xaa_base; in ne_xsurf_attach()
138 zsc->sc_bst.absm = &amiga_bus_stride_2; in ne_xsurf_attach()
170 zsc->sc_isr.isr_intr = dp8390_intr; in ne_xsurf_attach()
171 zsc->sc_isr.isr_arg = dsc; in ne_xsurf_attach()
172 zsc->sc_isr.isr_ipl = 2; in ne_xsurf_attach()
173 add_isr(&zsc->sc_isr); in ne_xsurf_attach()
Dif_ne_xsh.c98 struct ne_xsh_softc *zsc = device_private(self); in ne_xsh_attach() local
99 struct ne2000_softc *nsc = &zsc->sc_ne2000; in ne_xsh_attach()
110 zsc->sc_bst.base = xap->xaa_base; in ne_xsh_attach()
111 zsc->sc_bst.absm = &amiga_bus_stride_4; in ne_xsh_attach()
115 xsht = &zsc->sc_bst; in ne_xsh_attach()
156 zsc->sc_isr.isr_intr = dp8390_intr; in ne_xsh_attach()
157 zsc->sc_isr.isr_arg = dsc; in ne_xsh_attach()
158 zsc->sc_isr.isr_ipl = 2; in ne_xsh_attach()
159 add_isr(&zsc->sc_isr); in ne_xsh_attach()
Dif_ed_zbus.c106 struct ed_zbus_softc *zsc = device_private(self); in ed_zbus_attach() local
107 struct dp8390_softc *sc = &zsc->sc_dp8390; in ed_zbus_attach()
113 zsc->sc_bst.base = (bus_addr_t)zap->va; in ed_zbus_attach()
114 zsc->sc_bst.absm = &amiga_bus_stride_1; in ed_zbus_attach()
127 sc->sc_regt = &zsc->sc_bst; in ed_zbus_attach()
128 sc->sc_buft = &zsc->sc_bst; in ed_zbus_attach()
154 if (bus_space_map(&zsc->sc_bst, promaddr, ETHER_ADDR_LEN * 2, 0, in ed_zbus_attach()
158 bus_space_read_1(&zsc->sc_bst, promh, i * 2); in ed_zbus_attach()
160 bus_space_unmap(&zsc->sc_bst, promh, ETHER_ADDR_LEN * 2); in ed_zbus_attach()
198 zsc->sc_isr.isr_intr = dp8390_intr; in ed_zbus_attach()
[all …]
/netbsd/src/sys/arch/sun2/dev/
Dzs.c151 zs_attach(struct zsc_softc *zsc, struct zsdevice *zsd, int pri) in zs_attach() argument
179 cs = &zsc->zsc_cs_store[channel]; in zs_attach()
180 zsc->zsc_cs[channel] = cs; in zs_attach()
191 zsc_args.hwflags = zs_console_flags(zsc->zsc_promunit, in zs_attach()
192 zsc->zsc_node, in zs_attach()
237 if ((child = config_found(zsc->zsc_dev, (void *)&zsc_args, in zs_attach()
272 switch(zs_peripheral_type(zsc->zsc_promunit, in zs_attach()
273 zsc->zsc_node, in zs_attach()
300 bus_intr_establish(zsc->zsc_bustag, pri, IPL_SERIAL, 0, zshard, zsc); in zs_attach()
301 if ((zsc->zsc_softintr = softint_establish(SOFTINT_SERIAL, in zs_attach()
[all …]
Dzs_any.c122 struct zsc_softc *zsc = device_private(self); in zs_any_attach() local
126 zsc->zsc_dev = self; in zs_any_attach()
127 zsc->zsc_bustag = ma->ma_bustag; in zs_any_attach()
128 zsc->zsc_dmatag = ma->ma_dmatag; in zs_any_attach()
130 zsc->zsc_promunit = device_unit(self); in zs_any_attach()
131 zsc->zsc_node = 0; in zs_any_attach()
141 zs_attach(zsc, (void *)bh, ma->ma_pri); in zs_any_attach()
/netbsd/src/sys/arch/mvme68k/dev/
Dzs.c130 zs_config(struct zsc_softc *zsc, struct zsdevice *zs, int vector, int pclk) in zs_config() argument
137 zsc_unit = device_unit(zsc->zsc_dev); in zs_config()
146 cs = &zsc->zsc_cs_store[channel]; in zs_config()
147 zsc->zsc_cs[channel] = cs; in zs_config()
198 if (!config_found(zsc->zsc_dev, (void *)&zsc_args, in zs_config()
212 zsc->zsc_softintr_cookie = softint_establish(SOFTINT_SERIAL, in zs_config()
213 (void (*)(void *)) zsc_intr_soft, zsc); in zs_config()
215 assert(zsc->zsc_softintr_cookie); in zs_config()
240 struct zsc_softc *zsc = arg; in zshard_unshared() local
243 rval = zsc_intr_hard(zsc); in zshard_unshared()
[all …]
Dzs_pcc.c106 struct zsc_softc *zsc = device_private(self); in zsc_pcc_attach() local
113 zsc->zsc_dev = self; in zsc_pcc_attach()
132 zs_config(zsc, &zs, PCC_VECBASE + PCCV_ZS, PCLK_147); in zsc_pcc_attach()
134 evcnt_attach_dynamic(&zsc->zsc_evcnt, EVCNT_TYPE_INTR, in zsc_pcc_attach()
135 pccintr_evcnt(zs_level), "rs232", device_xname(zsc->zsc_dev)); in zsc_pcc_attach()
144 pccintr_establish(PCCV_ZS, zshard_shared, zs_level, zsc, NULL); in zsc_pcc_attach()
158 zs_write_reg(zsc->zsc_cs[0], 2, PCC_VECBASE + PCCV_ZS); in zsc_pcc_attach()
159 zs_write_reg(zsc->zsc_cs[0], 9, zs_init_reg[9]); in zsc_pcc_attach()
Dzs_pcctwo.c107 struct zsc_softc *zsc = device_private(self); in zsc_pcctwo_attach() local
114 zsc->zsc_dev = self; in zsc_pcctwo_attach()
128 zs_config(zsc, &zs, vector + PCCTWO_VECBASE, PCLK_162); in zsc_pcctwo_attach()
130 evcnt_attach_dynamic(&zsc->zsc_evcnt, EVCNT_TYPE_INTR, in zsc_pcctwo_attach()
131 pcctwointr_evcnt(zs_level), "rs232", device_xname(zsc->zsc_dev)); in zsc_pcctwo_attach()
136 pcctwointr_establish(vector++, zshard_unshared, zs_level, zsc, NULL); in zsc_pcctwo_attach()
141 zs_write_reg(zsc->zsc_cs[0], 9, zs_init_reg[9]); in zsc_pcctwo_attach()
/netbsd/src/sys/arch/cesfic/dev/
Dzs_pcc.c75 struct zsc_softc *zsc = device_private(self); in zsc_pcc_attach() local
78 zsc->zsc_dev = self; in zsc_pcc_attach()
84 zs_config(zsc, zsbase); in zsc_pcc_attach()
93 (void) isrlink(zshard, zsc, 4, ISRPRI_TTY); in zsc_pcc_attach()
96 zsc->zsc_softintr_cookie = softint_establish(SOFTINT_SERIAL, in zsc_pcc_attach()
97 (void (*)(void *))zsc_intr_soft, zsc); in zsc_pcc_attach()
99 zs_write_reg(zsc->zsc_cs[0], 2, 0x18 + ZSHARD_PRI); in zsc_pcc_attach()
100 zs_write_reg(zsc->zsc_cs[0], 9, ZSWR9_MASTER_IE); in zsc_pcc_attach()
Dzs.c103 zs_config(struct zsc_softc *zsc, char *base) in zs_config() argument
109 zsc_unit = device_unit(zsc->zsc_dev); in zs_config()
138 zsc->zsc_cs[channel] = cs; in zs_config()
167 if (!config_found(zsc->zsc_dev, (void *)&zsc_args, in zs_config()
196 struct zsc_softc *zsc; in zshard() local
201 zsc = device_lookup_private(&zsc_cd, unit); in zshard()
202 if (zsc == NULL) in zshard()
204 rval |= zsc_intr_hard(zsc); in zshard()
205 if ((zsc->zsc_cs[0]->cs_softreq) || in zshard()
206 (zsc->zsc_cs[1]->cs_softreq)) { in zshard()
[all …]
/netbsd/src/sys/arch/macppc/dev/
Dzs.c177 CFATTACH_DECL_NEW(zsc, sizeof(struct zsc_softc),
221 struct zsc_softc *zsc = device_private(self); in zsc_attach() local
236 zsc->zsc_dev = self; in zsc_attach()
260 zsc->zsc_txdmareg[channel] = mapiodev(regs[2], regs[3], false); in zsc_attach()
261 zsc->zsc_txdmacmd[channel] = in zsc_attach()
263 memset(zsc->zsc_txdmacmd[channel], 0, in zsc_attach()
265 dbdma_reset(zsc->zsc_txdmareg[channel]); in zsc_attach()
285 xcs = &zsc->xzsc_xcs_store[channel]; in zsc_attach()
287 zsc->zsc_cs[channel] = cs; in zsc_attach()
410 zshard, zsc, intr_xname); in zsc_attach()
[all …]
/netbsd/src/sys/arch/x68k/dev/
Dzs.c131 CFATTACH_DECL_NEW(zsc, sizeof(struct zsc_softc),
175 struct zsc_softc *zsc = device_private(self); in zs_attach() local
183 zsc->zsc_dev = self; in zs_attach()
186 zsc->zsc_addr = (void *)ia->ia_addr; in zs_attach()
203 cs = &zsc->zsc_cs_store[channel]; in zs_attach()
204 zsc->zsc_cs[channel] = cs; in zs_attach()
213 zc = (volatile void *)IIOV(&zsc->zsc_addr->zs_chan_a); in zs_attach()
215 zc = (volatile void *)IIOV(&zsc->zsc_addr->zs_chan_b); in zs_attach()
274 if (intio_intr_establish(ia->ia_intr, "zs", zshard, zsc)) in zs_attach()
276 zsc->zsc_softintr_cookie = softint_establish(SOFTINT_SERIAL, in zs_attach()
[all …]
/netbsd/src/sys/arch/cobalt/dev/
Dzs.c91 CFATTACH_DECL_NEW(zsc, sizeof(struct zsc_softc),
158 struct zsc_softc *zsc = device_private(self); in zs_attach() local
165 zsc->zsc_dev = self; in zs_attach()
177 cs = &zsc->zsc_cs_store[channel]; in zs_attach()
179 zsc->zsc_cs[channel] = cs; in zs_attach()
239 icu_intr_establish(maa->ma_irq, IST_EDGE, IPL_SERIAL, zshard, zsc); in zs_attach()
240 zsc->zsc_softintr_cookie = softint_establish(SOFTINT_SERIAL, in zs_attach()
241 (void (*)(void *))zsc_intr_soft, zsc); in zs_attach()
247 cs = zsc->zsc_cs[0]; in zs_attach()
273 struct zsc_softc *zsc = arg; in zshard() local
[all …]
/netbsd/src/sys/arch/next68k/dev/
Dzs.c165 CFATTACH_DECL_NEW(zsc, sizeof(struct zsc_softc),
200 struct zsc_softc *zsc = device_private(self); in zs_attach() local
208 zsc->zsc_dev = self; in zs_attach()
217 cs = &zsc->zsc_cs_store[channel]; in zs_attach()
218 zsc->zsc_cs[channel] = cs; in zs_attach()
272 zsc->zsc_softintr_cookie = softint_establish(SOFTINT_SERIAL, in zs_attach()
273 (void (*)(void *))zsc_intr_soft, zsc); in zs_attach()
280 cs = zsc->zsc_cs[0]; in zs_attach()
312 struct zsc_softc *zsc; in zshard() local
320 zsc = device_lookup_private(&zsc_cd, unit); in zshard()
[all …]
/netbsd/src/sys/arch/news68k/dev/
Dzs.c145 CFATTACH_DECL_NEW(zsc, sizeof(struct zsc_softc),
183 struct zsc_softc *zsc = device_private(self); in zs_attach() local
192 zsc->zsc_dev = self; in zs_attach()
207 cs = &zsc->zsc_cs_store[channel]; in zs_attach()
209 zsc->zsc_cs[channel] = cs; in zs_attach()
271 hb_intr_establish(zs_init_reg[2], zshard, ZSHARD_PRI, zsc); in zs_attach()
272 zsc->zsc_softintr_cookie = softint_establish(SOFTINT_SERIAL, in zs_attach()
273 (void (*)(void *))zsc_intr_soft, zsc); in zs_attach()
279 cs = zsc->zsc_cs[0]; in zs_attach()
310 struct zsc_softc *zsc = arg; in zshard() local
[all …]
/netbsd/src/sys/arch/ews4800mips/sbd/
Dzs_sbdio.c110 struct zsc_softc *zsc = device_private(self); in zs_sbdio_attach() local
118 zsc->zsc_dev = self; in zs_sbdio_attach()
122 zsc->zsc_flags = sa->sa_flags; in zs_sbdio_attach()
130 cs = &zsc->zsc_cs_store[channel]; in zs_sbdio_attach()
131 zsc->zsc_cs[channel] = cs; in zs_sbdio_attach()
189 zsc->zsc_si = softint_establish(SOFTINT_SERIAL, in zs_sbdio_attach()
190 (void (*)(void *))zsc_intr_soft, zsc); in zs_sbdio_attach()
191 intr_establish(sa->sa_irq, zshard, zsc); in zs_sbdio_attach()
197 cs = zsc->zsc_cs[0]; in zs_sbdio_attach()
/netbsd/src/sys/arch/sun3/dev/
Dzs.c203 CFATTACH_DECL_NEW(zsc, sizeof(struct zsc_softc),
257 struct zsc_softc *zsc = device_private(self); in zs_attach() local
264 zsc->zsc_dev = self; in zs_attach()
279 cs = &zsc->zsc_cs_store[channel]; in zs_attach()
280 zsc->zsc_cs[channel] = cs; in zs_attach()
336 isr_add_autovect(zshard, zsc, ca->ca_intpri); in zs_attach()
337 zsc->zs_si = softint_establish(SOFTINT_SERIAL, in zs_attach()
338 (void (*)(void *))zsc_intr_soft, zsc); in zs_attach()
345 cs = zsc->zsc_cs[0]; in zs_attach()
386 struct zsc_softc *zsc = arg; in zshard() local
[all …]
/netbsd/src/sys/arch/mac68k/dev/
Dzs.c210 CFATTACH_DECL_NEW(zsc, sizeof(struct zsc_softc),
238 struct zsc_softc *zsc = device_private(self); in zsc_attach() local
245 zsc->zsc_dev = self; in zsc_attach()
259 xcs = &zsc->xzsc_xcs_store[channel]; in zsc_attach()
261 zsc->zsc_cs[channel] = cs; in zsc_attach()
378 add_psc_lev4_intr(PSCINTR_SCCA, zshard, zsc); in zsc_attach()
379 add_psc_lev4_intr(PSCINTR_SCCB, zshard, zsc); in zsc_attach()
381 intr_establish(zshard, zsc, ZSHARD_PRI); in zsc_attach()
383 zsc->zsc_softintr_cookie = softint_establish(SOFTINT_SERIAL, in zsc_attach()
384 (void (*)(void *))zsc_intr_soft, zsc); in zsc_attach()
[all …]
/netbsd/src/sys/arch/newsmips/dev/
Dzs_hb.c195 struct zsc_softc *zsc = device_private(self); in zs_hb_attach() local
202 zsc->zsc_dev = self; in zs_hb_attach()
227 cs = &zsc->zsc_cs_store[channel]; in zs_hb_attach()
228 zsc->zsc_cs[channel] = cs; in zs_hb_attach()
289 zsc->zsc_si = softint_establish(SOFTINT_SERIAL, in zs_hb_attach()
290 (void (*)(void *))zsc_intr_soft, zsc); in zs_hb_attach()
291 hb_intr_establish(intlevel, INTST1_SCC, IPL_SERIAL, zshard_hb, zsc); in zs_hb_attach()
298 cs = zsc->zsc_cs[0]; in zs_hb_attach()

1234