New upstream version 18.02
[deb_dpdk.git] / drivers / bus / fslmc / mc / fsl_dpmng_cmd.h
1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
2  *
3  * Copyright 2013-2016 Freescale Semiconductor Inc.
4  * Copyright 2017 NXP
5  *
6  */
7
8 #ifndef __FSL_DPMNG_CMD_H
9 #define __FSL_DPMNG_CMD_H
10
11 /* Command versioning */
12 #define DPMNG_CMD_BASE_VERSION          1
13 #define DPMNG_CMD_ID_OFFSET             4
14
15 #define DPMNG_CMD(id)   ((id << DPMNG_CMD_ID_OFFSET) | DPMNG_CMD_BASE_VERSION)
16
17 /* Command IDs */
18 #define DPMNG_CMDID_GET_VERSION         DPMNG_CMD(0x831)
19 #define DPMNG_CMDID_GET_SOC_VERSION     DPMNG_CMD(0x832)
20
21 #pragma pack(push, 1)
22 struct dpmng_rsp_get_version {
23         uint32_t revision;
24         uint32_t version_major;
25         uint32_t version_minor;
26 };
27
28 struct dpmng_rsp_get_soc_version {
29         uint32_t svr;
30         uint32_t pvr;
31 };
32
33 #pragma pack(pop)
34
35 #endif /* __FSL_DPMNG_CMD_H */