Yann Gautier | 29f1f94 | 2021-07-13 18:07:41 +0200 | [diff] [blame] | 1 | /* |
Lionel Debieve | 5adcd50 | 2022-10-05 16:51:12 +0200 | [diff] [blame] | 2 | * Copyright (c) 2021-2022, STMicroelectronics - All Rights Reserved |
Yann Gautier | 29f1f94 | 2021-07-13 18:07:41 +0200 | [diff] [blame] | 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; |
Lionel Debieve | 5adcd50 | 2022-10-05 16:51:12 +0200 | [diff] [blame] | 16 | extern uintptr_t enc_dev_handle; |
Yann Gautier | 29f1f94 | 2021-07-13 18:07:41 +0200 | [diff] [blame] | 17 | |
| 18 | extern io_block_spec_t image_block_spec; |
| 19 | |
| 20 | /* Function declarations */ |
| 21 | int open_fip(const uintptr_t spec); |
Lionel Debieve | 5adcd50 | 2022-10-05 16:51:12 +0200 | [diff] [blame] | 22 | #ifndef DECRYPTION_SUPPORT_none |
| 23 | int open_enc_fip(const uintptr_t spec); |
| 24 | #endif |
Yann Gautier | 29f1f94 | 2021-07-13 18:07:41 +0200 | [diff] [blame] | 25 | int open_storage(const uintptr_t spec); |
| 26 | |
| 27 | #endif /* STM32MP_IO_STORAGE_H */ |