Lines Matching defs:dev
39 #include <dev/fdt/fdt_common.h>
40 #include <dev/ofw/ofw_bus.h>
41 #include <dev/ofw/ofw_bus_subr.h>
42 #include <dev/ofw/openfirm.h>
48 static int dpaa_probe(device_t dev);
49 static int dpaa_attach(device_t dev);
93 dpaa_probe(device_t dev)
96 if (!ofw_bus_is_compatible(dev, "fsl,dpaa"))
99 device_set_desc(dev, "Freescale Data Path Acceleration Architecture");
105 dpaa_attach(device_t dev)
116 dt_node = ofw_bus_get_node(dev);
130 device_printf(dev, "could not set up devinfo\n");
140 device_printf(dev, "Could not get fsl,fman-mac "
146 device_printf(dev, "Could not get enet node\n");
152 device_printf(dev, "Could not get cell-index from enet "
158 dev_child = device_add_child(dev, "dtsec", (int)cell_index);
160 device_printf(dev, "could not add child: %s\n",
168 device_printf(dev, "added child: %s\n\n", di->di_ofw.obd_name);
174 return (bus_generic_attach(dev));