summaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat/dma.h
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2015-10-31 03:07:13 +0100
committerVinod Koul <vinod.koul@intel.com>2015-10-31 03:07:13 +0100
commit212dac5665cc4b7329537d932362f31a481cef3b (patch)
tree8aa6fdabeb145b284e41471c1b6346b8aebbb735 /drivers/dma/ioat/dma.h
parentMerge branch 'topic/idma' into for-linus (diff)
parentdmaengine: ioatdma: add PCIe AER handlers (diff)
downloadlinux-212dac5665cc4b7329537d932362f31a481cef3b.tar.xz
linux-212dac5665cc4b7329537d932362f31a481cef3b.zip
Merge branch 'topic/ioatdma' into for-linus
Diffstat (limited to 'drivers/dma/ioat/dma.h')
-rw-r--r--drivers/dma/ioat/dma.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
index 1bc084986646..8f4e607d5817 100644
--- a/drivers/dma/ioat/dma.h
+++ b/drivers/dma/ioat/dma.h
@@ -82,8 +82,9 @@ struct ioatdma_device {
struct dma_pool *sed_hw_pool[MAX_SED_POOLS];
struct dma_device dma_dev;
u8 version;
- struct msix_entry msix_entries[4];
- struct ioatdma_chan *idx[4];
+#define IOAT_MAX_CHANS 4
+ struct msix_entry msix_entries[IOAT_MAX_CHANS];
+ struct ioatdma_chan *idx[IOAT_MAX_CHANS];
struct dca_provider *dca;
enum ioat_irq_mode irq_mode;
u32 cap;
@@ -95,6 +96,7 @@ struct ioatdma_chan {
dma_addr_t last_completion;
spinlock_t cleanup_lock;
unsigned long state;
+ #define IOAT_CHAN_DOWN 0
#define IOAT_COMPLETION_ACK 1
#define IOAT_RESET_PENDING 2
#define IOAT_KOBJ_INIT_FAIL 3