Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142617962
D39321.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D39321.diff
View Options
diff --git a/usr.sbin/bhyve/acpi_device.h b/usr.sbin/bhyve/acpi_device.h
--- a/usr.sbin/bhyve/acpi_device.h
+++ b/usr.sbin/bhyve/acpi_device.h
@@ -23,12 +23,15 @@
* @param hid Used as _HID in the DSDT.
* @param build_table Called to build a device specific ACPI table like the TPM2
* table.
+ * @param write_dsdt Called to append the DSDT with device specific
+ * information.
*/
struct acpi_device_emul {
const char *name;
const char *hid;
int (*build_table)(const struct acpi_device *dev);
+ int (*write_dsdt)(const struct acpi_device *dev);
};
/**
diff --git a/usr.sbin/bhyve/acpi_device.c b/usr.sbin/bhyve/acpi_device.c
--- a/usr.sbin/bhyve/acpi_device.c
+++ b/usr.sbin/bhyve/acpi_device.c
@@ -190,6 +190,11 @@
BASL_EXEC(acpi_device_write_dsdt_crs(dev));
dsdt_unindent(4);
dsdt_line(" })");
+ if (dev->emul->write_dsdt != NULL) {
+ dsdt_indent(3);
+ BASL_EXEC(dev->emul->write_dsdt(dev));
+ dsdt_unindent(3);
+ }
dsdt_line(" }");
dsdt_line(" }");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 22, 1:26 PM (4 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27849290
Default Alt Text
D39321.diff (1 KB)
Attached To
Mode
D39321: bhyve: allow device specific DSDT entries
Attached
Detach File
Event Timeline
Log In to Comment