jtag: drivers: xlnx-pcie-xvc: fix build on Linux pre v4.10 35/5435/2
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 5 Feb 2020 17:00:12 +0000 (18:00 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Thu, 6 Feb 2020 20:22:49 +0000 (20:22 +0000)
commitd91e19eb16b0ba387e270da9a6001dfdc3482524
tree866b664c5a14bc390f0a054cd0ed4d190c1c8168
parentc2e2deb4dd8edc7046d0412eef3b1203d7b327a0
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 <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5435
Reviewed-by: Moritz Fischer <moritzf@google.com>
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Tested-by: jenkins
src/jtag/drivers/xlnx-pcie-xvc.c