1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
3 * Copyright 2013-2016 Freescale Semiconductor Inc.
4 * Copyright 2016-2021 NXP
8 #ifndef _FSL_DPRC_CMD_H
9 #define _FSL_DPRC_CMD_H
11 /* Minimal supported DPRC Version */
12 #define DPRC_VER_MAJOR 6
13 #define DPRC_VER_MINOR 6
15 /* Command versioning */
16 #define DPRC_CMD_BASE_VERSION 1
17 #define DPRC_CMD_ID_OFFSET 4
19 #define DPRC_CMD(id) ((id << DPRC_CMD_ID_OFFSET) | DPRC_CMD_BASE_VERSION)
22 #define DPRC_CMDID_CLOSE DPRC_CMD(0x800)
23 #define DPRC_CMDID_OPEN DPRC_CMD(0x805)
24 #define DPRC_CMDID_GET_CONNECTION DPRC_CMD(0x16C)
27 struct dprc_cmd_open {
28 uint32_t container_id;
31 struct dprc_cmd_get_connection {
33 uint16_t ep1_interface_id;
39 struct dprc_rsp_get_connection {
42 uint16_t ep2_interface_id;
48 #endif /* _FSL_DPRC_CMD_H */