Lines Matching full:fan
55 struct pmac_fan fan; member
69 static int adm1030_set(struct adm1030_softc *fan, int pwm);
129 if (strcmp(name, "fan") != 0 || strcmp(compatible, "adm1030") != 0) in adm1030_probe()
140 device_set_desc(dev, "G4 MDD Fan driver"); in adm1030_probe()
169 0, adm1030_sysctl, "I", "Fan PWM Rate"); in adm1030_attach()
189 sc->fan.min_rpm = 0; in adm1030_start()
190 sc->fan.max_rpm = 0x0F; in adm1030_start()
191 sc->fan.default_rpm = 2; in adm1030_start()
193 strcpy(sc->fan.name, "MDD Case fan"); in adm1030_start()
194 sc->fan.zone = 0; in adm1030_start()
195 sc->fan.read = NULL; in adm1030_start()
196 sc->fan.set = (int (*)(struct pmac_fan *, int))adm1030_set; in adm1030_start()
199 pmac_thermal_fan_register(&sc->fan); in adm1030_start()
202 static int adm1030_set(struct adm1030_softc *fan, int pwm) in adm1030_set() argument
210 if (adm1030_write_byte(fan->sc_dev, fan->sc_addr, 0x22, pwm) < 0) in adm1030_set()
213 fan->sc_pwm = pwm; in adm1030_set()