I/OAT: Add support for MSI and MSI-X
[pandora-kernel.git] / drivers / dma / ioatdma.h
index 0b8ffbd..2abf0b8 100644 (file)
 #include <linux/cache.h>
 #include <linux/pci_ids.h>
 
+enum ioat_interrupt {
+       none = 0,
+       msix_multi_vector = 1,
+       msix_single_vector = 2,
+       msi = 3,
+       intx = 4,
+};
+
 #define IOAT_LOW_COMPLETION_MASK       0xffffffc0
 
 /**
@@ -46,6 +54,9 @@ struct ioatdma_device {
        struct pci_pool *completion_pool;
        struct dma_device common;
        u8 version;
+       enum ioat_interrupt irq_mode;
+       struct msix_entry msix_entries[4];
+       struct ioat_dma_chan *idx[4];
 };
 
 /**
@@ -94,6 +105,7 @@ struct ioat_dma_chan {
                        u32 high;
                };
        } *completion_virt;
+       struct tasklet_struct cleanup_task;
 };
 
 /* wrapper around hardware descriptor format + additional software fields */