Lines Matching refs:dev
29 * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/ahc_eisa.c#13 $
33 __FBSDID("$FreeBSD: releng/11.0/sys/dev/aic7xxx/ahc_eisa.c 232882 2012-03-12 19:29:32Z jmallett $");
35 #include <dev/aic7xxx/aic7xxx_osm.h>
37 #include <dev/eisa/eisaconf.h>
40 aic7770_probe(device_t dev)
54 entry = aic7770_find_device(eisa_get_id(dev));
57 device_set_desc(dev, entry->name);
59 iobase = (eisa_get_slot(dev) * EISA_SLOT_SIZE) + AHC_EISA_SLOT_OFFSET;
61 eisa_add_iospace(dev, iobase, AHC_EISA_IOSIZE, RESVADDR_NONE);
64 regs = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE);
66 device_printf(dev, "Unable to map I/O space?!\n");
94 eisa_get_slot(dev), intdef);
99 eisa_add_intr(dev, irq, shared);
101 bus_release_resource(dev, SYS_RES_IOPORT, rid, regs);
106 aic7770_attach(device_t dev)
113 entry = aic7770_find_device(eisa_get_id(dev));
122 name = malloc(strlen(device_get_nameunit(dev)) + 1, M_DEVBUF, M_NOWAIT);
125 strcpy(name, device_get_nameunit(dev));
126 ahc = ahc_alloc(dev, name);
130 ahc_set_unit(ahc, device_get_unit(dev));
133 error = aic_dma_tag_create(ahc, /*parent*/bus_get_dma_tag(dev),
150 ahc->dev_softc = dev;