mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-16 11:57:32 +00:00

The end year is legally and functionally redundant, and more importantly causes cherry-pick conflicts when trying to maintain old branches. Use git for history.
24 lines
512 B
C
24 lines
512 B
C
/*
|
|
* Copyright (C) 2017 VIA Corporation
|
|
* Copyright (C) 2019 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "fu-plugin.h"
|
|
|
|
#include "fu-vli-common.h"
|
|
|
|
typedef struct __attribute__ ((packed)) {
|
|
guint32 fwver; /* BE */
|
|
guint16 vid; /* LE */
|
|
guint16 pid; /* LE */
|
|
} FuVliPdHdr;
|
|
|
|
#define VLI_USBHUB_PD_FLASHMAP_ADDR_LEGACY 0x4000
|
|
#define VLI_USBHUB_PD_FLASHMAP_ADDR 0x1003
|
|
|
|
FuVliDeviceKind fu_vli_pd_common_guess_device_kind (guint32 fwver);
|