Imre Kis | fe6521e | 2021-10-27 20:20:37 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: BSD-3-Clause */ |
| 2 | /* |
| 3 | * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #ifndef MEMORY_REGION_H_ |
| 7 | #define MEMORY_REGION_H_ |
| 8 | |
| 9 | #include <stddef.h> |
| 10 | #include <stdint.h> |
| 11 | |
| 12 | #ifdef __cplusplus |
| 13 | extern "C" { |
| 14 | #endif |
| 15 | |
| 16 | /** |
| 17 | * Defines a structure for describing a contiguous memory region |
| 18 | * This may be based on buildtime or runtime configuration information e.g. |
| 19 | * from device tree. |
| 20 | */ |
| 21 | struct memory_region { |
| 22 | char region_name[16]; /**< Name of the region e.g. 'mm_comm_buffer' */ |
| 23 | uintptr_t base_addr; /**< Base address of the region */ |
| 24 | size_t region_size; /**< Size of memory region in bytes */ |
| 25 | }; |
| 26 | |
| 27 | #ifdef __cplusplus |
| 28 | } |
| 29 | #endif |
| 30 | |
| 31 | #endif /* MEMORY_REGION_H_ */ |