]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/bhyve/pci_passthru.h
MFV: xz 5.2.9
[FreeBSD/FreeBSD.git] / usr.sbin / bhyve / pci_passthru.h
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3  *
4  * Copyright (c) 2020 Beckhoff Automation GmbH & Co. KG
5  * Author: Corvin Köhne <c.koehne@beckhoff.com>
6  */
7
8 #pragma once
9
10 #include <vmmapi.h>
11
12 #include "pci_emul.h"
13
14 uint32_t read_config(const struct pcisel *sel, long reg, int width);
15 void write_config(const struct pcisel *sel, long reg, int width, uint32_t data);