]>
Commit | Line | Data |
---|---|---|
a2a55e51 | 1 | /* Copyright 2013-2015 Freescale Semiconductor Inc. |
7b3bd9a7 GR |
2 | * |
3 | * SPDX-License-Identifier: GPL-2.0+ | |
4 | */ | |
7b3bd9a7 GR |
5 | #ifndef __FSL_DPMNG_H |
6 | #define __FSL_DPMNG_H | |
7 | ||
a2a55e51 PK |
8 | /* Management Complex General API |
9 | * Contains general API for the Management Complex firmware | |
7b3bd9a7 GR |
10 | */ |
11 | ||
12 | struct fsl_mc_io; | |
13 | ||
14 | /** | |
a2a55e51 | 15 | * Management Complex firmware version information |
7b3bd9a7 | 16 | */ |
53e353fc | 17 | #define MC_VER_MAJOR 9 |
7b3bd9a7 GR |
18 | #define MC_VER_MINOR 0 |
19 | ||
a2a55e51 PK |
20 | /** |
21 | * struct mc_versoin | |
22 | * @major: Major version number: incremented on API compatibility changes | |
23 | * @minor: Minor version number: incremented on API additions (that are | |
24 | * backward compatible); reset when major version is incremented | |
25 | * @revision: Internal revision number: incremented on implementation changes | |
26 | * and/or bug fixes that have no impact on API | |
27 | */ | |
7b3bd9a7 GR |
28 | struct mc_version { |
29 | uint32_t major; | |
7b3bd9a7 | 30 | uint32_t minor; |
7b3bd9a7 | 31 | uint32_t revision; |
7b3bd9a7 GR |
32 | }; |
33 | ||
34 | /** | |
a2a55e51 PK |
35 | * mc_get_version() - Retrieves the Management Complex firmware |
36 | * version information | |
37 | * @mc_io: Pointer to opaque I/O object | |
87457d11 | 38 | * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' |
a2a55e51 | 39 | * @mc_ver_info: Returned version information structure |
7b3bd9a7 | 40 | * |
a2a55e51 | 41 | * Return: '0' on Success; Error code otherwise. |
7b3bd9a7 | 42 | */ |
87457d11 PK |
43 | int mc_get_version(struct fsl_mc_io *mc_io, |
44 | uint32_t cmd_flags, | |
45 | struct mc_version *mc_ver_info); | |
7b3bd9a7 | 46 | |
7b3bd9a7 | 47 | #endif /* __FSL_DPMNG_H */ |