trivial: Move the HID defines to a shared location

This commit is contained in:
Richard Hughes 2018-05-29 20:15:07 +01:00
parent 716ab27c17
commit d8fdcd63b8
2 changed files with 10 additions and 9 deletions

View File

@ -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

View File

@ -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;