Lines Matching defs:dev
41 #include <dev/ofw/ofw_bus.h>
42 #include <dev/ofw/ofw_bus_subr.h>
65 lpc_pwr_probe(device_t dev)
68 if (!ofw_bus_status_okay(dev))
71 if (!ofw_bus_is_compatible(dev, "lpc,pwr"))
74 device_set_desc(dev, "LPC32x0 Power Controller");
79 lpc_pwr_attach(device_t dev)
81 struct lpc_pwr_softc *sc = device_get_softc(dev);
84 sc->dp_dev = dev;
87 sc->dp_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
90 device_printf(dev, "cannot allocate memory window\n");
103 lpc_pwr_read(device_t dev, int reg)
109 lpc_pwr_write(device_t dev, int reg, uint32_t value)