Home
last modified time | relevance | path

Searched refs:ppbus (Results 1 – 25 of 40) sorted by relevance

12

/NextBSD/sys/dev/ppbus/
HDlpbb.c98 device_t ppbus = device_get_parent(dev); in lpbb_callback() local
106 ppb_lock(ppbus); in lpbb_callback()
107 error = ppb_request_bus(ppbus, dev, how); in lpbb_callback()
108 ppb_unlock(ppbus); in lpbb_callback()
113 ppb_lock(ppbus); in lpbb_callback()
114 error = ppb_release_bus(ppbus, dev); in lpbb_callback()
115 ppb_unlock(ppbus); in lpbb_callback()
136 device_t ppbus = device_get_parent(dev); in lpbb_reset_bus() local
138 ppb_assert_locked(ppbus); in lpbb_reset_bus()
139 ppb_wdtr(ppbus, (u_char)~SDA_out); in lpbb_reset_bus()
[all …]
HDppi.c111 device_t ppbus = device_get_parent(ppidev); in ppi_enable_intr() local
113 r = ppb_rctr(ppbus); in ppi_enable_intr()
114 ppb_wctr(ppbus, r | IRQENABLE); in ppi_enable_intr()
123 device_t ppbus = device_get_parent(ppidev); in ppi_disable_intr() local
125 r = ppb_rctr(ppbus); in ppi_disable_intr()
126 ppb_wctr(ppbus, r & ~IRQENABLE); in ppi_disable_intr()
235 device_t ppbus = device_get_parent(ppidev); in ppiintr() local
238 ppb_assert_locked(ppbus); in ppiintr()
241 switch (ppb_1284_get_state(ppbus)) { in ppiintr()
247 if ((ppb_rstr(ppbus) & (SELECT | nBUSY)) == in ppiintr()
[all …]
HDpps.c46 device_t ppbus; member
88 ppstry(device_t ppbus, int send, int expect) in ppstry() argument
92 ppb_wdtr(ppbus, send); in ppstry()
93 i = ppb_rdtr(ppbus); in ppstry()
110 device_t ppbus = device_get_parent(dev); in ppsattach() local
134 ppb_init_callout(ppbus, &sc->timeout, 0); in ppsattach()
136 sc->ppbus = ppbus; in ppsattach()
137 unit = device_get_unit(ppbus); in ppsattach()
146 ppb_lock(ppbus); in ppsattach()
147 if (ppb_request_bus(ppbus, dev, PPB_DONTWAIT)) { in ppsattach()
[all …]
HDlpt.c172 #define NOT_READY(ppbus) ((ppb_rstr(ppbus)^LPS_INVERT)&LPS_MASK) argument
197 device_t ppbus = device_get_parent(dev); in lpt_request_ppbus() local
205 ppb_assert_locked(ppbus); in lpt_request_ppbus()
209 error = ppb_request_bus(ppbus, dev, how); in lpt_request_ppbus()
218 device_t ppbus = device_get_parent(dev); in lpt_release_ppbus() local
222 ppb_assert_locked(ppbus); in lpt_release_ppbus()
224 error = ppb_release_bus(ppbus, dev); in lpt_release_ppbus()
235 lpt_port_test(device_t ppbus, u_char data, u_char mask) in lpt_port_test() argument
240 ppb_wdtr(ppbus, data); in lpt_port_test()
244 temp = ppb_rdtr(ppbus) & mask; in lpt_port_test()
[all …]
HDif_plip.c292 device_t ppbus = device_get_parent(dev); in lp_detach() local
294 ppb_lock(ppbus); in lp_detach()
296 ppb_unlock(ppbus); in lp_detach()
352 device_t ppbus = device_get_parent(sc->sc_dev); in lpstop() local
354 ppb_assert_locked(ppbus); in lpstop()
355 ppb_wctr(ppbus, 0x00); in lpstop()
361 ppb_release_bus(ppbus, sc->sc_dev); in lpstop()
369 device_t ppbus = device_get_parent(dev); in lpinit_locked() local
372 ppb_assert_locked(ppbus); in lpinit_locked()
373 error = ppb_request_bus(ppbus, dev, PPB_DONTWAIT); in lpinit_locked()
[all …]
HDimmio.c285 device_t ppbus = device_get_parent(vpo->vpo_dev); in imm_disconnect() local
297 ppb_MS_microseq(ppbus, vpo->vpo_dev, cpp_microseq, &ret); in imm_disconnect()
309 return (ppb_release_bus(ppbus, vpo->vpo_dev)); in imm_disconnect()
322 device_t ppbus = device_get_parent(vpo->vpo_dev); in imm_connect() local
332 if ((error = ppb_request_bus(ppbus, vpo->vpo_dev, how))) in imm_connect()
340 ppb_MS_microseq(ppbus, vpo->vpo_dev, cpp_microseq, &ret); in imm_connect()
344 ppb_MS_microseq(ppbus, vpo->vpo_dev, cpp_microseq, &ret); in imm_connect()
346 if (PPB_IN_EPP_MODE(ppbus)) in imm_connect()
351 ppb_MS_microseq(ppbus, vpo->vpo_dev, cpp_microseq, &ret); in imm_connect()
373 device_t ppbus = device_get_parent(vpo->vpo_dev); in imm_detect() local
[all …]
HDvpoio.c278 device_t ppbus = device_get_parent(vpo->vpo_dev); in vpoio_disconnect() local
281 ppb_MS_microseq(ppbus, vpo->vpo_dev, disconnect_microseq, &ret); in vpoio_disconnect()
282 return (ppb_release_bus(ppbus, vpo->vpo_dev)); in vpoio_disconnect()
291 device_t ppbus = device_get_parent(vpo->vpo_dev); in vpoio_connect() local
295 if ((error = ppb_request_bus(ppbus, vpo->vpo_dev, how))) { in vpoio_connect()
303 if (PPB_IN_EPP_MODE(ppbus)) in vpoio_connect()
304 ppb_MS_microseq(ppbus, vpo->vpo_dev, connect_epp_microseq, &ret); in vpoio_connect()
306 ppb_MS_microseq(ppbus, vpo->vpo_dev, connect_spp_microseq, &ret); in vpoio_connect()
319 device_t ppbus = device_get_parent(vpo->vpo_dev); in vpoio_reset() local
334 ppb_MS_microseq(ppbus, vpo->vpo_dev, reset_microseq, &ret); in vpoio_reset()
[all …]
HDpcfclock.c82 ctr = (ctr & ~(AUTOFEED)) ^ (val); ppb_wctr(ppbus, ctr)
86 ((ppb_rstr(ppbus) & SELECT) == (i & 1 ? SELECT : 0))
89 #define BIT_SET (ppb_rstr(ppbus)&PERROR)
154 device_t ppbus; in pcfclock_open() local
160 ppbus = device_get_parent(pcfclockdev); in pcfclock_open()
162 ppb_lock(ppbus); in pcfclock_open()
163 res = ppb_request_bus(ppbus, pcfclockdev, in pcfclock_open()
165 ppb_unlock(ppbus); in pcfclock_open()
174 device_t ppbus = device_get_parent(pcfclockdev); in pcfclock_close() local
176 ppb_lock(ppbus); in pcfclock_close()
[all …]
HDvpo.c104 device_t ppbus = device_get_parent(dev); in vpo_probe() local
113 ppb_lock(ppbus); in vpo_probe()
123 ppb_unlock(ppbus); in vpo_probe()
126 ppb_unlock(ppbus); in vpo_probe()
138 device_t ppbus = device_get_parent(dev); in vpo_attach() local
139 struct ppb_data *ppb = device_get_softc(ppbus); /* XXX: layering */ in vpo_attach()
169 ppb_lock(ppbus); in vpo_attach()
172 ppb_unlock(ppbus); in vpo_attach()
175 ppb_unlock(ppbus); in vpo_attach()
430 DRIVER_MODULE(vpo, ppbus, vpo_driver, vpo_devclass, 0, 0);
[all …]
HDppbus_if.m30 #include <dev/ppbus/ppbconf.h>
32 INTERFACE ppbus;
HDppb_base.c44 MODULE_VERSION(ppbus, 1);
/NextBSD/sys/modules/ppbus/
HDMakefile4 .PATH: ${.CURDIR}/../../dev/ppbus
5 KMOD= ppbus
/NextBSD/sys/modules/pps/
HDMakefile4 .PATH: ${.CURDIR}/../../dev/ppbus
/NextBSD/sys/modules/lpt/
HDMakefile4 .PATH: ${.CURDIR}/../../dev/ppbus
/NextBSD/sys/modules/plip/
HDMakefile4 .PATH: ${.CURDIR}/../../dev/ppbus
/NextBSD/sys/modules/i2c/controllers/lpbb/
HDMakefile3 .PATH: ${.CURDIR}/../../../../dev/ppbus
/NextBSD/sys/modules/pcfclock/
HDMakefile3 .PATH: ${.CURDIR}/../../dev/ppbus
/NextBSD/sys/modules/ppi/
HDMakefile4 .PATH: ${.CURDIR}/../../dev/ppbus
/NextBSD/sys/modules/vpo/
HDMakefile3 .PATH: ${.CURDIR}/../../dev/ppbus
/NextBSD/sys/kern/
HDMake.tags.inc23 ${SYS}/dev/ppbus/*.[ch] \
82 ${SYS}/dev/ppbus \
/NextBSD/tools/kerneldoc/subsys/
HDDoxyfile-dev_ppbus14 INPUT = $(DOXYGEN_SRC_PATH)/dev/ppbus/ \
/NextBSD/etc/mtree/
HDBSD.include.dist151 ppbus
/NextBSD/sys/dev/ppc/
HDppcreg.h107 device_t ppbus; /* parallel port chipset corresponding ppbus */ member
HDppc.c1857 ppc->ppbus = device_add_child(dev, "ppbus", -1); in ppc_attach()
1862 device_probe_and_attach(ppc->ppbus); in ppc_attach()
1994 if (dev != ppc->ppbus) in ppc_write_ivar()
2051 MODULE_DEPEND(ppc, ppbus, 1, 1, 1);
/NextBSD/release/picobsd/bridge/
HDPICOBSD87 #device ppbus # Parallel port bus (required)

12