7 const char *
const bit_names[])
14 for (i = num_bits - 1; i >= 0; i--) {
15 if (status & (1 << i)) {
29 static const char *
const pmxc0_status_bits[32] = {
31 [1] =
"FourSecondPwrBtn",
33 [3] =
"ThermalTripFromTemp",
34 [4] =
"RemotePowerDownFromASF",
36 [9] =
"InternalThermalTrip",
44 [23] =
"LtReset/ShutdownMsg",
46 [25] =
"WatchdogIssueReset",
47 [26] =
"RemoteResetFromASF",
50 [29] =
"EcWatchdogRst",
51 [30] =
"SdpParityErr",
52 [31] =
"SwSyncFloodFlag",
static uint32_t pm_read32(uint8_t reg)
#define printk(level,...)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
void fch_print_pmxc0_status(void)
static void print_num_status_bits(int num_bits, uint32_t status, const char *const bit_names[])