fwupd/plugins/cpu/fu-cpu-device.h
Mario Limonciello 983263bc8d cpu: Add support for a security attribute related to Intel TME
This only checks that it was available from the CPU.
To be complete an additional check should be made to show that it
was actually enabled from the firmware.

This will require a kernel modification though because MSR access
will be forbidden from userland while in kernel lockdown.
2020-05-15 07:16:17 -05:00

24 lines
603 B
C

/*
* Copyright (C) 2020 Mario Limonciello <mario.limonciello@dell.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fu-plugin.h"
#define FU_TYPE_CPU_DEVICE (fu_cpu_device_get_type ())
G_DECLARE_FINAL_TYPE (FuCpuDevice, fu_cpu_device, FU, CPU_DEVICE, FuDevice)
typedef enum {
FU_CPU_DEVICE_FLAG_NONE = 0,
FU_CPU_DEVICE_FLAG_SHSTK = 1 << 0,
FU_CPU_DEVICE_FLAG_IBT = 1 << 1,
FU_CPU_DEVICE_FLAG_TME = 1 << 2,
} FuCpuDeviceFlag;
FuCpuDevice *fu_cpu_device_new (const gchar *section);
gboolean fu_cpu_device_has_flag (FuCpuDevice *self,
FuCpuDeviceFlag flag);