Lines Matching refs:dev
40 #include <dev/ofw/ofw_bus.h>
41 #include <dev/ofw/openfirm.h>
68 vcoregpio_probe(device_t dev)
70 const char *name = ofw_bus_get_name(dev);
75 device_set_desc(dev, "CPU Core Voltage Control");
80 vcoregpio_attach(device_t dev)
82 EVENTHANDLER_REGISTER(cpufreq_pre_change, vcoregpio_pre_change, dev,
84 EVENTHANDLER_REGISTER(cpufreq_post_change, vcoregpio_post_change, dev,
91 vcoregpio_pre_change(device_t dev, const struct cf_level *level)
98 macgpio_write(dev, GPIO_DDR_OUTPUT | 1);
104 vcoregpio_post_change(device_t dev, const struct cf_level *level)
109 macgpio_write(dev, GPIO_DDR_OUTPUT | 0);