xref: /aosp_15_r20/external/flashrom/include/platform/pci.h (revision 0d6140be3aa665ecc836e8907834fcd3e3b018fc)
1 /*
2  * This file is part of the flashrom project.
3  *
4  * Copyright (C) 2022 secunet Security Networks AG
5  * (written by Thomas Heijligen <[email protected])
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  */
17 
18 #ifndef __PLATFORM_PCI_H__
19 #define __PLATFORM_PCI_H__
20 
21 /* Some NetBSDs are using an other include path for pci.h
22  * e.g. NetBSD 9.0 on sparc64 pciutils-3.7.0nb2.
23  * Other NetBSD platforms and versions uses the default path under pci/pci.h
24  */
25 #ifdef HAVE_PCIUTILS_PCI_H
26 #include <pciutils/pci.h>
27 #else
28 #include <pci/pci.h>
29 #endif /* HAVE_PCIUTILS_PCI_H */
30 
31 #endif /* __PLATFORM_PCI_H__ */
32