16 #define ON_OFF(val) (((val) & 1) ? "on" : "off")
21 u32 addr_decoder_common, addr_decode_ch[2];
35 (addr_decoder_common >> 0) & 3,
36 (addr_decoder_common >> 2) & 3,
37 (addr_decoder_common >> 4) & 3);
39 for (i = 0; i <
ARRAY_SIZE(addr_decode_ch); i++) {
40 u32 ch_conf = addr_decode_ch[i];
46 ((ch_conf >> 0) & 0xff) * 256,
47 ((ch_conf >> 19) & 1) ? 16 : 8,
48 ((ch_conf >> 17) & 1) ?
"dual" :
"single",
49 ((ch_conf >> 16) & 1) ?
"" :
", selected");
51 ((ch_conf >> 8) & 0xff) * 256,
52 ((ch_conf >> 20) & 1) ? 16 : 8,
53 ((ch_conf >> 18) & 1) ?
"dual" :
"single",
54 ((ch_conf >> 16) & 1) ?
", selected" :
"");
#define printk(level,...)
static __always_inline uint32_t mchbar_read32(const uintptr_t offset)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
void report_memory_config(void)
static const char *const ecc_decoder[]