| 70 | } |
| 71 | |
| 72 | static void dump_timings (void) |
| 73 | { |
| 74 | int channel, slot, rank, lane, i; |
| 75 | printf ("Timings:\n"); |
| 76 | for (channel = 0; channel < 2; channel++) |
| 77 | for (slot = 0; slot < 2; slot++) |
| 78 | for (rank = 0; rank < 2; rank++) { |
| 79 | printf ("channel %d, slot %d, rank %d\n", channel, slot, rank); |
| 80 | for (lane = 0; lane < 9; lane++) { |
| 81 | printf ("lane %d: ", lane); |
| 82 | for (i = 0; i < 4; i++) { |
| 83 | printf ("%x ", read_500 (channel, |
| 84 | get_timing_register_addr (lane, i, slot, rank), 9)); |
| 85 | } |
| 86 | printf ("\n"); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | printf ("[178] = %x\n", read_1d0 (0x178, 7)); |
| 91 | printf ("[10b] = %x\n", read_1d0 (0x10b, 6)); |
| 92 | } |
| 93 | |
| 94 | |
| 95 | /* |
no test coverage detected