diff options
author | Torne Wuff <torne@wolfpuppy.org.uk> | 2010-04-09 11:55:57 +0000 |
---|---|---|
committer | Torne Wuff <torne@wolfpuppy.org.uk> | 2010-04-09 11:55:57 +0000 |
commit | 4290051dd8e0655a9f18ec478550f8b01fb16262 (patch) | |
tree | 5dbc78e1dcf6d90f44ae5994078b84785fcd1310 /apps | |
parent | 7686c8fa99d7aa82b00b30ce37fc161c412b94a6 (diff) | |
download | rockbox-4290051dd8e0655a9f18ec478550f8b01fb16262.tar.gz rockbox-4290051dd8e0655a9f18ec478550f8b01fb16262.zip |
Add drive's reported physical sector size to disk debug screen for ATA devices
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25552 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index fbaae57601..22ec63abe9 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1957,6 +1957,11 @@ static int disk_callback(int btn, struct gui_synclist *lists) | |||
1957 | simplelist_addline(SIMPLELIST_ADD_LINE, | 1957 | simplelist_addline(SIMPLELIST_ADD_LINE, |
1958 | "No timing info"); | 1958 | "No timing info"); |
1959 | } | 1959 | } |
1960 | int sector_size = 512; | ||
1961 | if((identify_info[106] & 0xe000) == 0x6000) | ||
1962 | sector_size *= BIT_N(identify_info[106] & 0x000f); | ||
1963 | simplelist_addline(SIMPLELIST_ADD_LINE, | ||
1964 | "Physical sector size: %d", sector_size); | ||
1960 | #ifdef HAVE_ATA_DMA | 1965 | #ifdef HAVE_ATA_DMA |
1961 | if (identify_info[63] & (1<<0)) { | 1966 | if (identify_info[63] & (1<<0)) { |
1962 | char mdma0[2], mdma1[2], mdma2[2]; | 1967 | char mdma0[2], mdma1[2], mdma2[2]; |