xref: /illumos-gate/usr/src/cmd/bhyve/pci_passthru.h (revision a4955f4fa65e38d70c07d38e657a9aff43fa155f)
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3  *
4  * Copyright (c) 2020 Beckhoff Automation GmbH & Co. KG
5  * Author: Corvin K<C3><B6>hne <c.koehne@beckhoff.com>
6  */
7 
8 #ifndef _PCI_PASSTHRU_H_
9 #define _PCI_PASSTHRU_H_
10 
11 #include <vmmapi.h>
12 
13 #include "pci_emul.h"
14 
15 uint32_t read_config(struct pci_devinst *pi, long reg, int width);
16 void write_config(struct pci_devinst *pi, long reg, int width, uint32_t data);
17 
18 #endif /* _PCI_PASSTHRU_H_ */
19