From 3f88512b3b0942d47abde612675679c77274ee2f Mon Sep 17 00:00:00 2001 From: James Buren Date: Mon, 22 Mar 2021 05:51:32 -0500 Subject: 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 --- apps/debug_menu.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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) '0' + (i & 7)); } #endif /* HAVE_ATA_DMA */ + i = identity_info[0] & (1 << 15); + simplelist_addline( + "ATA device: %s", i ? "yes" : "no"); + i = identity_info[0] & (1 << 6); + simplelist_addline( + "Fixed device: %s", i ? "yes" : "no"); + i = identity_info[0] & (1 << 7); + simplelist_addline( + "Removeable media: %s", i ? "yes" : "no"); return btn; } -- cgit v1.2.3