xref: /illumos-gate/usr/src/lib/fm/topo/libtopo/common/pcie.h (revision 84ceaea936ebcf122d4f0756d298adf307fd491d)
1*84ceaea9SAndy Fiddaman /*
2*84ceaea9SAndy Fiddaman  * This file and its contents are supplied under the terms of the
3*84ceaea9SAndy Fiddaman  * Common Development and Distribution License ("CDDL"), version 1.0.
4*84ceaea9SAndy Fiddaman  * You may only use this file in accordance with the terms of version
5*84ceaea9SAndy Fiddaman  * 1.0 of the CDDL.
6*84ceaea9SAndy Fiddaman  *
7*84ceaea9SAndy Fiddaman  * A full copy of the text of the CDDL should have accompanied this
8*84ceaea9SAndy Fiddaman  * source.  A copy of the CDDL is also available via the Internet at
9*84ceaea9SAndy Fiddaman  * http://www.illumos.org/license/CDDL.
10*84ceaea9SAndy Fiddaman  */
11*84ceaea9SAndy Fiddaman 
12*84ceaea9SAndy Fiddaman /*
13*84ceaea9SAndy Fiddaman  * Copyright 2023 Oxide Computer Company
14*84ceaea9SAndy Fiddaman  */
15*84ceaea9SAndy Fiddaman 
16*84ceaea9SAndy Fiddaman #ifndef	_PCIE_H
17*84ceaea9SAndy Fiddaman #define	_PCIE_H
18*84ceaea9SAndy Fiddaman 
19*84ceaea9SAndy Fiddaman #ifdef	__cplusplus
20*84ceaea9SAndy Fiddaman extern "C" {
21*84ceaea9SAndy Fiddaman #endif
22*84ceaea9SAndy Fiddaman 
23*84ceaea9SAndy Fiddaman #define	PCIE_VERSION	1
24*84ceaea9SAndy Fiddaman #define	PCIE		"pcie"
25*84ceaea9SAndy Fiddaman 
26*84ceaea9SAndy Fiddaman extern int pcie_init(topo_mod_t *, topo_version_t);
27*84ceaea9SAndy Fiddaman extern void pcie_fini(topo_mod_t *);
28*84ceaea9SAndy Fiddaman 
29*84ceaea9SAndy Fiddaman #ifdef	__cplusplus
30*84ceaea9SAndy Fiddaman }
31*84ceaea9SAndy Fiddaman #endif
32*84ceaea9SAndy Fiddaman 
33*84ceaea9SAndy Fiddaman #endif	/* _PCIE_H */
34