2 static void dump_spd_registers(const struct mem_controller *ctrl)
6 for(i = 0; i < 4; i++) {
8 device = ctrl->channel0[i];
11 print_debug("dimm: ");
14 print_debug_hex8(device);
15 for(j = 0; j < 256; j++) {
23 status = spd_read_byte(device, j);
25 print_debug("bad device\r\n");
29 print_debug_hex8(byte);
30 print_debug_char(' ');
34 #if 0 /* Enable this if you have 2 memory channels */
35 device = ctrl->channel1[i];
38 print_debug("dimm: ");
41 print_debug_hex8(device);
42 for(j = 0; j < 256; j++) {
50 status = spd_read_byte(device, j);
52 print_debug("bad device\r\n");
56 print_debug_hex8(byte);
57 print_debug_char(' ');
66 void dump_spd_registers(void)
69 device = SMBUS_MEM_DEVICE_START;
71 while(device <= SMBUS_MEM_DEVICE_END) {
74 printk_debug("dimm %02x", device);
75 for(i = 0; (i < 256) && (status == 0); i++) {
78 printk_debug("\n%3d: ", i);
80 status = smbus_read_byte(device, i, &byte);
82 printk_debug("bad device\n");
85 printk_debug("%02x ", byte);
87 device += SMBUS_MEM_DEVICE_INC;