aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Wu <flwu@google.com>2024-02-21 17:00:26 +0000
committerMichael S. Tsirkin <mst@redhat.com>2024-03-12 17:56:55 -0400
commit735eee07d1f963635d3c3bf9f5e4bf1bc000870e (patch)
tree586f260eb547154d09958736e167f83c885578e0 /include
parent0f9c30350bdf9d062609a15124f30f6c2b0a4b60 (diff)
downloadqemu-735eee07d1f963635d3c3bf9f5e4bf1bc000870e.zip
qemu-735eee07d1f963635d3c3bf9f5e4bf1bc000870e.tar.gz
qemu-735eee07d1f963635d3c3bf9f5e4bf1bc000870e.tar.bz2
Implement base of SMBIOS type 9 descriptor.
Version 2.1+. Signed-off-by: Felix Wu <flwu@google.com> Signed-off-by: Nabih Estefan <nabihestefan@google.com> Message-Id: <20240221170027.1027325-2-nabihestefan@google.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/firmware/smbios.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/hw/firmware/smbios.h b/include/hw/firmware/smbios.h
index 6e51498..9ab114a 100644
--- a/include/hw/firmware/smbios.h
+++ b/include/hw/firmware/smbios.h
@@ -211,6 +211,19 @@ struct smbios_type_8 {
uint8_t port_type;
} QEMU_PACKED;
+/* SMBIOS type 9 - System Slots (v2.1+) */
+struct smbios_type_9 {
+ struct smbios_structure_header header;
+ uint8_t slot_designation;
+ uint8_t slot_type;
+ uint8_t slot_data_bus_width;
+ uint8_t current_usage;
+ uint8_t slot_length;
+ uint16_t slot_id;
+ uint8_t slot_characteristics1;
+ uint8_t slot_characteristics2;
+} QEMU_PACKED;
+
/* SMBIOS type 11 - OEM strings */
struct smbios_type_11 {
struct smbios_structure_header header;