1 /* 2 * Copyright (c) 2021-2022, STMicroelectronics - All Rights Reserved 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 #ifndef STM32MP_IO_STORAGE_H 7 #define STM32MP_IO_STORAGE_H 8 9 #include <stdint.h> 10 11 #include <drivers/io/io_storage.h> 12 13 /* IO devices handle */ 14 extern uintptr_t storage_dev_handle; 15 extern uintptr_t fip_dev_handle; 16 extern uintptr_t enc_dev_handle; 17 18 extern io_block_spec_t image_block_spec; 19 20 /* Function declarations */ 21 int open_fip(const uintptr_t spec); 22 #ifndef DECRYPTION_SUPPORT_none 23 int open_enc_fip(const uintptr_t spec); 24 #endif 25 int open_storage(const uintptr_t spec); 26 27 #endif /* STM32MP_IO_STORAGE_H */ 28