pcie: add framework

Squashed commits:

1. x86_64: qemu: implement pci-e functions and enumerate pci-e devices on boot

2. virt: add qemu pci-testdev driver

3. pcie: types array should be null terminated

4. pcie: enable don't take flags, hardcoded enabling flags

5. pcie: checking bar > 4 for 64bit bars are sufficient

6. pcie: qemu: remove not used header

7. pcie: qemu: return -EINVAL if buffer argument is NULL

8. pcie: make pcie enumerate routine as common instead of architecture dependent

9. pcie: cosmetic changes to fit check tools

10. pcie: create MSI/MSIX related marcos and simplify the msi/msix routines
This commit is contained in:
Yang Chung-Fan
2020-05-04 18:44:11 +09:00
committed by Xiang Xiao
parent 204f4a18a0
commit 18f97bf2f8
18 changed files with 1807 additions and 0 deletions
+35
View File
@@ -2196,6 +2196,41 @@ config DEBUG_IPC_INFO
endif # DEBUG_IPC
=======
config DEBUG_PCIE
bool "PCI-E Debug Features"
default n
depends on PCIE
---help---
Enable PCIE driver debug features.
Support for this debug option is architecture-specific and may not
be available for some MCUs.
if DEBUG_PCIE
config DEBUG_PCIE_ERROR
bool "PCI-E Error Output"
default n
depends on DEBUG_ERROR
---help---
Enable PCI-E driver error output to SYSLOG.
config DEBUG_PCIE_WARN
bool "PCI-E Warnings Output"
default n
depends on DEBUG_WARN
---help---
Enable PCI-E driver warning output to SYSLOG.
config DEBUG_PCIE_INFO
bool "PCI-E Informational Output"
default n
depends on DEBUG_INFO
---help---
Enable PCI-E driver informational output to SYSLOG.
endif # DEBUG_PCIE
endif # DEBUG_FEATURES
config ARCH_HAVE_STACKCHECK