On Fri, May 23, 2025 at 11:29:58PM +0000, David Matlack wrote: > Import drivers/dma/ioat/{hw.h,registers.h} into tools/include/ so that > they can be used in VFIO selftests to interact with Intel CBDMA devices. > > Changes made when importing: > - Drop system_has_dca_enabled() prototype from hw.h > > Cc: Dave Jiang <dave.ji...@intel.com> > Cc: Dan Williams <dan.j.willi...@intel.com> > Signed-off-by: David Matlack <dmatl...@google.com> > --- > tools/include/drivers/dma/ioat/hw.h | 270 +++++++++++++++++++++ > tools/include/drivers/dma/ioat/registers.h | 251 +++++++++++++++++++ > 2 files changed, 521 insertions(+) > create mode 100644 tools/include/drivers/dma/ioat/hw.h > create mode 100644 tools/include/drivers/dma/ioat/registers.h
I think you'd be better to not duplicate the code but just #include a shared header from drivers/dma/ioat/ and so on for the other patches too Jason