iPXE
|
USB human interface devices (HID) More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | usbhid_open (struct usb_hid *hid) |
Open USB human interface device. More... | |
void | usbhid_close (struct usb_hid *hid) |
Close USB human interface device. More... | |
int | usbhid_refill (struct usb_hid *hid) |
Refill USB human interface device endpoints. More... | |
int | usbhid_describe (struct usb_hid *hid, struct usb_configuration_descriptor *config) |
Describe USB human interface device. More... | |
USB human interface devices (HID)
Definition in file usbhid.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int usbhid_open | ( | struct usb_hid * | hid | ) |
Open USB human interface device.
hid | USB human interface device |
rc | Return status code |
Definition at line 43 of file usbhid.c.
References DBGC, usb_hid::func, usb_hid::in, usb_function::name, usb_hid::out, rc, strerror(), usb_endpoint::usb, usb_endpoint_close(), usb_endpoint_open(), and usb_refill().
Referenced by usbkbd_probe().
void usbhid_close | ( | struct usb_hid * | hid | ) |
Close USB human interface device.
hid | USB human interface device |
Definition at line 83 of file usbhid.c.
References usb_hid::in, usb_hid::out, usb_endpoint::usb, and usb_endpoint_close().
Referenced by usbkbd_probe(), and usbkbd_remove().
int usbhid_refill | ( | struct usb_hid * | hid | ) |
Refill USB human interface device endpoints.
hid | USB human interface device |
rc | Return status code |
Definition at line 99 of file usbhid.c.
References usb_hid::in, usb_hid::out, rc, usb_endpoint::usb, and usb_refill().
int usbhid_describe | ( | struct usb_hid * | hid, |
struct usb_configuration_descriptor * | config | ||
) |
Describe USB human interface device.
hid | USB human interface device |
config | Configuration descriptor |
rc | Return status code |
Definition at line 120 of file usbhid.c.
References DBGC, desc, EINVAL, usb_hid::func, usb_hid::in, usb_function::interface, usb_function::name, usb_hid::out, rc, strerror(), usb_endpoint::usb, usb_endpoint_described(), usb_interface_descriptor(), USB_INTERRUPT_IN, and USB_INTERRUPT_OUT.
Referenced by usbkbd_probe().