mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 17:10:11 +00:00
2557c5a942
Existing MC driver framework is based on MC-9.x.x flib. This patch migrates MC obj (DPBP, DPNI, DPRC, DPMAC etc) to use latest MC flib which is MC-10.3.0. Changes introduced due to migration: 1. To get OBJ token, pair of create and open API replaces create APIs 2. Pair of close and destroy APIs replaces destroy APIs 3. For version read, get_version APIs replaces get_attributes APIs 4. dpni_get/reset_statistics APIs replaces dpni_get/set_counter APIs 5. Simplifies struct dpni_cfg and removes dpni_extended_cfg struct 6. Single API dpni_get_buffer_layout/set_buffer_layout replaces dpni_get_rx/set_rx, tx related, tx_conf_buffer_layout related APIs. New API takes a queue type as an argument. 7. Similarly dpni_get_queue/set_queue replaces dpni_get_rx_flow/set_rx_flow , tx_flow related, tx_conf related APIs Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com> Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
20 lines
578 B
C
20 lines
578 B
C
/* Copyright 2013-2016 Freescale Semiconductor Inc.
|
|
* Copyright 2017 NXP
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
#ifndef __FSL_DPMNG_CMD_H
|
|
#define __FSL_DPMNG_CMD_H
|
|
|
|
/* Command IDs */
|
|
#define DPMNG_CMDID_GET_VERSION 0x8311
|
|
|
|
/* cmd, param, offset, width, type, arg_name */
|
|
#define DPMNG_RSP_GET_VERSION(cmd, mc_ver_info) \
|
|
do { \
|
|
MC_RSP_OP(cmd, 0, 0, 32, uint32_t, mc_ver_info->revision); \
|
|
MC_RSP_OP(cmd, 0, 32, 32, uint32_t, mc_ver_info->major); \
|
|
MC_RSP_OP(cmd, 1, 0, 32, uint32_t, mc_ver_info->minor); \
|
|
} while (0)
|
|
|
|
#endif /* __FSL_DPMNG_CMD_H */
|