summaryrefslogtreecommitdiff
path: root/drivers/soc/fsl/qbman/bman_priv.h
diff options
context:
space:
mode:
authorRoy Pledge <roy.pledge@nxp.com>2019-08-01 20:16:55 +0000
committerLi Yang <leoyang.li@nxp.com>2019-08-15 16:41:42 -0500
commit0505d00c8dbaf06cb71e7a16818313ce1959e6d7 (patch)
treecf94b6353ea31c4d4d5be0a7555b088ee75a7f16 /drivers/soc/fsl/qbman/bman_priv.h
parent97777078d695d4294c999ad29363ff11f6384442 (diff)
soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup
Clean the BMan buffer pools if the device had been initialized previously. This will ensure a consistent state if the kernel was soft restarted (kexec for example) Signed-off-by: Roy Pledge <roy.pledge@nxp.com> Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/soc/fsl/qbman/bman_priv.h')
-rw-r--r--drivers/soc/fsl/qbman/bman_priv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/soc/fsl/qbman/bman_priv.h b/drivers/soc/fsl/qbman/bman_priv.h
index 751ce90383b7..aa3981e04965 100644
--- a/drivers/soc/fsl/qbman/bman_priv.h
+++ b/drivers/soc/fsl/qbman/bman_priv.h
@@ -76,3 +76,8 @@ int bman_p_irqsource_add(struct bman_portal *p, u32 bits);
const struct bm_portal_config *
bman_get_bm_portal_config(const struct bman_portal *portal);
+
+int bman_requires_cleanup(void);
+void bman_done_cleanup(void);
+
+int bm_shutdown_pool(u32 bpid);