This is an automated email from Gerrit.

Antonio Borneo ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/5435

-- gerrit

commit 5abb95d3cd1dab10d71143044a94dc31df2b94e6
Author: Antonio Borneo <[email protected]>
Date:   Wed Feb 5 18:00:12 2020 +0100

    jtag: drivers: xlnx-pcie-xvc: fix build on Linux pre v4.10
    
    The macro PCI_CFG_SPACE_EXP_SIZE is exposed to userspace from
    Linux kernel v4.10, with commit cc10385b6fde ("PCI: Move config
    space size macros to pci_regs.h")
    
http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc10385b6fde
    
    Define the macro in the driver code, if not already defined.
    
    Change-Id: I610219a2587eff2c142102b9f7830e3da882af78
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/src/jtag/drivers/xlnx-pcie-xvc.c b/src/jtag/drivers/xlnx-pcie-xvc.c
index 48b03ec..1743859 100644
--- a/src/jtag/drivers/xlnx-pcie-xvc.c
+++ b/src/jtag/drivers/xlnx-pcie-xvc.c
@@ -20,6 +20,11 @@
 #include <helper/replacements.h>
 #include <helper/bits.h>
 
+/* Available only from kernel v4.10 */
+#ifndef PCI_CFG_SPACE_EXP_SIZE
+#define PCI_CFG_SPACE_EXP_SIZE 4096
+#endif
+
 #define PCIE_EXT_CAP_LST       0x100
 
 #define XLNX_XVC_EXT_CAP       0x00

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to