]> www.infradead.org Git - users/hch/misc.git/commitdiff
dmaengine: ioat: Move system_has_dca_enabled() to dma.h
authorDavid Matlack <dmatlack@google.com>
Fri, 22 Aug 2025 21:25:05 +0000 (21:25 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 27 Aug 2025 18:14:07 +0000 (12:14 -0600)
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>
drivers/dma/ioat/dma.h
drivers/dma/ioat/hw.h

index a180171087a872e1a593572ad40802bc6d375f5a..12a4a4860a74e90c1681d8810c6c3145dc0040ae 100644 (file)
@@ -19,6 +19,8 @@
 
 #define IOAT_DMA_DCA_ANY_CPU           ~0
 
+int system_has_dca_enabled(struct pci_dev *pdev);
+
 #define to_ioatdma_device(dev) container_of(dev, struct ioatdma_device, dma_dev)
 #define to_dev(ioat_chan) (&(ioat_chan)->ioat_dma->pdev->dev)
 #define to_pdev(ioat_chan) ((ioat_chan)->ioat_dma->pdev)
index 79e4e4c09c188d5e9edb300d9105db184d277378..0373c48520c904153137d01910494471a57e993e 100644 (file)
@@ -63,9 +63,6 @@
 #define IOAT_VER_3_3            0x33    /* Version 3.3 */
 #define IOAT_VER_3_4           0x34    /* Version 3.4 */
 
-
-int system_has_dca_enabled(struct pci_dev *pdev);
-
 #define IOAT_DESC_SZ   64
 
 struct ioat_dma_descriptor {