diff options
author | James Buren <braewoods+rb@braewoods.net> | 2021-03-22 05:51:32 -0500 |
---|---|---|
committer | James Buren <braewoods+rb@braewoods.net> | 2021-03-22 05:51:32 -0500 |
commit | 3f88512b3b0942d47abde612675679c77274ee2f (patch) | |
tree | 049cf7f41ed9ce1ad94977b7b5688e5466224ad1 /apps | |
parent | a8846e30036c4d20897a61c501c842f23febe24d (diff) | |
download | rockbox-3f88512b3b0942d47abde612675679c77274ee2f.tar.gz rockbox-3f88512b3b0942d47abde612675679c77274ee2f.zip |
debug_menu: report on ATA device type bits
This reports the ATA device type bits in a human readable format
so that users can easily identify what their ATA device is claiming
to be. This is mainly useful for troubleshooting a possible source
of compatibility issues with their DAP. As such this is mainly an aid
to CF modders.
Change-Id: I40f581fc0805a2753789452373cc6e179d8f3074
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 8716b302c4..820e7aaa07 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1428,6 +1428,15 @@ static int disk_callback(int btn, struct gui_synclist *lists) | |||
1428 | '0' + (i & 7)); | 1428 | '0' + (i & 7)); |
1429 | } | 1429 | } |
1430 | #endif /* HAVE_ATA_DMA */ | 1430 | #endif /* HAVE_ATA_DMA */ |
1431 | i = identity_info[0] & (1 << 15); | ||
1432 | simplelist_addline( | ||
1433 | "ATA device: %s", i ? "yes" : "no"); | ||
1434 | i = identity_info[0] & (1 << 6); | ||
1435 | simplelist_addline( | ||
1436 | "Fixed device: %s", i ? "yes" : "no"); | ||
1437 | i = identity_info[0] & (1 << 7); | ||
1438 | simplelist_addline( | ||
1439 | "Removeable media: %s", i ? "yes" : "no"); | ||
1431 | return btn; | 1440 | return btn; |
1432 | } | 1441 | } |
1433 | 1442 | ||