Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137344761
D37407.id113200.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
785 B
Referenced Files
None
Subscribers
None
D37407.id113200.diff
View Options
diff --git a/usr.sbin/bhyve/basl.h b/usr.sbin/bhyve/basl.h
--- a/usr.sbin/bhyve/basl.h
+++ b/usr.sbin/bhyve/basl.h
@@ -6,6 +6,7 @@
#pragma once
+#include <assert.h>
#include <contrib/dev/acpica/include/acpi.h>
#define ACPI_GAS_ACCESS_WIDTH_LEGACY 0
@@ -37,6 +38,19 @@
struct basl_table;
+static __inline void
+basl_fill_gas(ACPI_GENERIC_ADDRESS *gas, uint8_t space_id, uint8_t bit_width,
+ uint8_t bit_offset, uint8_t access_width, uint64_t address)
+{
+ assert(gas != NULL);
+
+ gas->SpaceId = space_id;
+ gas->BitWidth = bit_width;
+ gas->BitOffset = bit_offset;
+ gas->AccessWidth = access_width;
+ gas->Address = htole64(address);
+}
+
int basl_finish(void);
int basl_init(void);
int basl_table_add_checksum(struct basl_table *const table, const uint32_t off,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 23, 4:08 PM (19 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26020773
Default Alt Text
D37407.id113200.diff (785 B)
Attached To
Mode
D37407: bhyve: add helper to fill a ACPI_GENERIC_ADDRESS
Attached
Detach File
Event Timeline
Log In to Comment