Amit Nagal | 055796f | 2024-06-05 12:32:38 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2023-2024, Advanced Micro Devices, Inc. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef SCMI_H |
| 8 | #define SCMI_H |
| 9 | |
| 10 | #include "versal2-scmi.h" |
| 11 | |
| 12 | #define SIP_SCMI (0xC200ffffU) |
| 13 | #define SMT_BUFFER_BASE 0x7fffe000 |
| 14 | |
| 15 | void init_scmi_server(void); |
| 16 | |
Maheedhar Bollapalli | b0c06b4 | 2024-10-07 10:55:26 +0000 | [diff] [blame] | 17 | size_t plat_scmi_pd_count(unsigned int agent_id); |
| 18 | const char *plat_scmi_pd_get_name(unsigned int agent_id, unsigned int pd_id); |
| 19 | unsigned int plat_scmi_pd_statistics(unsigned int agent_id, unsigned long *pd_id); |
| 20 | unsigned int plat_scmi_pd_get_attributes(unsigned int agent_id, unsigned int pd_id); |
| 21 | unsigned int plat_scmi_pd_get_state(unsigned int agent_id, unsigned int pd_id); |
| 22 | int32_t plat_scmi_pd_set_state(unsigned int agent_id, unsigned int flags, unsigned int pd_id, |
| 23 | unsigned int state); |
| 24 | |
Amit Nagal | 055796f | 2024-06-05 12:32:38 +0530 | [diff] [blame] | 25 | #define SCMI_VENDOR "AMD" |
| 26 | #define SCMI_PRODUCT "Versal Gen 2" |
| 27 | |
| 28 | #endif /* DEF_H */ |