1 /* 2 * Copyright (c) 2023, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef __PLATFORM_H__ 9 #define __PLATFORM_H__ 10 11 typedef enum { 12 PLATFORM_GPT_IMAGE = 0, 13 PLATFORM_IMAGE_COUNT, 14 }platform_image_id_t; 15 16 #define FWU_METADATA_TYPE_UUID \ 17 ((uuid_t){{0xa0, 0x84, 0x7a, 0x8a}, {0x87, 0x83}, {0xf6, 0x40}, 0xab, 0x41, {0xa8, 0xb9, 0xa5, 0xa6, 0x0d, 0x23}}) 18 #define PRIVATE_METADATA_TYPE_UUID \ 19 ((uuid_t){{0xc3, 0x5d, 0xb5, 0xec}, {0xb7, 0x8a}, {0x84, 0x4a}, 0xab, 0x56, {0xeb, 0x0a, 0x99, 0x74, 0xdb, 0x42}}) 20 21 /* Initialize io storage of the platform */ 22 int32_t plat_io_storage_init(void); 23 24 /* Return an IO device handle and specification which can be used to access 25 * an image. This has to be implemented for the GPT parser. */ 26 int32_t plat_get_image_source(unsigned int image_id, uintptr_t *dev_handle, 27 uintptr_t *image_spec); 28 29 #endif /*__PLATFORM_H__*/ 30