iPXE
Data Fields
usb_keyboard Struct Reference

A USB keyboard device. More...

#include <usbkbd.h>

Data Fields

const char * name
 Name.
struct list_head list
 List of all USB keyboards.
struct usb_busbus
 USB bus.
struct usb_hid hid
 USB human interface device.
struct usb_keyboard_report report
 Most recent keyboard report.
unsigned int keycode
 Most recently pressed non-modifier key (if any)
unsigned int holdoff
 Autorepeat hold-off time (in number of completions reported)
uint8_t leds
 Keyboard LED state.
uint8_t leds_changed
 Keyboard LEDs changed.
unsigned int key [USBKBD_BUFSIZE]
 Keyboard buffer.
unsigned int prod
 Keyboard buffer producer counter.
unsigned int cons
 Keyboard buffer consumer counter.
unsigned int subcons
 Keyboard buffer sub-consumer counter.

Detailed Description

A USB keyboard device.

Definition at line 117 of file usbkbd.h.


Field Documentation

const char* usb_keyboard::name

List of all USB keyboards.

Definition at line 121 of file usbkbd.h.

Referenced by usbkbd_getchar(), usbkbd_iskey(), usbkbd_probe(), and usbkbd_remove().

USB bus.

Definition at line 124 of file usbkbd.h.

Referenced by usbkbd_iskey(), and usbkbd_probe().

USB human interface device.

Definition at line 126 of file usbkbd.h.

Referenced by usbkbd_complete(), usbkbd_iskey(), usbkbd_probe(), usbkbd_remove(), and usbkbd_set_leds().

Most recent keyboard report.

Definition at line 129 of file usbkbd.h.

Referenced by usbkbd_probe(), and usbkbd_report().

unsigned int usb_keyboard::keycode

Most recently pressed non-modifier key (if any)

Definition at line 131 of file usbkbd.h.

Referenced by usbkbd_report().

unsigned int usb_keyboard::holdoff

Autorepeat hold-off time (in number of completions reported)

Definition at line 133 of file usbkbd.h.

Referenced by usbkbd_report().

Keyboard LED state.

Definition at line 136 of file usbkbd.h.

Referenced by usbkbd_produce(), and usbkbd_set_leds().

Keyboard LEDs changed.

Definition at line 138 of file usbkbd.h.

Referenced by usbkbd_iskey(), and usbkbd_produce().

Keyboard buffer.

This stores iPXE key values.

Definition at line 144 of file usbkbd.h.

Referenced by usbkbd_consume(), and usbkbd_produce().

unsigned int usb_keyboard::prod

Keyboard buffer producer counter.

Definition at line 146 of file usbkbd.h.

Referenced by usbkbd_produce().

unsigned int usb_keyboard::cons

Keyboard buffer consumer counter.

Definition at line 148 of file usbkbd.h.

Referenced by usbkbd_consume().

unsigned int usb_keyboard::subcons

Keyboard buffer sub-consumer counter.

This represents the index within the ANSI escape sequence corresponding to an iPXE key value.

Definition at line 154 of file usbkbd.h.

Referenced by usbkbd_consume().


The documentation for this struct was generated from the following file: