diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-02-27 22:52:18 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-02-27 22:52:18 +0000 |
commit | 4c320380a0a85d23c37aae89478bdafe9c31825e (patch) | |
tree | b3ea48fd091ba3126cbfe6a1754406f3184d082d /apps/debug_menu.c | |
parent | 45cd4606a24514a9ceb0c2e5bcea7c5160d5bdf5 (diff) |
Add ability to dump ata identify info to the debug menu (by amiconn + ifdeffed by me)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16441 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 8cd1fedf5b..0c316c6366 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1874,6 +1874,17 @@ static int disk_callback(int btn, struct gui_synclist *lists) "Cluster size: %d bytes", fat_get_cluster_size(IF_MV(0))); return btn; } + +static bool dbg_identify_info(void) +{ + int fd = creat("/identify_info.bin"); + if(fd >= 0) + { + write(fd, ata_get_identify(), SECTOR_SIZE); + close(fd); + } + return false; +} #endif /* !defined(HAVE_MMC) && !defined(HAVE_HOTSWAP) */ static bool dbg_disk_info(void) { @@ -2386,6 +2397,9 @@ static const struct the_menu_item menuitems[] = { #endif #ifndef SIMULATOR { "View disk info", dbg_disk_info }, +#if !defined(HAVE_MMC) && !defined(HAVE_HOTSWAP) + { "Dump ATA identify info", dbg_identify_info}, +#endif #endif #ifdef HAVE_DIRCACHE { "View dircache info", dbg_dircache_info }, |