diff options
author | Roy Pledge <roy.pledge@nxp.com> | 2017-09-18 16:39:36 -0400 |
---|---|---|
committer | Li Yang <leoyang.li@nxp.com> | 2017-09-22 13:33:07 -0500 |
commit | 42d0349784c74d8a1e92cfbec120b9a6868b0c25 (patch) | |
tree | 5b7d042dbbc9f4aa817403922bcfa113abfe30d9 /drivers/soc/fsl/qbman/dpaa_sys.h | |
parent | b4964680834708da00fd82e84d8cfc716bf829d1 (diff) |
soc/fsl/qbman: Add common routine for QBMan private allocations
The QBMan device uses several memory regions to manage frame
queues and buffers. Add a common routine for extracting and
initializing these reserved memory areas.
Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/soc/fsl/qbman/dpaa_sys.h')
-rw-r--r-- | drivers/soc/fsl/qbman/dpaa_sys.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/soc/fsl/qbman/dpaa_sys.h b/drivers/soc/fsl/qbman/dpaa_sys.h index 2ce394aa4c95..676af829cea0 100644 --- a/drivers/soc/fsl/qbman/dpaa_sys.h +++ b/drivers/soc/fsl/qbman/dpaa_sys.h @@ -102,4 +102,8 @@ static inline u8 dpaa_cyc_diff(u8 ringsize, u8 first, u8 last) /* Offset applied to genalloc pools due to zero being an error return */ #define DPAA_GENALLOC_OFF 0x80000000 +/* Initialize the devices private memory region */ +int qbman_init_private_mem(struct device *dev, int idx, dma_addr_t *addr, + size_t *size); + #endif /* __DPAA_SYS_H */ |