summaryrefslogtreecommitdiffstats
path: root/linux/drivers/soc/fsl/qbman/bman.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-12 13:22:10 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-23 14:55:21 +0100
commita7d252c645c59e877fe468e4c3e33dde47381d7c (patch)
tree29b3324538fdf70ad00f19e03c80fda2b76808cb /linux/drivers/soc/fsl/qbman/bman.c
parentdpaa: Use device tree throughout in BMan init (diff)
downloadrtems-libbsd-a7d252c645c59e877fe468e4c3e33dde47381d7c.tar.bz2
dpaa: Add and use bman_new_pool_for_bpid()
Update #3277.
Diffstat (limited to 'linux/drivers/soc/fsl/qbman/bman.c')
-rw-r--r--linux/drivers/soc/fsl/qbman/bman.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/linux/drivers/soc/fsl/qbman/bman.c b/linux/drivers/soc/fsl/qbman/bman.c
index 44e4ee4b..50923fb1 100644
--- a/linux/drivers/soc/fsl/qbman/bman.c
+++ b/linux/drivers/soc/fsl/qbman/bman.c
@@ -720,6 +720,17 @@ err:
return NULL;
}
EXPORT_SYMBOL(bman_new_pool);
+#ifdef __rtems__
+struct bman_pool *
+bman_new_pool_for_bpid(u8 bpid)
+{
+ struct bman_pool *pool;
+
+ pool = malloc(sizeof(*pool), M_KMALLOC, M_WAITOK | M_ZERO);
+ pool->bpid = bpid;
+ return (pool);
+}
+#endif /* __rtems__ */
void bman_free_pool(struct bman_pool *pool)
{