1 /*
2 * Arm SCP/MCP Software
3 * Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8 #include <mod_pcid.h>
9
10 #include <fwk_assert.h>
11 #include <fwk_id.h>
12 #include <fwk_module.h>
13 #include <fwk_status.h>
14
15 #include <stdbool.h>
16 #include <string.h>
17
mod_pcid_check_registers(const struct mod_pcid_registers * registers,const struct mod_pcid_registers * expected)18 bool mod_pcid_check_registers(const struct mod_pcid_registers *registers,
19 const struct mod_pcid_registers *expected)
20 {
21 fwk_assert(registers != NULL);
22 fwk_assert(expected != NULL);
23
24 return !memcmp(registers, expected, sizeof(*registers));
25 }
26
pcid_init(fwk_id_t module_id,unsigned int element_count,const void * data)27 static int pcid_init(fwk_id_t module_id,
28 unsigned int element_count,
29 const void *data)
30 {
31 return FWK_SUCCESS;
32 }
33
34 const struct fwk_module_config config_pcid = { 0 };
35 const struct fwk_module module_pcid = {
36 .type = FWK_MODULE_TYPE_SERVICE,
37 .init = pcid_init,
38 };
39