Manish V Badarkhe | 9e03218 | 2025-05-30 12:31:00 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2025, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef LFA_COMPONENT_DESC_H |
| 8 | #define LFA_COMPONENT_DESC_H |
| 9 | |
Manish V Badarkhe | 06a6f29 | 2025-04-15 20:16:34 +0100 | [diff] [blame] | 10 | #include <stdbool.h> |
Manish V Badarkhe | 9e03218 | 2025-05-30 12:31:00 +0100 | [diff] [blame] | 11 | #include <stdint.h> |
| 12 | |
| 13 | typedef enum { |
| 14 | PRIME_NONE = 0, |
Manish V Badarkhe | 67fa182 | 2025-04-15 20:16:36 +0100 | [diff] [blame] | 15 | PRIME_STARTED, |
| 16 | PRIME_COMPLETE, |
Manish V Badarkhe | 9e03218 | 2025-05-30 12:31:00 +0100 | [diff] [blame] | 17 | } lfa_prime_status_t; |
| 18 | |
| 19 | struct lfa_component_status { |
| 20 | uint32_t component_id; |
| 21 | lfa_prime_status_t prime_status; |
Manish V Badarkhe | 07de22d | 2025-05-16 15:16:53 +0100 | [diff] [blame^] | 22 | bool cpu_rendezvous_required; |
Manish V Badarkhe | 9e03218 | 2025-05-30 12:31:00 +0100 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | typedef int32_t (*component_prime_fn)(struct lfa_component_status *activation); |
| 26 | typedef int32_t (*component_activate_fn)(struct lfa_component_status *activation, |
| 27 | uint64_t ep_address, |
| 28 | uint64_t context_id); |
| 29 | |
| 30 | struct lfa_component_ops { |
| 31 | component_prime_fn prime; |
| 32 | component_activate_fn activate; |
Manish V Badarkhe | 06a6f29 | 2025-04-15 20:16:34 +0100 | [diff] [blame] | 33 | bool may_reset_cpu; |
| 34 | bool cpu_rendezvous_required; |
Manish V Badarkhe | 9e03218 | 2025-05-30 12:31:00 +0100 | [diff] [blame] | 35 | }; |
| 36 | |
| 37 | #endif /* LFA_COMPONENT_DESC_H */ |