summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2004-01-14 15:08:55 +0000
committerBjörn Stenberg <bjorn@haxx.se>2004-01-14 15:08:55 +0000
commit218754ad2c799f7aad7eb8e6000f0315567fe645 (patch)
treebf5837c199353417bb7bac5dd93cfe82c24dccae
parentfe375a0404694c33c24706fe1513468c89486da4 (diff)
Added display of acoustic management, power management and read look-ahead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4232 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/debug_menu.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 65a641c1a1..7072aa5349 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1242,7 +1242,7 @@ static bool dbg_disk_info(void)
bool done = false;
int i;
int page = 0;
- const int max_page = 4;
+ const int max_page = 7;
unsigned short* identify_info = ata_get_identify();
while(!done)
@@ -1297,6 +1297,24 @@ static bool dbg_disk_info(void)
lcd_puts(0, y++, "Spinup time");
lcd_puts(0, y++, buf);
break;
+
+ case 5:
+ i = identify_info[83] & (1<<3);
+ lcd_puts(0, y++, "Power mgmt:");
+ lcd_puts(0, y++, i ? "enabled" : "unsupported");
+ break;
+
+ case 6:
+ i = identify_info[83] & (1<<9);
+ lcd_puts(0, y++, "Noise mgmt:");
+ lcd_puts(0, y++, i ? "enabled" : "unsupported");
+ break;
+
+ case 7:
+ i = identify_info[82] & (6<<3);
+ lcd_puts(0, y++, "Read-ahead:");
+ lcd_puts(0, y++, i ? "enabled" : "unsupported");
+ break;
}
lcd_update();