Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pci_passthru.h
- This file was added.
/*- | |||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD | |||||
* | |||||
* Copyright (c) 2020 Beckhoff Automation GmbH & Co. KG | |||||
* Author: Corvin Köhne <c.koehne@beckhoff.com> | |||||
*/ | |||||
#pragma once | |||||
#include <sys/pciio.h> | |||||
#include <vmmapi.h> | |||||
#include "pci_emul.h" | |||||
struct passthru_softc { | |||||
struct pci_devinst *psc_pi; | |||||
struct pcibar psc_bar[PCI_BARMAX + 1]; | |||||
struct { | |||||
int capoff; | |||||
int msgctrl; | |||||
int emulated; | |||||
} psc_msi; | |||||
struct { | |||||
int capoff; | |||||
} psc_msix; | |||||
struct pcisel psc_sel; | |||||
}; | |||||
markj: Why does it need to be exported? Should this be rebased on D33769? | |||||
corvinkAuthorUnsubmitted Done Inline ActionsI've cherry picked that part from another patch, which requires it to be exported too. Yes, it should be rebase on D33769. corvink: I've cherry picked that part from another patch, which requires it to be exported too. Yes, it… | |||||
uint32_t read_config(const struct pcisel *sel, long reg, int width); | |||||
void write_config(const struct pcisel *sel, long reg, int width, uint32_t data); |
Why does it need to be exported? Should this be rebased on D33769?