1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
/*
* Copyright 2025 NVIDIA Corporation & Affiliates
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#pragma once
#include <fwupdplugin.h>
#define FU_TYPE_DEVLINK_DEVICE (fu_devlink_device_get_type())
G_DECLARE_FINAL_TYPE(FuDevlinkDevice, fu_devlink_device, FU, DEVLINK_DEVICE, FuDevice)
FuDevice *
fu_devlink_device_new(FuContext *ctx,
const gchar *bus_name,
const gchar *dev_name,
const gchar *serial_number) G_GNUC_NON_NULL(1, 2, 3);
const gchar *
fu_devlink_device_get_bus_name(FuDevlinkDevice *self) G_GNUC_NON_NULL(1);
gboolean
fu_devlink_device_write_firmware_component(FuDevlinkDevice *self,
const gchar *component_name,
gboolean omit_component_name,
FuFirmware *firmware,
FuProgress *progress,
FwupdInstallFlags flags,
GError **error) G_GNUC_NON_NULL(1, 2, 4, 5);
|