Lines Matching refs:dpt
47 #include <dev/dpt/dpt.h>
102 device_printf(parent, "dpt: dpt_pio_get_conf(%x) failed.\n",
107 child = BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE, "dpt", -1);
109 device_printf(parent, "dpt: BUS_ADD_CHILD() failed!\n");
137 printf("dpt: dpt_pio_get_conf() failed.\n");
154 dpt_softc_t * dpt;
157 dpt = device_get_softc(dev);
158 dpt->dev = dev;
161 dpt->io_rid = 0;
162 dpt->io_type = SYS_RES_IOPORT;
163 dpt->irq_rid = 0;
170 dpt->drq_rid = 0;
171 dpt->drq_res = bus_alloc_resource_any(dev, SYS_RES_DRQ, &dpt->drq_rid,
173 if (!dpt->drq_res) {
178 isa_dma_acquire(rman_get_start(dpt->drq_res));
179 isa_dmacascade(rman_get_start(dpt->drq_res));
195 &dpt->parent_dmat) != 0) {
200 if (dpt_init(dpt) != 0) {
206 dpt_attach(dpt);
208 if (bus_setup_intr(dev, dpt->irq_res, INTR_TYPE_CAM | INTR_ENTROPY |
209 INTR_MPSAFE, NULL, dpt_intr, dpt, &dpt->ih)) {
218 if (dpt->drq_res) {
219 isa_dma_release(rman_get_start(dpt->drq_res));
224 if (dpt)
225 dpt_free(dpt);
233 dpt_softc_t * dpt;
237 dpt = device_get_softc(dev);
239 dma = rman_get_start(dpt->drq_res);
260 "dpt",
265 DRIVER_MODULE(dpt, isa, dpt_isa_driver, dpt_devclass, 0, 0);
266 MODULE_DEPEND(dpt, isa, 1, 1, 1);
267 MODULE_DEPEND(dpt, cam, 1, 1, 1);