fwupd/plugins/dell-dock/fu-dell-dock-i2c-ec.h
Mario Limonciello a42daefb9e dell-dock: Capture the dock SKU in metadata
Should be helpful in reproducing failure reports.
2020-05-26 10:22:58 -05:00

46 lines
1.4 KiB
C

/*
* Copyright (C) 2018 Dell Inc.
* All rights reserved.
*
* This software and associated documentation (if any) is furnished
* under a license and may only be used or copied in accordance
* with the terms of the license.
*
* This file is provided under a dual MIT/LGPLv2 license. When using or
* redistributing this file, you may do so under either license.
* Dell Chooses the MIT license part of Dual MIT/LGPLv2 license agreement.
*
* SPDX-License-Identifier: LGPL-2.1+ OR MIT
*/
#pragma once
#include "config.h"
#include <gusb.h>
#include "fu-device.h"
#define FU_TYPE_DELL_DOCK_EC (fu_dell_dock_ec_get_type ())
G_DECLARE_FINAL_TYPE (FuDellDockEc, fu_dell_dock_ec, FU, DELL_DOCK_EC, FuDevice)
FuDellDockEc *fu_dell_dock_ec_new (FuDevice *proxy);
const gchar *fu_dell_dock_ec_get_module_type (FuDevice *device);
gboolean fu_dell_dock_ec_needs_tbt (FuDevice *device);
gboolean fu_dell_dock_ec_tbt_passive (FuDevice *device);
gboolean fu_dell_dock_ec_modify_lock (FuDevice *self,
guint8 target,
gboolean unlocked,
GError **error);
gboolean fu_dell_dock_ec_reboot_dock (FuDevice *device,
GError **error);
const gchar *fu_dell_dock_ec_get_mst_version (FuDevice *device);
const gchar *fu_dell_dock_ec_get_tbt_version (FuDevice *device);
guint32 fu_dell_dock_ec_get_status_version (FuDevice *device);
gboolean fu_dell_dock_ec_commit_package (FuDevice *device,
GBytes *blob_fw,
GError **error);