1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Peter D'Hoye 2008-02-27 22:52:18 +00:00
parent 45cd4606a2
commit 4c320380a0

View file

@ -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 },