summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Buren <braewoods+rb@braewoods.net>2021-03-22 05:51:32 -0500
committerJames Buren <braewoods+rb@braewoods.net>2021-03-22 05:51:32 -0500
commit3f88512b3b0942d47abde612675679c77274ee2f (patch)
tree049cf7f41ed9ce1ad94977b7b5688e5466224ad1
parenta8846e30036c4d20897a61c501c842f23febe24d (diff)
downloadrockbox-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
-rw-r--r--apps/debug_menu.c9
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