mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-03 13:41:12 +00:00
25 lines
648 B
C
25 lines
648 B
C
/*
|
|
* Copyright (C) 2017 Richard Hughes <richard@hughsie.com>
|
|
* Copyright (C) 2021 Daniel Campello <campello@chromium.org>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <fwupdplugin.h>
|
|
|
|
#define FU_TYPE_FLASHROM_DEVICE (fu_flashrom_device_get_type())
|
|
G_DECLARE_FINAL_TYPE(FuFlashromDevice, fu_flashrom_device, FU, FLASHROM_DEVICE, FuUdevDevice)
|
|
|
|
struct flashrom_flashctx;
|
|
|
|
FuDevice *
|
|
fu_flashrom_device_new(FuContext *ctx, struct flashrom_flashctx *flashctx, FuIfdRegion region);
|
|
|
|
FuIfdRegion
|
|
fu_flashrom_device_get_region(FuFlashromDevice *self);
|
|
|
|
gboolean
|
|
fu_flashrom_device_unlock(FuFlashromDevice *self, GError **error);
|