Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: ioat: Move system_has_dca_enabled() to dma.h

Move the function prototype for system_has_dca_enabled() from hw.h to
dma.h. This allows hw.h to be included from tools/, which will be used
in a subsysequent commit to implement a userspace driver for Intel CBDMA
devices in tools/testing/selftests/vfio.

No functional change intended.

Acked-by: Dave Jiang <dave.jiang@intel.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250822212518.4156428-19-dmatlack@google.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

authored by

David Matlack and committed by
Alex Williamson
b7f08691 dc0e216c

+2 -3
+2
drivers/dma/ioat/dma.h
··· 19 19 20 20 #define IOAT_DMA_DCA_ANY_CPU ~0 21 21 22 + int system_has_dca_enabled(struct pci_dev *pdev); 23 + 22 24 #define to_ioatdma_device(dev) container_of(dev, struct ioatdma_device, dma_dev) 23 25 #define to_dev(ioat_chan) (&(ioat_chan)->ioat_dma->pdev->dev) 24 26 #define to_pdev(ioat_chan) ((ioat_chan)->ioat_dma->pdev)
-3
drivers/dma/ioat/hw.h
··· 63 63 #define IOAT_VER_3_3 0x33 /* Version 3.3 */ 64 64 #define IOAT_VER_3_4 0x34 /* Version 3.4 */ 65 65 66 - 67 - int system_has_dca_enabled(struct pci_dev *pdev); 68 - 69 66 #define IOAT_DESC_SZ 64 70 67 71 68 struct ioat_dma_descriptor {