Searched refs:cur_charge (Results 1 - 3 of 3) sorted by relevance

/netbsd-current/sys/arch/macppc/dev/
H A Dpm_direct.h59 unsigned int cur_charge; member in struct:pmu_battery_info
H A Dpm_direct.c951 info->cur_charge = p.data[2];
957 info->cur_charge = ((p.data[2] << 8) | (p.data[3]));
964 info->cur_charge = 0;
973 ((info->max_charge - info->cur_charge) * 3600)
977 (info->cur_charge * 3600) / -info->draw;
1030 info->cur_charge = charge;
1039 info->cur_charge = 0;
H A Dapm.c171 printf("%d%% charged\n", ((info.cur_charge * 100) / info.max_charge));
306 ((batt.cur_charge * 100) / batt.max_charge);

Completed in 113 milliseconds