mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
ipod6g: Support MAX_PHYS_SECTOR_SIZE of 4K
This lets us *natively* handle varying physical sector sizes without playing games and lying about the logical sector size. (The original drives use 4K _physical_ sectors with 512B logical sectors, but you have to access everything in 4K blocks...) Achieve this by splitting the MAX_PHYS_SECTOR_SIZE code out of the main ATA driver and re-using it. Change-Id: I0bc615ab4562f1e3e83171a8633c74fb60c7da1f
This commit is contained in:
parent
d60dee6188
commit
2824bd5f16
4 changed files with 327 additions and 312 deletions
|
|
@ -191,10 +191,10 @@
|
|||
|
||||
#define HAVE_ATA_SMART
|
||||
|
||||
#define SECTOR_SIZE 512
|
||||
/* define this if the device has larger sectors when accessed via USB */
|
||||
#define MAX_LOG_SECTOR_SIZE 4096
|
||||
//#define MAX_PHYS_SECTOR_SIZE 4096 // Only if we have various physical sector sizes
|
||||
/* This is the minimum access size for the device, even if it's larger than the logical sector size */
|
||||
#define MAX_PHYS_SECTOR_SIZE 4096
|
||||
|
||||
#define HAVE_HARDWARE_CLICK
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue