Lines Matching refs:dpt
52 #include <dev/dpt/dpt.h>
79 dpt_softc_t * dpt;
82 dpt = device_get_softc(dev);
83 dpt->dev = dev;
87 dpt->io_rid = DPT_PCI_MEMADDR;
88 dpt->io_type = SYS_RES_MEMORY;
89 dpt->io_res = bus_alloc_resource_any(dev, dpt->io_type,
90 &dpt->io_rid, RF_ACTIVE);
92 if (dpt->io_res == NULL) {
93 dpt->io_rid = DPT_PCI_IOADDR;
94 dpt->io_type = SYS_RES_IOPORT;
95 dpt->io_res = bus_alloc_resource_any(dev, dpt->io_type,
96 &dpt->io_rid, RF_ACTIVE);
99 if (dpt->io_res == NULL) {
104 dpt->io_offset = 0x10;
106 dpt->irq_rid = 0;
107 dpt->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &dpt->irq_rid,
109 if (dpt->irq_res == NULL) {
118 if (rman_get_start(dpt->io_res) == (ISA_PRIMARY_WD_ADDRESS - 0x10)) {
141 &dpt->parent_dmat) != 0) {
146 if (dpt_init(dpt) != 0) {
152 dpt_attach(dpt);
154 if (bus_setup_intr(dev, dpt->irq_res, INTR_TYPE_CAM | INTR_ENTROPY |
155 INTR_MPSAFE, NULL, dpt_intr, dpt, &dpt->ih)) {
160 gone_in_dev(dev, 12, "dpt(4) driver");
167 dpt_free(dpt);
182 "dpt",
187 DRIVER_MODULE(dpt, pci, dpt_pci_driver, dpt_devclass, 0, 0);
188 MODULE_DEPEND(dpt, pci, 1, 1, 1);
189 MODULE_DEPEND(dpt, cam, 1, 1, 1);