1 /* 2 * Copyright (c) 2024, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef __MSCP_DRV_H__ 9 #define __MSCP_DRV_H__ 10 11 #include <stdint.h> 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 enum mscp_error_t { 18 /* No Error */ 19 MSCP_ERR_NONE, 20 /* Invalid parameter */ 21 MSCP_ERR_INVALID_PARAM, 22 /* Error accessing mscp */ 23 MSCP_ERR_ACCESS, 24 /* General error with driver */ 25 MSCP_ERR_GENERAL, 26 }; 27 28 struct mscp_dev_t { 29 /* Base address of the init control register bank */ 30 const uintptr_t init_ctrl_base; 31 }; 32 33 enum mscp_error_t mscp_driver_release_cpu(struct mscp_dev_t *dev); 34 35 #ifdef __cplusplus 36 } 37 #endif 38 #endif /* __MSCP_DRV_H__ */ 39