1 /* SPDX-License-Identifier: GPL-2.0+ */
6 #ifndef __FSL_QBMAN_H__
7 #define __FSL_QBMAN_H__
8 void fdt_fixup_qportals(void *blob);
9 void fdt_fixup_bportals(void *blob);
10 void inhibit_portals(void __iomem *addr, int max_portals,
11 int arch_max_portals, int portal_cinh_size);
12 void setup_qbman_portals(void);
15 #ifdef CONFIG_SYS_FSL_QMAN_V3
19 u32 qcsp_lio_cfg; /* 0x0 - SW Portal n LIO cfg */
20 u32 qcsp_io_cfg; /* 0x4 - SW Portal n IO cfg */
22 u32 qcsp_dd_cfg; /* 0xc - SW Portal Dynamic Debug cfg */
25 /* Not actually reserved, but irrelevant to u-boot */
26 u8 res[0xbf8 - 0x200];
29 u32 fqd_bare; /* FQD Extended Base Addr Register */
30 u32 fqd_bar; /* FQD Base Addr Register */
32 u32 fqd_ar; /* FQD Attributes Register */
34 u32 pfdr_bare; /* PFDR Extended Base Addr Register */
35 u32 pfdr_bar; /* PFDR Base Addr Register */
37 u32 pfdr_ar; /* PFDR Attributes Register */
39 u32 qcsp_bare; /* QCSP Extended Base Addr Register */
40 u32 qcsp_bar; /* QCSP Base Addr Register */
42 u32 ci_sched_cfg; /* Initiator Scheduling Configuration */
43 u32 srcidr; /* Source ID Register */
44 u32 liodnr; /* LIODN Register */
46 u32 ci_rlm_cfg; /* Initiator Read Latency Monitor Cfg */
47 u32 ci_rlm_avg; /* Initiator Read Latency Monitor Avg */
49 #ifdef CONFIG_SYS_FSL_QMAN_V3
51 u32 qcsp_lio_cfg; /* 0x0 - SW Portal n LIO cfg */
52 u32 qcsp_io_cfg; /* 0x4 - SW Portal n IO cfg */
54 u32 qcsp_dd_cfg; /* 0xc - SW Portal n Dynamic Debug cfg*/
60 /* Not actually reserved, but irrelevant to u-boot */
64 u32 fbpr_bare; /* FBPR Extended Base Addr Register */
65 u32 fbpr_bar; /* FBPR Base Addr Register */
67 u32 fbpr_ar; /* FBPR Attributes Register */
69 u32 srcidr; /* Source ID Register */
70 u32 liodnr; /* LIODN Register */
74 #endif /* __FSL_QBMAN_H__ */