4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef __FSL_QBMAN_H__
8 #define __FSL_QBMAN_H__
9 void fdt_fixup_qportals(void *blob);
10 void fdt_fixup_bportals(void *blob);
11 void inhibit_portals(void __iomem *addr, int max_portals,
12 int arch_max_portals, int portal_cinh_size);
13 void setup_qbman_portals(void);
16 #ifdef CONFIG_SYS_FSL_QMAN_V3
20 u32 qcsp_lio_cfg; /* 0x0 - SW Portal n LIO cfg */
21 u32 qcsp_io_cfg; /* 0x4 - SW Portal n IO cfg */
23 u32 qcsp_dd_cfg; /* 0xc - SW Portal Dynamic Debug cfg */
26 /* Not actually reserved, but irrelevant to u-boot */
27 u8 res[0xbf8 - 0x200];
30 u32 fqd_bare; /* FQD Extended Base Addr Register */
31 u32 fqd_bar; /* FQD Base Addr Register */
33 u32 fqd_ar; /* FQD Attributes Register */
35 u32 pfdr_bare; /* PFDR Extended Base Addr Register */
36 u32 pfdr_bar; /* PFDR Base Addr Register */
38 u32 pfdr_ar; /* PFDR Attributes Register */
40 u32 qcsp_bare; /* QCSP Extended Base Addr Register */
41 u32 qcsp_bar; /* QCSP Base Addr Register */
43 u32 ci_sched_cfg; /* Initiator Scheduling Configuration */
44 u32 srcidr; /* Source ID Register */
45 u32 liodnr; /* LIODN Register */
47 u32 ci_rlm_cfg; /* Initiator Read Latency Monitor Cfg */
48 u32 ci_rlm_avg; /* Initiator Read Latency Monitor Avg */
50 #ifdef CONFIG_SYS_FSL_QMAN_V3
52 u32 qcsp_lio_cfg; /* 0x0 - SW Portal n LIO cfg */
53 u32 qcsp_io_cfg; /* 0x4 - SW Portal n IO cfg */
55 u32 qcsp_dd_cfg; /* 0xc - SW Portal n Dynamic Debug cfg*/
61 /* Not actually reserved, but irrelevant to u-boot */
65 u32 fbpr_bare; /* FBPR Extended Base Addr Register */
66 u32 fbpr_bar; /* FBPR Base Addr Register */
68 u32 fbpr_ar; /* FBPR Attributes Register */
70 u32 srcidr; /* Source ID Register */
71 u32 liodnr; /* LIODN Register */
75 #endif /* __FSL_QBMAN_H__ */