1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/common
Solomon Peachy a8c52b1bfb 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
2024-11-02 13:50:53 -04:00
..
adler32.c crc32/adler32: add full copyright notice to source files 2021-07-31 01:30:39 +00:00
ap_int.c Add proper float formatting to vuprintf 2019-07-19 22:07:41 -04:00
bootdata.c multiboot: Add v1 boot protocol 2024-03-31 16:57:19 +01:00
config.c Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). 2010-05-06 21:04:40 +00:00
crc32-rkw.c Add RKW firmware file format loader 2012-03-04 00:34:26 +01:00
crc32.c crc32/adler32: add full copyright notice to source files 2021-07-31 01:30:39 +00:00
devicedata.c Add DeviceData to bootloaders 2024-09-02 13:29:43 -04:00
diacritic.c [Bugfix] diacritic.c MRU discards an entry when slot available 2023-04-24 23:13:10 -04:00
dir.c Revert "readdir_r use in tagcache.check_dir, ft_load" 2024-05-02 13:38:32 -04:00
dircache.c dircache: don't unpin invalid buflib handle when building volumes 2024-03-24 13:22:09 -04:00
disk.c disk: Support a non-fixed (logical) SECTOR_SIZE 2024-11-02 13:50:53 -04:00
disk_cache.c storage: 64-bit sector offsets 2024-08-12 14:23:44 -04:00
fdprintf.c Add a small 32-byte write buffer to fdprintf. 2017-11-28 09:01:17 -05:00
file.c Revert "Extend path_append_ex to truncate compname, remove some strmemdupa" 2023-11-23 21:26:13 -05:00
file_internal.c init_volume_names() has to be called AFTER storage_init() 2024-07-28 21:15:41 -04:00
fileobj_mgr.c [RESTORED!] Allow mounting of any directory as the root directory. 2022-03-03 18:58:07 -05:00
inflate.c inflate: Add helper for getting decompressed data size 2022-03-04 08:44:56 -05:00
linked_list.c linked list: add lld_insert_prev/next() 2022-10-16 16:10:24 +01:00
loader_strerror.c Move load_firmware() to separate file 2013-06-27 13:50:11 +02:00
multiboot.c [coverity] multiboot.c write_bootdata_ fix memset size 2024-06-04 15:56:56 -04:00
pathfuncs.c talk: Voice the volume name when browsing and when voicing full paths 2024-07-28 16:54:33 -04:00
rb-loader.c Add DeviceData to bootloaders 2024-09-02 13:29:43 -04:00
rb_namespace.c [Bugfix] ft_assemble_path extra slashes, Volume unmound double free 2024-03-29 10:27:03 -04:00
rectangle.c Add rectangle utility functions 2022-12-01 12:36:28 -05:00
strcasecmp.c Compile fix for mingw-w64 2011-12-04 21:07:06 +00:00
strcasestr.c Added ID3 searching 2005-01-27 22:21:08 +00:00
strlcat.c strlcat use strlcpy for the copy part 2022-11-16 00:36:47 -05:00
strlcpy.c strlcpy finish cleanup 2022-11-17 01:54:46 -05:00
strmemccpy.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
strnatcmp.c strnatcmp.c use a fn pointer to call strcmp/strcasecmp 2022-11-17 04:15:38 -05:00
strptokspn.c fix strptokspn, add strcspn, fix splash.c 2022-11-13 01:14:49 -05:00
timefuncs.c timefuncs.c valid_time() should return false if tm == NULL and not try to deref 2021-07-20 23:25:31 +00:00
ucl_decompress.c Add standalone UCL decompressor 2021-05-12 10:35:20 +00:00
unicode.c Remove buflib allocation names, part two 2023-01-13 10:32:54 +00:00
version.c Prevent spurious recompiles on account of changed version. 2014-08-28 15:48:56 +02:00
vuprintf.c libc: Check for a null string argument in *printf 2024-06-20 15:22:36 -04:00
zip.c Remove buflib allocation names, part two 2023-01-13 10:32:54 +00:00