Searched refs:battery (Results 1 - 8 of 8) sorted by relevance

/netbsd-current/sys/arch/hpcsh/dev/
H A Dpsh3pwr.c81 * Empirical range of battery values.
227 int battery, state; local
239 battery = psh3pwr_get_battery();
240 if (battery < PSH3PWR_BATTERY_CRITICAL)
242 else if (battery < PSH3PWR_BATTERY_LOW)
250 battery = psh3pwr_get_battery();
251 if (battery > PSH3PWR_BATTERY_FULL)
254 state = 100 * (battery - PSH3PWR_BATTERY_MIN) /
267 int battery; local
271 battery
[all...]
H A Dj6x0pwr.c83 #define ADC_CHANNEL_BATTERY 3 /* main battery */
84 #define ADC_CHANNEL_BACKUP 4 /* backup battery - we don't report it */
88 * Empirical range of battery values.
292 int battery, state; local
307 battery = j6x0pwr_get_battery();
308 if (battery < J6X0PWR_BATTERY_CRITICAL)
310 else if (battery < J6X0PWR_BATTERY_LOW)
325 battery = j6x0pwr_get_battery();
326 if (battery > J6X0PWR_BATTERY_FULL)
329 state = 100 * (battery
344 int battery; local
[all...]
/netbsd-current/share/examples/apm/
H A Dscript7 # Link this script to /etc/apm/{suspend,standby,resume,line,battery}
14 # for i in standby resume line battery ; do ln suspend $i ; done
15 # chmod a+x suspend standby resume line battery
78 *battery)
80 $LOGGER 'Running on battery.'
/netbsd-current/sys/arch/ews4800mips/include/
H A Dsbd.h59 uint32_t battery :8; member in struct:sbdinfo
/netbsd-current/sys/arch/macppc/dev/
H A Dpm_direct.c935 pm_battery_info_smart(int battery, struct pmu_battery_info *info) argument
942 p.data[0] = battery + 1;
985 pm_battery_info_legacy(int battery, struct pmu_battery_info *info, int ty) argument
1050 pm_battery_info(int battery, struct pmu_battery_info *info) argument
1053 if (battery > pmu_nbatt)
1059 return pm_battery_info_legacy(battery, info, pmu_batt_type);
1062 return pm_battery_info_smart(battery, info);
H A Dbattery.c1 /* $NetBSD: battery.c,v 1.14 2011/07/10 14:41:34 pgoyette Exp $ */
30 __KERNEL_RCSID(0, "$NetBSD: battery.c,v 1.14 2011/07/10 14:41:34 pgoyette Exp $");
78 /* battery status */
99 CFATTACH_DECL_NEW(battery, sizeof(struct battery_softc),
122 aprint_normal(": legacy battery ");
/netbsd-current/sys/arch/ews4800mips/stand/common/
H A Dboot.c217 printf("\tkbms=%d, sio=%d, battery=%d, scsi=%d\n",
218 sbd->kbms, sbd->sio, sbd->battery, sbd->scsi);
/netbsd-current/sys/dev/acpi/
H A Dthinkpad_acpi.c415 /* Probe supported battery charge/control operations */
1085 aprint_verbose_dev(self, "battery control capabilities: %x\n",
1195 const struct sysctlnode *rnode, int battery)
1204 (void *)&(sc->sc_scparam[battery]), 0,
1212 (void *)&(sc->sc_scparam[battery]), 0,
1220 (void *)&(sc->sc_scparam[battery]), 0,
1228 (void *)&(sc->sc_scparam[battery]), 0,
1255 SYSCTL_DESCR("battery charge controls (primary battery)"),
1265 SYSCTL_DESCR("battery charg
1194 thinkpad_battery_sysctl_setup_controls(device_t self, const struct sysctlnode *rnode, int battery) argument
[all...]

Completed in 120 milliseconds