From 6c64d64e487debad12dbb9be0c87aea27525285c Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Wed, 6 Oct 2021 16:45:11 +0300 Subject: [PATCH] dma: Add a range of device types reserved for apps That will allow applications to create their own dma devices types IDs which won't conflict with SPDK internal device types Signed-off-by: Alexey Marchuk Signed-off-by: Max Gurtovoy Change-Id: I89bf25a5ed760967d823f3fc32a466657f45e799 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9777 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- include/spdk/dma.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/spdk/dma.h b/include/spdk/dma.h index 77c66c4e1..f9b27d3f8 100644 --- a/include/spdk/dma.h +++ b/include/spdk/dma.h @@ -57,7 +57,15 @@ enum spdk_dma_device_type { SPDK_DMA_DEVICE_TYPE_RDMA, /** DMA devices are capable of performing DMA operations on memory domains using physical or * I/O virtual addresses. */ - SPDK_DMA_DEVICE_TYPE_DMA + SPDK_DMA_DEVICE_TYPE_DMA, + /** + * Start of the range of vendor-specific DMA device types + */ + SPDK_DMA_DEVICE_VENDOR_SPECIFIC_TYPE_START = 1000, + /** + * End of the range of vendor-specific DMA device types + */ + SPDK_DMA_DEVICE_VENDOR_SPECIFIC_TYPE_END = SPDK_DMA_DEVICE_VENDOR_SPECIFIC_TYPE_START + 999 }; struct spdk_memory_domain;