feat(redox-driver-sys): add HidQuirkFlags and lookup_hid_quirks
usbhidd references redox_driver_sys::quirks::HidQuirkFlags and redox_driver_sys::quirks::lookup_hid_quirks. Add these to unblock HID driver compilation.
This commit is contained in:
@@ -554,3 +554,20 @@ pub fn lookup_xhci_controller_quirks_full(
|
||||
) -> XhciControllerQuirkFlags {
|
||||
XhciControllerQuirkFlags::empty()
|
||||
}
|
||||
|
||||
bitflags::bitflags! {
|
||||
/// Flags for USB HID device quirks.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
|
||||
pub struct HidQuirkFlags: u64 {
|
||||
const NO_INIT_REPORTS = 1 << 0;
|
||||
const ALWAYS_POLL = 1 << 1;
|
||||
const NOGET = 1 << 2;
|
||||
const BADPAD = 1 << 3;
|
||||
const MULTI_INPUT = 1 << 4;
|
||||
}
|
||||
}
|
||||
|
||||
/// Look up USB HID quirks for a vendor/product pair.
|
||||
pub fn lookup_hid_quirks(vendor: u16, product: u16) -> HidQuirkFlags {
|
||||
HidQuirkFlags::empty()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user