From: Luis R. Rodriguez Date: Sat, 1 Dec 2012 19:22:09 +0000 (-0800) Subject: compat: backport PCI MSI-X entry definitions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=71273f810fe2698015a3dcb0e6323aeed4bc3e9d;p=openwrt%2Fstaging%2Fblogic.git compat: backport PCI MSI-X entry definitions The PCI MSI-X entries were moved to uapi headers on v2.6.38 to allow drivers to use it. Older kernels will need this. mcgrof@frijol ~/linux-stable (git::linux-3.2.y)$ git describe --contains 00aaaef9 v2.6.38-rc1~55^2~15 commit 00aaaef9a51a1a25c5d6d52ce510772f149a0eb0 Author: Sheng Yang Date: Thu Nov 11 15:46:54 2010 +0800 PCI: MSI: Move MSI-X entry definition to pci_regs.h Then it can be used by others. Reviewed-by: Hidetoshi Seto Reviewed-by: Matthew Wilcox Signed-off-by: Sheng Yang Signed-off-by: Jesse Barnes Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-2.6.38.h b/include/linux/compat-2.6.38.h index 1d725231b400..676d55407881 100644 --- a/include/linux/compat-2.6.38.h +++ b/include/linux/compat-2.6.38.h @@ -10,6 +10,13 @@ #include #include +/* MSI-X entry's format */ +#define PCI_MSIX_ENTRY_SIZE 16 +#define PCI_MSIX_ENTRY_LOWER_ADDR 0 +#define PCI_MSIX_ENTRY_UPPER_ADDR 4 +#define PCI_MSIX_ENTRY_DATA 8 +#define PCI_MSIX_ENTRY_VECTOR_CTRL 12 + #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) static inline void bstats_update(struct gnet_stats_basic_packed *bstats, const struct sk_buff *skb)