Lines Matching defs:dev
77 #include <dev/amr/amrio.h>
78 #include <dev/amr/amrreg.h>
79 #include <dev/amr/amrvar.h>
80 #include <dev/amr/amr_tables.h>
83 static int amrd_probe(device_t dev);
84 static int amrd_attach(device_t dev);
85 static int amrd_detach(device_t dev);
203 amrd_probe(device_t dev)
208 device_set_desc(dev, "LSILogic MegaRAID logical drive");
213 amrd_attach(device_t dev)
215 struct amrd_softc *sc = (struct amrd_softc *)device_get_softc(dev);
220 parent = device_get_parent(dev);
222 sc->amrd_unit = device_get_unit(dev);
223 sc->amrd_drive = device_get_ivars(dev);
224 sc->amrd_dev = dev;
226 device_printf(dev, "%uMB (%u sectors) RAID %d (%s)\n",
250 amrd_detach(device_t dev)
252 struct amrd_softc *sc = (struct amrd_softc *)device_get_softc(dev);