Index: /trunk/libffado/src/dice/dice_eap.h =================================================================== --- /trunk/libffado/src/dice/dice_eap.h (revision 2093) +++ /trunk/libffado/src/dice/dice_eap.h (revision 2094) @@ -475,7 +475,8 @@ /// Dump the first parts of the application space void showApplication(); - /// Show the full router content void showFullRouter(); + /// Show the full peak space content + void showFullPeakSpace(); /// Restore from flash Index: /trunk/libffado/src/dice/dice_eap.cpp =================================================================== --- /trunk/libffado/src/dice/dice_eap.cpp (revision 2093) +++ /trunk/libffado/src/dice/dice_eap.cpp (revision 2094) @@ -723,5 +723,4 @@ { printMessage("--- Full router content ---\n"); - fb_quadlet_t* tmp = (fb_quadlet_t *) calloc(m_router_nb_entries, sizeof(fb_quadlet_t)); printMessage(" %d entries to read\n", m_router_nb_entries); @@ -748,4 +747,5 @@ printMessage(" %d: 0x%02x <- 0x%02x;\n", i, tmp_entries[i]&0xff, (tmp_entries[i]>>8)&0xff); } + // New config printMessage(" New Configuration:\n"); @@ -768,4 +768,23 @@ } + return; +} + +void +EAP::showFullPeakSpace() +{ + printMessage("--- Full Peak space content ---\n"); + + // read the peak/route info + uint32_t tmp_entries[m_router_nb_entries]; + if(!readRegBlock(eRT_Peak, 0, tmp_entries, m_router_nb_entries*4)) { + debugError("Failed to read peak block information\n"); + return; + } + // decode and print + for (unsigned int i=0; i>16); + unsigned char dest = tmp_entries[i]&0xff; + } return; } Index: /trunk/libffado/tests/test-dice-eap.cpp =================================================================== --- /trunk/libffado/tests/test-dice-eap.cpp (revision 2093) +++ /trunk/libffado/tests/test-dice-eap.cpp (revision 2094) @@ -254,4 +254,5 @@ eap.showApplication(); eap.showFullRouter(); + eap.showFullPeakSpace(); } else