]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ioat: move to drivers/dma/ioat/
authorDan Williams <dan.j.williams@intel.com>
Tue, 28 Jul 2009 21:32:12 +0000 (14:32 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 28 Jul 2009 21:32:12 +0000 (14:32 -0700)
When first created the ioat driver was the only inhabitant of
drivers/dma/.  Now, it is the only multi-file (more than a .c and a .h)
driver in the directory.  Moving it to an ioat/ subdirectory allows the
naming convention to be cleaned up, and allows for future splitting of
the source files by hardware version (v1, v2, and v3).

Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/Makefile
drivers/dma/ioat/Makefile [new file with mode: 0644]
drivers/dma/ioat/dca.c [moved from drivers/dma/ioat_dca.c with 99% similarity]
drivers/dma/ioat/dma.c [moved from drivers/dma/ioat_dma.c with 99% similarity]
drivers/dma/ioat/dma.h [moved from drivers/dma/ioatdma.h with 99% similarity]
drivers/dma/ioat/hw.h [moved from drivers/dma/ioatdma_hw.h with 100% similarity]
drivers/dma/ioat/pci.c [moved from drivers/dma/ioat.c with 98% similarity]
drivers/dma/ioat/registers.h [moved from drivers/dma/ioatdma_registers.h with 100% similarity]
drivers/idle/i7300_idle.c

index 2e5dc96700d20b677535b4576956ef7954bcd98d..a1cb2857bba6df1b3874b3e5946e2c0c8e702ac1 100644 (file)
@@ -1,8 +1,7 @@
 obj-$(CONFIG_DMA_ENGINE) += dmaengine.o
 obj-$(CONFIG_NET_DMA) += iovlock.o
 obj-$(CONFIG_DMATEST) += dmatest.o
-obj-$(CONFIG_INTEL_IOATDMA) += ioatdma.o
-ioatdma-objs := ioat.o ioat_dma.o ioat_dca.o
+obj-$(CONFIG_INTEL_IOATDMA) += ioat/
 obj-$(CONFIG_INTEL_IOP_ADMA) += iop-adma.o
 obj-$(CONFIG_FSL_DMA) += fsldma.o
 obj-$(CONFIG_MV_XOR) += mv_xor.o
diff --git a/drivers/dma/ioat/Makefile b/drivers/dma/ioat/Makefile
new file mode 100644 (file)
index 0000000..2ce3d3a
--- /dev/null
@@ -0,0 +1,2 @@
+obj-$(CONFIG_INTEL_IOATDMA) += ioatdma.o
+ioatdma-objs := pci.o dma.o dca.o
similarity index 99%
rename from drivers/dma/ioat_dca.c
rename to drivers/dma/ioat/dca.c
index c012a1e150431972649b10a502cf658f9a71320b..af1c762dd9d0c3adbeedeec34d5b527f183356e2 100644 (file)
@@ -33,8 +33,8 @@
 #define cpu_physical_id(cpu) (cpuid_ebx(1) >> 24)
 #endif
 
-#include "ioatdma.h"
-#include "ioatdma_registers.h"
+#include "dma.h"
+#include "registers.h"
 
 /*
  * Bit 7 of a tag map entry is the "valid" bit, if it is set then bits 0:6
similarity index 99%
rename from drivers/dma/ioat_dma.c
rename to drivers/dma/ioat/dma.c
index a600fc0f79625a268ef6114fda6d3d3de49d4ded..648797e83295587af60aad35688eaf10be9c67f6 100644 (file)
@@ -34,9 +34,9 @@
 #include <linux/dma-mapping.h>
 #include <linux/workqueue.h>
 #include <linux/i7300_idle.h>
-#include "ioatdma.h"
-#include "ioatdma_registers.h"
-#include "ioatdma_hw.h"
+#include "dma.h"
+#include "registers.h"
+#include "hw.h"
 
 #define to_ioat_chan(chan) container_of(chan, struct ioat_dma_chan, common)
 #define to_ioatdma_device(dev) container_of(dev, struct ioatdma_device, common)
similarity index 99%
rename from drivers/dma/ioatdma.h
rename to drivers/dma/ioat/dma.h
index a52ff4bd4601f78dbfe3fe472bb0b26c568e422d..e80e787fe64f57f45cdc5215bf54bdba753f20f5 100644 (file)
@@ -22,7 +22,7 @@
 #define IOATDMA_H
 
 #include <linux/dmaengine.h>
-#include "ioatdma_hw.h"
+#include "hw.h"
 #include <linux/init.h>
 #include <linux/dmapool.h>
 #include <linux/cache.h>
similarity index 98%
rename from drivers/dma/ioat.c
rename to drivers/dma/ioat/pci.c
index 2225bb6ba3d14c55790eeeea78dace956fa905b0..d7948bfd8fba9e2da0daf7c8a45100a3cfc2b3b1 100644 (file)
@@ -30,9 +30,9 @@
 #include <linux/pci.h>
 #include <linux/interrupt.h>
 #include <linux/dca.h>
-#include "ioatdma.h"
-#include "ioatdma_registers.h"
-#include "ioatdma_hw.h"
+#include "dma.h"
+#include "registers.h"
+#include "hw.h"
 
 MODULE_VERSION(IOAT_DMA_VERSION);
 MODULE_LICENSE("GPL");
index 949c97ff57e35bec6917c4aab4aca2ebaa165c32..f2ec7243549ed5df0b71b44f5cc5cdcdda6aaae3 100644 (file)
@@ -29,8 +29,8 @@
 
 #include <asm/idle.h>
 
-#include "../dma/ioatdma_hw.h"
-#include "../dma/ioatdma_registers.h"
+#include "../dma/ioat/hw.h"
+#include "../dma/ioat/registers.h"
 
 #define I7300_IDLE_DRIVER_VERSION      "1.55"
 #define I7300_PRINT                    "i7300_idle:"