1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright 2019 Intel Corporation 3 4build = dpdk_conf.has('RTE_ARCH_X86') 5# only use ioat rawdev driver if we don't have the equivalent dmadev ones 6if dpdk_conf.has('RTE_DMA_IDXD') and dpdk_conf.has('RTE_DMA_IOAT') 7 build = false 8 reason = 'replaced by dmadev drivers' 9 subdir_done() 10endif 11 12reason = 'only supported on x86' 13sources = files( 14 'ioat_common.c', 15 'ioat_rawdev_test.c', 16) 17 18if not dpdk_conf.has('RTE_DMA_IDXD') 19 sources += files( 20 'idxd_bus.c', 21 'idxd_pci.c', 22 ) 23endif 24 25if not dpdk_conf.has('RTE_DMA_IOAT') 26 sources += files ( 27 'ioat_rawdev.c', 28 ) 29endif 30 31deps += ['bus_pci', 'mbuf', 'rawdev'] 32headers = files( 33 'rte_ioat_rawdev.h', 34 'rte_idxd_rawdev_fns.h', 35 'rte_ioat_rawdev_fns.h', 36) 37