/src/sys/arch/macppc/dev/ |
battery.c | 81 int sc_voltage; member in struct:battery_softc 185 sc->sc_voltage = 0; 195 sc->sc_voltage = (vb * 265 + 72665) / 10; 220 printf("voltage: %d.%03d\n", sc->sc_voltage / 1000, 221 sc->sc_voltage % 1000); 294 edata->value_cur = sc->sc_voltage * 1000;
|
smartbat.c | 82 int sc_voltage; member in struct:smartbat_softc 271 edata->value_cur = sc->sc_voltage * 1000; 432 sc->sc_voltage = buf[6]; 438 sc->sc_voltage = ((buf[9] << 8) | (buf[8])); 447 sc->sc_voltage = 0;
|
battery.c | 81 int sc_voltage; member in struct:battery_softc 185 sc->sc_voltage = 0; 195 sc->sc_voltage = (vb * 265 + 72665) / 10; 220 printf("voltage: %d.%03d\n", sc->sc_voltage / 1000, 221 sc->sc_voltage % 1000); 294 edata->value_cur = sc->sc_voltage * 1000;
|
smartbat.c | 82 int sc_voltage; member in struct:smartbat_softc 271 edata->value_cur = sc->sc_voltage * 1000; 432 sc->sc_voltage = buf[6]; 438 sc->sc_voltage = ((buf[9] << 8) | (buf[8])); 447 sc->sc_voltage = 0;
|
obio.c | 76 int sc_voltage; member in struct:obio_softc 169 sc->sc_voltage = -1; 525 sc->sc_voltage = gpio_base + reg[0]; 529 sc->sc_voltage = gpio_base + reg[0]; 546 if ((sc->sc_voltage < 0) || (sc->sc_busspeed < 0 && !use_dfs)) 624 if (sc->sc_voltage < 0) 631 sc->sc_voltage, 5); 638 sc->sc_voltage, 4); 645 sc->sc_voltage, 5); 655 sc->sc_voltage, 4) [all...] |
obio.c | 76 int sc_voltage; member in struct:obio_softc 169 sc->sc_voltage = -1; 525 sc->sc_voltage = gpio_base + reg[0]; 529 sc->sc_voltage = gpio_base + reg[0]; 546 if ((sc->sc_voltage < 0) || (sc->sc_busspeed < 0 && !use_dfs)) 624 if (sc->sc_voltage < 0) 631 sc->sc_voltage, 5); 638 sc->sc_voltage, 4); 645 sc->sc_voltage, 5); 655 sc->sc_voltage, 4) [all...] |