mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-15 07:13:19 +00:00

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.
19 lines
468 B
C
19 lines
468 B
C
/*
|
|
* Copyright (C) 2021 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "fu-plugin.h"
|
|
|
|
#define FU_TYPE_INTEL_SPI_DEVICE (fu_intel_spi_device_get_type ())
|
|
G_DECLARE_FINAL_TYPE (FuIntelSpiDevice, fu_intel_spi_device, FU, INTEL_SPI_DEVICE, FuDevice)
|
|
|
|
GBytes *fu_intel_spi_device_dump (FuIntelSpiDevice *self,
|
|
FuDevice *device,
|
|
guint32 offset,
|
|
guint32 length,
|
|
GError **error);
|