History log of /freebsd-current/usr.sbin/bhyve/acpi_device.h
Revision Date Author Comments
# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 158adced 22-Jul-2022 Corvin Köhne <corvink@FreeBSD.org>

bhyve: save softc of ACPI devices

This will be useful for writing device specific ACPI tables or DSDT
methods.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D39322


# e976464a 22-Jul-2022 Corvin Köhne <corvink@FreeBSD.org>

bhyve: allow device specific DSDT entries

This feature will be used by future commits to implement a device
specific method (_DSM) for TPM devices.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D39321


# ab34ea47 05-Apr-2023 Corvin Köhne <corvink@FreeBSD.org>

bhyve: check for errors when writing device specific DSDT entries

At the moment, this function can't fail. This behaviour will change in
the future. In preparation to that, convert the return type to int in
order to be able to check for errors.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D39422


# 0926566f 22-Jul-2022 Corvin Köhne <corvink@FreeBSD.org>

bhyve: allow building device specific ACPI tables

Some ACPI devices require a device specific acpi table. E.g. a TPM2
device requires a TPM2 table. Use the acpi_device_emul struct to define
such a device specific table.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D39320


# acd0088c 22-Jul-2022 Corvin Köhne <corvink@FreeBSD.org>

bhyve: introduce acpi_device_emul struct

It'll be easier to add new properties to the ACPI device emulation if we
have a struct which holds all device specific properties. In some future
commits the acpi_device_emul struct will be expanded to include some
device specific functions to build ACPI tables.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D39319


# 40468990 29-Mar-2023 Corvin Köhne <corvink@FreeBSD.org>

bhyve: remove unnecessary const qualifier in acpi_device.h

Those const qualifier declare that the function doesn't change the
values internally. It makes no sense to add them in the header file.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D39318


# 682a522d 07-Oct-2021 Corvin Köhne <corvink@FreeBSD.org>

bhyve: add helper func to write a dsdt entry

The guest will check the dsdt to detect acpi devices. Therefore, add a
helper function to create such a dsdt entry for an acpi device.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D38329


# 13a1df5b 07-Oct-2021 Corvin Köhne <corvink@FreeBSD.org>

bhyve: add helper func to add acpi resources

These helper function can be used to assign acpi resources to an
acpi_device.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D38328


# 1231f047 07-Oct-2021 Corvin Köhne <corvink@FreeBSD.org>

bhyve: add helper struct for acpi device handling

To simplify the handling of different acpi devices like qemu fwcfg or a
tpm, add a helper struct. It will handle the reporting of acpi
resources.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D38327