fwupd/plugins/vli/fu-vli-usbhub-i2c-common.h
Richard Hughes 4e13a790df vli: Rename FuVliUsbhubI2cDevice to FuVliUsbhubMsp430Device
The I²C proxy specification is not always shared with all other devices as
I originally hoped, instead there are other legacy devices that use different
sets of I²C commands.

Un-share various bits of code to allow for additional I²C devices to be added.

No logic changes.
2020-07-22 20:04:20 +01:00

23 lines
581 B
C

/*
* Copyright (C) 2017-2019 VIA Corporation
* Copyright (C) 2019 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fu-plugin.h"
typedef enum {
FU_VLI_USBHUB_I2C_STATUS_OK = 0x00,
FU_VLI_USBHUB_I2C_STATUS_HEADER = 0x51,
FU_VLI_USBHUB_I2C_STATUS_COMMAND = 0x52,
FU_VLI_USBHUB_I2C_STATUS_ADDRESS = 0x53,
FU_VLI_USBHUB_I2C_STATUS_PACKETSIZE = 0x54,
FU_VLI_USBHUB_I2C_STATUS_CHECKSUM = 0x55,
} FuVliUsbhubI2cStatus;
gboolean fu_vli_usbhub_i2c_check_status (FuVliUsbhubI2cStatus status,
GError **error);