1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2014-2016 Freescale Semiconductor, Inc.
4 * Copyright 2017-2018 NXP
7 #ifndef _FSL_MC_PRIVATE_H_
8 #define _FSL_MC_PRIVATE_H_
13 #include <linux/compat.h>
14 #include <linux/types.h>
15 #include <linux/stringify.h>
18 #include <fsl-mc/fsl_mc_sys.h>
19 #include <fsl-mc/fsl_mc_cmd.h>
20 #include <fsl-mc/fsl_dprc.h>
21 #include <fsl-mc/fsl_dpbp.h>
22 #include <fsl-mc/fsl_dpni.h>
24 extern struct fsl_mc_io
*dflt_mc_io
;
27 * struct dpbp_node - DPBP strucuture
28 * @uint16_t handle: DPBP object handle
29 * @struct dpbp_attr: DPBP attribute
34 struct dpbp_attr dpbp_attr
;
37 extern struct fsl_dpbp_obj
*dflt_dpbp
;
40 * struct fsl_dpio_obj - DPIO strucuture
41 * @int dpio_id: DPIO id
42 * @struct qbman_swp *sw_portal: SW portal object
47 struct qbman_swp
*sw_portal
; /** SW portal object */
50 extern struct fsl_dpio_obj
*dflt_dpio
;
53 * struct dpni_node - DPNI strucuture
54 * @int dpni_id: DPNI id
55 * @uint16_t handle: DPNI object handle
56 * @struct dpni_attr: DPNI attributes
57 * @struct dpni_buffer_layout: DPNI buffer layout
62 struct dpni_attr dpni_attrs
;
63 struct dpni_buffer_layout buf_layout
;
66 extern struct fsl_dpni_obj
*dflt_dpni
;
69 * struct sp_blob_header - SP Blob header structure
70 * @magic: SP Blob magic number
71 * @blob_ver: SP Blob version
72 * @ip_rev: SP IP revision
73 * @length: Length of the SP Blob
75 struct sp_blob_header
{
82 int mc_init(u64 mc_fw_addr
, u64 mc_dpc_addr
);
83 int ldpaa_eth_init(int dpmac_id
, phy_interface_t enet_if
);
84 int mc_apply_dpl(u64 mc_dpl_addr
);
85 int mc_apply_spb(u64 mc_spb_addr
);
86 #endif /* _FSL_MC_PRIVATE_H_ */