mirror of
https://git.proxmox.com/git/fwupd
synced 2025-10-19 15:22:19 +00:00
trivial: Move the HID defines to a shared location
This commit is contained in:
parent
716ab27c17
commit
d8fdcd63b8
@ -25,15 +25,6 @@ struct _FuCsrDevice
|
|||||||
|
|
||||||
G_DEFINE_TYPE (FuCsrDevice, fu_csr_device, FU_TYPE_USB_DEVICE)
|
G_DEFINE_TYPE (FuCsrDevice, fu_csr_device, FU_TYPE_USB_DEVICE)
|
||||||
|
|
||||||
#define HID_REPORT_GET 0x01
|
|
||||||
#define HID_REPORT_SET 0x09
|
|
||||||
|
|
||||||
#define HID_REPORT_TYPE_INPUT 0x01
|
|
||||||
#define HID_REPORT_TYPE_OUTPUT 0x02
|
|
||||||
#define HID_REPORT_TYPE_FEATURE 0x03
|
|
||||||
|
|
||||||
#define HID_FEATURE 0x0300
|
|
||||||
|
|
||||||
#define FU_CSR_REPORT_ID_COMMAND 0x01
|
#define FU_CSR_REPORT_ID_COMMAND 0x01
|
||||||
#define FU_CSR_REPORT_ID_STATUS 0x02
|
#define FU_CSR_REPORT_ID_STATUS 0x02
|
||||||
#define FU_CSR_REPORT_ID_CONTROL 0x03
|
#define FU_CSR_REPORT_ID_CONTROL 0x03
|
||||||
|
@ -18,6 +18,16 @@ G_BEGIN_DECLS
|
|||||||
#define FU_TYPE_USB_DEVICE (fu_usb_device_get_type ())
|
#define FU_TYPE_USB_DEVICE (fu_usb_device_get_type ())
|
||||||
G_DECLARE_DERIVABLE_TYPE (FuUsbDevice, fu_usb_device, FU, USB_DEVICE, FuDevice)
|
G_DECLARE_DERIVABLE_TYPE (FuUsbDevice, fu_usb_device, FU, USB_DEVICE, FuDevice)
|
||||||
|
|
||||||
|
/* HID */
|
||||||
|
#define HID_REPORT_GET 0x01
|
||||||
|
#define HID_REPORT_SET 0x09
|
||||||
|
|
||||||
|
#define HID_REPORT_TYPE_INPUT 0x01
|
||||||
|
#define HID_REPORT_TYPE_OUTPUT 0x02
|
||||||
|
#define HID_REPORT_TYPE_FEATURE 0x03
|
||||||
|
|
||||||
|
#define HID_FEATURE 0x0300
|
||||||
|
|
||||||
struct _FuUsbDeviceClass
|
struct _FuUsbDeviceClass
|
||||||
{
|
{
|
||||||
FuDeviceClass parent_class;
|
FuDeviceClass parent_class;
|
||||||
|
Loading…
Reference in New Issue
Block a user