dmi_intel_rsd_txt

Synopsis

#include <opendmi/entity/intel-rsd/txt.h>
#include <opendmi/module/intel-rsd.h>

typedef struct dmi_intel_rsd_txt {
    dmi_intel_rsd_txt_status_t status;
} dmi_intel_rsd_txt_t;

Description

The dmi_intel_rsd_txt_t structure holds the decoded TXT information structure (type 196) of Intel Rack Scale Design (RSD) firmware: whether Intel Trusted Execution Technology (TXT) is enabled on the platform.

The structure is returned by dmi_entity_info for the structures of type DMI_TYPE(intel_rsd_txt), once the Intel RSD extension module (dmi_intel_rsd_module, declared in <opendmi/module/intel-rsd.h>) has been enabled in the context with dmi_add_extension(). It lives as long as the context it has been decoded in.

Fields

status

Whether Intel TXT is enabled (see dmi_intel_rsd_txt_status).

Examples

dmi_registry_t      *registry = dmi_get_registry(context);
dmi_entity_t        *entity   = dmi_registry_lookup_first(registry,
                                    DMI_TYPE(intel_rsd_txt), true);
dmi_intel_rsd_txt_t *txt      = dmi_entity_info(entity,
                                                DMI_TYPE(intel_rsd_txt));

if ((txt != nullptr) && (txt->status == DMI_INTEL_RSD_TXT_STATUS_ENABLED))
    printf("Intel TXT is enabled\n");

Standards

Not part of the SMBIOS specification. Defined by Intel Rack Scale Design (RSD) firmware.