Lines Matching refs:dev
43 #include <dev/ata/ata-all.h>
50 ata_zbbus_probe(device_t dev)
53 return (ata_probe(dev));
57 ata_zbbus_attach(device_t dev)
63 ch = device_get_softc(dev);
70 io = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
81 resource_int_value(device_get_name(dev), device_get_unit(dev),
84 device_printf(dev, "using a register shift of %d\n", regshift);
87 resource_int_value(device_get_name(dev), device_get_unit(dev),
90 device_printf(dev, "using a register offset of 0x%0x\n",
103 ata_default_registers(dev);
108 ata_generic_hw(dev);
110 return (ata_attach(dev));
114 ata_zbbus_detach(device_t dev)
117 struct ata_channel *ch = device_get_softc(dev);
123 error = ata_detach(dev);
125 bus_release_resource(dev, SYS_RES_MEMORY, 0,
132 ata_zbbus_suspend(device_t dev)
134 struct ata_channel *ch = device_get_softc(dev);
139 return (ata_suspend(dev));
143 ata_zbbus_resume(device_t dev)
145 struct ata_channel *ch = device_get_softc(dev);
150 return (ata_resume(dev));