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 <alexeymar@mellanox.com>
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Change-Id: I89bf25a5ed760967d823f3fc32a466657f45e799
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9777
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Alexey Marchuk 2021-10-06 16:45:11 +03:00 committed by Jim Harris
parent 0ecbe09bc1
commit 6c64d64e48

View File

@ -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;