diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-11-02 09:41:26 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-11-02 13:50:53 -0400 |
commit | a8c52b1bfb8fd4333cffc6a1d9eff830bd35dba5 (patch) | |
tree | dd705ebe8cb88a7cce98ee97a9f83342a5492c80 /firmware/export/config.h | |
parent | 209aeff5b147e051a8841f64e64f5d0c04646349 (diff) | |
download | rockbox-a8c52b1bfb8fd4333cffc6a1d9eff830bd35dba5.tar.gz rockbox-a8c52b1bfb8fd4333cffc6a1d9eff830bd35dba5.zip |
disk: Support a non-fixed (logical) SECTOR_SIZE
This allows a single build to support ATA drives with (eg) 512B and 4K
logical sector sizes. This is needed because ATA drives are user-
replaceable and we don't know what could get plugged in.
* Add disk_get_log_sector_size() API (no-op for non-ATA storage)
* Mostly a no-op if MAX_LOG_SECTOR_SIZE is not enabled
* Sanity-check that storage's logical sector size is not larger
than what we're built for
NOTE: Other layers (eg ATA, FAT, etc) still need to be made aware of this.
Change-Id: Id6183ef0573cb0778fa9a91302e600c3e710eebd
Diffstat (limited to 'firmware/export/config.h')
0 files changed, 0 insertions, 0 deletions