Add some M/UDMA information to the Disk Info debug screen for both Gigabeats.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17359 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7e86e5d866
commit
6dd14d4a5a
1 changed files with 36 additions and 0 deletions
|
@ -1879,6 +1879,42 @@ static int disk_callback(int btn, struct gui_synclist *lists)
|
|||
simplelist_addline(SIMPLELIST_ADD_LINE,
|
||||
"No timing info");
|
||||
}
|
||||
#if defined (TOSHIBA_GIGABEAT_F) || defined (TOSHIBA_GIGABEAT_S)
|
||||
if (identify_info[63] & (1<<0)) {
|
||||
char mdma0[2], mdma1[2], mdma2[2];
|
||||
mdma0[1] = mdma1[1] = mdma2[1] = 0;
|
||||
mdma0[0] = (identify_info[63] & (1<<0)) ? '0' : 0;
|
||||
mdma1[0] = (identify_info[63] & (1<<1)) ? '1' : 0;
|
||||
mdma2[0] = (identify_info[63] & (1<<2)) ? '2' : 0;
|
||||
simplelist_addline(SIMPLELIST_ADD_LINE,
|
||||
"MDMA modes: %s %s %s", mdma0, mdma1, mdma2);
|
||||
simplelist_addline(SIMPLELIST_ADD_LINE,
|
||||
"MDMA Cycle times %dns/%dns",
|
||||
identify_info[65],
|
||||
identify_info[66] );
|
||||
}
|
||||
else {
|
||||
simplelist_addline(SIMPLELIST_ADD_LINE,
|
||||
"No MDMA mode info");
|
||||
}
|
||||
if (identify_info[88] & (1<<0)) {
|
||||
char udma0[2], udma1[2], udma2[2], udma3[2], udma4[2], udma5[2];
|
||||
udma0[1] = udma1[1] = udma2[1] = udma3[1] = udma4[1] = 0;
|
||||
udma0[0] = (identify_info[88] & (1<<0)) ? '0' : 0;
|
||||
udma1[0] = (identify_info[88] & (1<<1)) ? '1' : 0;
|
||||
udma2[0] = (identify_info[88] & (1<<2)) ? '2' : 0;
|
||||
udma3[0] = (identify_info[88] & (1<<3)) ? '3' : 0;
|
||||
udma4[0] = (identify_info[88] & (1<<4)) ? '4' : 0;
|
||||
udma5[0] = (identify_info[88] & (1<<5)) ? '5' : 0;
|
||||
simplelist_addline(SIMPLELIST_ADD_LINE,
|
||||
"UDMA modes: %s %s %s %s %s", udma0, udma1, udma2,
|
||||
udma3, udma4, udma5);
|
||||
}
|
||||
else {
|
||||
simplelist_addline(SIMPLELIST_ADD_LINE,
|
||||
"No UDMA mode info");
|
||||
}
|
||||
#endif /* defined (TOSHIBA_GIGABEAT_F) || defined (TOSHIBA_GIGABEAT_S) */
|
||||
timing_info_present = identify_info[53] & (1<<1);
|
||||
if(timing_info_present) {
|
||||
i = identify_info[49] & (1<<11);
|
||||
|
|
Loading…
Reference in a new issue