]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/powerpc/include/asm/fsl_portals.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / powerpc / include / asm / fsl_portals.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
db977abf 2/*
2a0ffb84 3 * Copyright 2009-2011 Freescale Semiconductor, Inc.
db977abf
KG
4 */
5
6#ifndef _FSL_PORTALS_H_
7#define _FSL_PORTALS_H_
8
9/* entries must be in order and contiguous */
10enum fsl_dpaa_dev {
11 FSL_HW_PORTAL_SEC,
12#ifdef CONFIG_SYS_DPAA_FMAN
13 FSL_HW_PORTAL_FMAN1,
14#if (CONFIG_SYS_NUM_FMAN == 2)
15 FSL_HW_PORTAL_FMAN2,
16#endif
17#endif
db977abf 18 FSL_HW_PORTAL_PME,
6b3a8d00
KG
19#ifdef CONFIG_SYS_FSL_RAID_ENGINE
20 FSL_HW_PORTAL_RAID_ENGINE,
21#endif
4d28db8a
KG
22#ifdef CONFIG_SYS_DPAA_RMAN
23 FSL_HW_PORTAL_RMAN,
24#endif
f311838d
AF
25#ifdef CONFIG_SYS_DPAA_DCE
26 FSL_HW_PORTAL_DCE,
27#endif
4d28db8a 28
db977abf
KG
29};
30
31struct qportal_info {
32 u16 dliodn; /* DQRR LIODN */
33 u16 fliodn; /* frame data LIODN */
34 u16 liodn_offset;
35 u8 sdest;
36};
37
38#define SET_QP_INFO(dqrr, fdata, off, dest) \
39 { .dliodn = dqrr, .fliodn = fdata, .liodn_offset = off, .sdest = dest }
40
41extern int get_dpaa_liodn(enum fsl_dpaa_dev dpaa_dev,
42 u32 *liodns, int liodn_offset);
db977abf
KG
43extern struct qportal_info qp_info[];
44extern void fdt_portal(void *blob, const char *compat, const char *container,
45 u64 addr, u32 size);
46
47#endif