scmi.h 863 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2023-2024, Advanced Micro Devices, Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef SCMI_H
  7. #define SCMI_H
  8. #include "versal2-scmi.h"
  9. #define SIP_SCMI (0xC200ffffU)
  10. #define SMT_BUFFER_BASE 0x7fffe000
  11. void init_scmi_server(void);
  12. size_t plat_scmi_pd_count(unsigned int agent_id);
  13. const char *plat_scmi_pd_get_name(unsigned int agent_id, unsigned int pd_id);
  14. unsigned int plat_scmi_pd_statistics(unsigned int agent_id, unsigned long *pd_id);
  15. unsigned int plat_scmi_pd_get_attributes(unsigned int agent_id, unsigned int pd_id);
  16. unsigned int plat_scmi_pd_get_state(unsigned int agent_id, unsigned int pd_id);
  17. int32_t plat_scmi_pd_set_state(unsigned int agent_id, unsigned int flags, unsigned int pd_id,
  18. unsigned int state);
  19. #define SCMI_VENDOR "AMD"
  20. #define SCMI_PRODUCT "Versal Gen 2"
  21. #endif /* DEF_H */