src/device: Add check for existence and validity of PCIE base address config

Signed-off-by: Aamir Bohra <aamir.bohra@intel.com>
Change-Id: I89b0e9c927d395ac6d27201e0b3a8658e958518d
Reviewed-on: https://review.coreboot.org/27263
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Aamir Bohra 2018-06-28 17:24:03 +05:30 committed by Nico Huber
parent abe62be81d
commit cbc012318c
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@
#include <device/pci_ids.h> #include <device/pci_ids.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#if !defined(CONFIG_MMCONF_BASE_ADDRESS) || !CONFIG_MMCONF_BASE_ADDRESS
#error "CONFIG_MMCONF_BASE_ADDRESS needs to be non-zero!"
#endif
/* /*
* Functions for accessing PCI configuration space with mmconf accesses * Functions for accessing PCI configuration space with mmconf accesses
*/ */