summaryrefslogtreecommitdiffstats
path: root/linux/drivers/soc/fsl/qbman/bman.c
diff options
context:
space:
mode:
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)
{