mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-22 04:24:19 +00:00

Device size could be more than 4GB, we must define size as unsigned long long. Change-Id: I52055cf5c1c15ff18ab9e157aa9b73c8b4fb7b63 Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
32 lines
774 B
C
32 lines
774 B
C
/*
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef IO_STM32IMAGE_H
|
|
#define IO_STM32IMAGE_H
|
|
|
|
#include <drivers/io/io_driver.h>
|
|
#include <drivers/partition/partition.h>
|
|
|
|
#define MAX_LBA_SIZE 512
|
|
#define MAX_PART_NAME_SIZE (EFI_NAMELEN + 1)
|
|
#define STM32_PART_NUM (PLAT_PARTITION_MAX_ENTRIES - STM32_TF_A_COPIES)
|
|
|
|
struct stm32image_part_info {
|
|
char name[MAX_PART_NAME_SIZE];
|
|
uint32_t binary_type;
|
|
uintptr_t part_offset;
|
|
uint32_t bkp_offset;
|
|
};
|
|
|
|
struct stm32image_device_info {
|
|
struct stm32image_part_info part_info[STM32_PART_NUM];
|
|
unsigned long long device_size;
|
|
uint32_t lba_size;
|
|
};
|
|
|
|
int register_io_dev_stm32image(const io_dev_connector_t **dev_con);
|
|
|
|
#endif /* IO_STM32IMAGE_H */
|