summaryrefslogtreecommitdiffstats
path: root/src/include/device/pci.h
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-10-27 12:25:12 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-11-03 13:05:17 +0000
commit35c3ae3bf4a43a36028fbd9e34ea4cb758029bf1 (patch)
tree4b706d4931692f6cde4d16339d7de1b0bf5f1e55 /src/include/device/pci.h
parent109bd3b796bae2f8333d832e9f0cc778c6663297 (diff)
downloadcoreboot-35c3ae3bf4a43a36028fbd9e34ea4cb758029bf1.tar.gz
coreboot-35c3ae3bf4a43a36028fbd9e34ea4cb758029bf1.tar.bz2
coreboot-35c3ae3bf4a43a36028fbd9e34ea4cb758029bf1.zip
treewide: Add 'IWYU pragma: export' comment
This pragma says to IWYU (Include What You Use) that the current file is supposed to provide commented headers. Change-Id: I482c645f6b5f955e532ad94def1b2f74f15ca908 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68332 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/include/device/pci.h')
-rw-r--r--src/include/device/pci.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/include/device/pci.h b/src/include/device/pci.h
index f28f319d8cc6..88b955570a69 100644
--- a/src/include/device/pci.h
+++ b/src/include/device/pci.h
@@ -19,14 +19,15 @@
#if CONFIG(PCI)
-#include <stdint.h>
-#include <stddef.h>
-#include <device/pci_def.h>
-#include <device/resource.h>
+/* When <device/pci.h> is needed, it supposed to provide <device/pci_{def,type}.h> */
#include <device/device.h>
+#include <device/pci_def.h> /* IWYU pragma: export */
#include <device/pci_ops.h>
#include <device/pci_rom.h>
-#include <device/pci_type.h>
+#include <device/pci_type.h> /* IWYU pragma: export */
+#include <device/resource.h>
+#include <stddef.h>
+#include <stdint.h>
/* Common pci operations without a standard interface */
struct pci_operations {