From cb1599e9f28dcfd68639df9b828ee2146defbc19 Mon Sep 17 00:00:00 2001 From: Bhadram Varka Date: Mon, 28 Feb 2022 08:51:15 +0530 Subject: [PATCH] osi: dma: Define macro for DMA TX max buffer size Bug 3528173 Change-Id: If7152ec75bcf21d820cd68c3aff31e3c6aa8ae6b Signed-off-by: Bhadram Varka Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2675628 Reviewed-by: svcacv Reviewed-by: Gaurav Asati Reviewed-by: Narayan Reddy Reviewed-by: Krishna Thota GVS: Gerrit_Virtual_Submit --- include/osi_dma.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/osi_dma.h b/include/osi_dma.h index c21221f..c7a800f 100644 --- a/include/osi_dma.h +++ b/include/osi_dma.h @@ -247,6 +247,11 @@ #endif /* OSI_DEBUG */ /** @} */ +/** + * @brief Maximum buffer length per DMA descriptor (16KB - 1). + */ +#define OSI_TX_MAX_BUFF_SIZE 0x3FFFU + /** * @brief OSI packet error stats */