patch pci-make-some-msi-x-defines-generic.patch added to gregkh-2.6 tree
gregkh at suse.de
gregkh at suse.de
Tue Nov 14 05:31:04 EST 2006
This is a note to let you know that I've just added the patch titled
Subject: PCI: Make some MSI-X #defines generic
to my gregkh-2.6 tree. Its filename is
pci-make-some-msi-x-defines-generic.patch
This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/
>From michael at ozlabs.org Mon Nov 6 23:21:30 2006
To: <linuxppc-dev at ozlabs.org>
CC: Benjamin Herrenschmidt <benh at kernel.crashing.org>,
Greg Kroah-Hartman <greg at kroah.com>,
linux-pci at atrey.karlin.mff.cuni.cz,
Jake Moilanen <moilanen at austin.ibm.com>,
Segher Boessenkool <segher at kernel.crashing.org>,
Eric W. Biederman <ebiederm at xmission.com>,
David S. Miller <davem at davemloft.net>
From: Michael Ellerman <michael at ellerman.id.au>
Date: Tue, 07 Nov 2006 18:21:21 +1100
Subject: PCI: Make some MSI-X #defines generic
Message-Id: <20061107072123.CF52F67C35 at ozlabs.org>
Move some MSI-X #defines into pci_regs.h so they can be used
outside of drivers/pci.
Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
drivers/pci/msi.h | 8 --------
include/linux/pci_regs.h | 6 ++++++
2 files changed, 6 insertions(+), 8 deletions(-)
--- gregkh-2.6.orig/drivers/pci/msi.h
+++ gregkh-2.6/drivers/pci/msi.h
@@ -6,14 +6,6 @@
#ifndef MSI_H
#define MSI_H
-/*
- * MSI-X Address Register
- */
-#define PCI_MSIX_FLAGS_QSIZE 0x7FF
-#define PCI_MSIX_FLAGS_ENABLE (1 << 15)
-#define PCI_MSIX_FLAGS_BIRMASK (7 << 0)
-#define PCI_MSIX_FLAGS_BITMASK (1 << 0)
-
#define PCI_MSIX_ENTRY_SIZE 16
#define PCI_MSIX_ENTRY_LOWER_ADDR_OFFSET 0
#define PCI_MSIX_ENTRY_UPPER_ADDR_OFFSET 4
--- gregkh-2.6.orig/include/linux/pci_regs.h
+++ gregkh-2.6/include/linux/pci_regs.h
@@ -292,6 +292,12 @@
#define PCI_MSI_DATA_64 12 /* 16 bits of data for 64-bit devices */
#define PCI_MSI_MASK_BIT 16 /* Mask bits register */
+/* MSI-X registers (these are at offset PCI_MSI_FLAGS) */
+#define PCI_MSIX_FLAGS_QSIZE 0x7FF
+#define PCI_MSIX_FLAGS_ENABLE (1 << 15)
+#define PCI_MSIX_FLAGS_BIRMASK (7 << 0)
+#define PCI_MSIX_FLAGS_BITMASK (1 << 0)
+
/* CompactPCI Hotswap Register */
#define PCI_CHSWP_CSR 2 /* Control and Status Register */
Patches currently in gregkh-2.6 which might be from linuxppc-dev at ozlabs.org are
pci/pci-make-some-msi-x-defines-generic.patch
More information about the Linuxppc-dev
mailing list