2 * Copyright 2009-2011 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef _FSL_PORTALS_H_
8 #define _FSL_PORTALS_H_
10 /* entries must be in order and contiguous */
13 #ifdef CONFIG_SYS_DPAA_FMAN
15 #if (CONFIG_SYS_NUM_FMAN == 2)
20 #ifdef CONFIG_SYS_FSL_RAID_ENGINE
21 FSL_HW_PORTAL_RAID_ENGINE,
23 #ifdef CONFIG_SYS_DPAA_RMAN
26 #ifdef CONFIG_SYS_DPAA_DCE
33 u16 dliodn; /* DQRR LIODN */
34 u16 fliodn; /* frame data LIODN */
39 #define SET_QP_INFO(dqrr, fdata, off, dest) \
40 { .dliodn = dqrr, .fliodn = fdata, .liodn_offset = off, .sdest = dest }
42 extern int get_dpaa_liodn(enum fsl_dpaa_dev dpaa_dev,
43 u32 *liodns, int liodn_offset);
44 extern void setup_portals(void);
45 extern void fdt_fixup_qportals(void *blob);
46 extern void fdt_fixup_bportals(void *blob);
48 extern struct qportal_info qp_info[];
49 extern void fdt_portal(void *blob, const char *compat, const char *container,