fwupd/plugins/intel-spi/fu-ifd-device.h
Richard Hughes f3c64adb6c intel-spi: Allow downloading the firmware image from the eSPI controller
Add the IFD regions as child devices and set the region access on the child
devices. Also add read-only SPI descriptor as an HSI attribute and require
FLOCKDN on Intel hardware.

Use the hidden PCI 00:1f.5 device to set the SPIBAR automatically and generate
the quirk file automatically to support more hardware.
2021-04-01 21:56:35 +01:00

25 lines
558 B
C

/*
* Copyright (C) 2021 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fu-device.h"
#include "fu-ifd-common.h"
#define FU_TYPE_IFD_DEVICE (fu_ifd_device_get_type ())
G_DECLARE_DERIVABLE_TYPE (FuIfdDevice, fu_ifd_device, FU, IFD_DEVICE, FuDevice)
struct _FuIfdDeviceClass
{
FuDeviceClass parent_class;
};
FuDevice *fu_ifd_device_new (FuIfdRegion region,
guint32 freg);
void fu_ifd_device_set_access (FuIfdDevice *self,
FuIfdRegion region,
FuIfdAccess access);