diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-05-04 15:27:10 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-05-04 15:27:10 +0000 |
commit | 6dd14d4a5ad4a6cabd5342457504f5b83fdf3362 (patch) | |
tree | b156a4eaebd628c380934c16ba0913d562fcf9bd /apps/debug_menu.c | |
parent | 7e86e5d8669347921296887a20203c9da9801c40 (diff) |
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
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 55c371dc25..47c73c35df 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -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); |