@@ -301,16 +301,6 @@ int boot_find_status(int image_index, const struct flash_area **fap);
301
301
int boot_magic_compatible_check (uint8_t tbl_val , uint8_t val );
302
302
uint32_t boot_status_sz (uint32_t min_write_sz );
303
303
uint32_t boot_trailer_sz (uint32_t min_write_sz );
304
- /* Get offset of trailer aligned to either device erase unit or alignment
305
- * depending on whether device has erase or not.
306
- */
307
- int boot_trailer_scramble_offset (const struct flash_area * fa , size_t alignment ,
308
- size_t * off );
309
- /* Get size of header aligned to device erase unit or write block,
310
- * depending on whether device has erase or not.
311
- */
312
- int boot_header_scramble_off_sz (const struct flash_area * fa , int slot , size_t * off ,
313
- size_t * size );
314
304
int boot_status_entries (int image_index , const struct flash_area * fap );
315
305
uint32_t boot_status_off (const struct flash_area * fap );
316
306
int boot_read_swap_state (const struct flash_area * fap ,
@@ -344,19 +334,7 @@ int boot_copy_region(struct boot_loader_state *state,
344
334
const struct flash_area * fap_dst ,
345
335
uint32_t off_src , uint32_t off_dst , uint32_t sz );
346
336
#endif
347
- /* Prepare for write device that requires erase prior to write. This will
348
- * do nothing on devices without erase requirement.
349
- */
350
337
int boot_erase_region (const struct flash_area * fap , uint32_t off , uint32_t sz );
351
- /* Similar to boot_erase_region but will always remove data */
352
- int boot_scramble_region (const struct flash_area * fap , uint32_t off , uint32_t sz );
353
- /* Similar to boot_scramble_region but works backwards */
354
- int boot_scramble_region_backwards (const struct flash_area * fap , uint32_t off , uint32_t sz );
355
- /* Makes slot unbootable, either by scrambling header magic, header sector
356
- * or entire slot, depending on settings.
357
- * Note: slot is passed here becuase at this point there is no function
358
- * matching flash_area object to slot */
359
- int boot_scramble_slot (const struct flash_area * fap , int slot );
360
338
bool boot_status_is_reset (const struct boot_status * bs );
361
339
362
340
#ifdef MCUBOOT_ENC_IMAGES
@@ -538,20 +516,6 @@ uint32_t bootutil_max_image_size(const struct flash_area *fap);
538
516
int boot_read_image_size (struct boot_loader_state * state , int slot ,
539
517
uint32_t * size );
540
518
541
- /* Helper macro to avoid compile errors with systems that do not
542
- * provide function to check device type.
543
- * Note: it used to be inline, but somehow compiler would not
544
- * optimize out branches that were impossible when this evaluated to
545
- * just "true".
546
- */
547
- #if defined(MCUBOOT_SUPPORT_DEV_WITHOUT_ERASE ) && defined(MCUBOOT_SUPPORT_DEV_WITH_ERASE )
548
- #define device_requires_erase (fa ) (flash_area_erase_required(fa))
549
- #elif defined(MCUBOOT_SUPPORT_DEV_WITHOUT_ERASE )
550
- #define device_requires_erase (fa ) (false)
551
- #else
552
- #define device_requires_erase (fa ) (true)
553
- #endif
554
-
555
519
#ifdef __cplusplus
556
520
}
557
521
#endif
0 commit comments