]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/fsl-mc/fsl_dpmng.h
configs: imx6q_logic: Move CONFIG_PHY_SMSC to defconfig
[people/ms/u-boot.git] / include / fsl-mc / fsl_dpmng.h
1 /* Copyright 2013-2015 Freescale Semiconductor Inc.
2 *
3 * SPDX-License-Identifier: GPL-2.0+
4 */
5 #ifndef __FSL_DPMNG_H
6 #define __FSL_DPMNG_H
7
8 /* Management Complex General API
9 * Contains general API for the Management Complex firmware
10 */
11
12 struct fsl_mc_io;
13
14 /**
15 * Management Complex firmware version information
16 */
17 #define MC_VER_MAJOR 9
18 #define MC_VER_MINOR 0
19
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 */
28 struct mc_version {
29 uint32_t major;
30 uint32_t minor;
31 uint32_t revision;
32 };
33
34 /**
35 * mc_get_version() - Retrieves the Management Complex firmware
36 * version information
37 * @mc_io: Pointer to opaque I/O object
38 * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_'
39 * @mc_ver_info: Returned version information structure
40 *
41 * Return: '0' on Success; Error code otherwise.
42 */
43 int mc_get_version(struct fsl_mc_io *mc_io,
44 uint32_t cmd_flags,
45 struct mc_version *mc_ver_info);
46
47 #endif /* __FSL_DPMNG_H */