mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-22 09:12:32 +00:00

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.
23 lines
581 B
C
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);
|