2 * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
4 * SPDX-License-Identifier: BSD-3-Clause
13 #if !PLAT_PARTITION_MAX_ENTRIES
14 # define PLAT_PARTITION_MAX_ENTRIES 128
15 #endif /* PLAT_PARTITION_MAX_ENTRIES */
17 CASSERT(PLAT_PARTITION_MAX_ENTRIES
<= 128, assert_plat_partition_max_entries
);
19 #define PARTITION_BLOCK_SIZE 512
21 #define EFI_NAMELEN 36
23 typedef struct partition_entry
{
26 char name
[EFI_NAMELEN
];
29 typedef struct partition_entry_list
{
30 partition_entry_t list
[PLAT_PARTITION_MAX_ENTRIES
];
32 } partition_entry_list_t
;
34 int load_partition_table(unsigned int image_id
);
35 const partition_entry_t
*get_partition_entry(const char *name
);
36 const partition_entry_list_t
*get_partition_entry_list(void);
37 void partition_init(unsigned int image_id
);
39 #endif /* PARTITION_H */