Skip to content

Commit

Permalink
ioat: move to drivers/dma/ioat/
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Williams committed Jul 28, 2009
1 parent 07a2039 commit 584ec22
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 13 deletions.
3 changes: 1 addition & 2 deletions drivers/dma/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions drivers/dma/ioat/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
obj-$(CONFIG_INTEL_IOATDMA) += ioatdma.o
ioatdma-objs := pci.o dma.o dca.o
4 changes: 2 additions & 2 deletions drivers/dma/ioat_dca.c → drivers/dma/ioat/dca.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions drivers/dma/ioat_dma.c → drivers/dma/ioat/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/dma/ioatdma.h → drivers/dma/ioat/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions drivers/dma/ioat.c → drivers/dma/ioat/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions drivers/idle/i7300_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down

0 comments on commit 584ec22

Please sign in to comment.