Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


imported SEABIOS source tree
[palacios.git] / bios / seabios / src / usb-hid.h
1 #ifndef __USB_HID_H
2 #define __USB_HID_H
3
4 // usb-hid.c
5 struct usb_interface_descriptor;
6 struct usb_pipe;
7 int usb_hid_init(struct usb_pipe *pipe
8                  , struct usb_interface_descriptor *iface, int imax);
9 inline int usb_kbd_active(void);
10 inline int usb_kbd_command(int command, u8 *param);
11 inline int usb_mouse_active(void);
12 inline int usb_mouse_command(int command, u8 *param);
13 void usb_check_event(void);
14
15
16 /****************************************************************
17  * hid flags
18  ****************************************************************/
19
20 #define USB_INTERFACE_SUBCLASS_BOOT     1
21 #define USB_INTERFACE_PROTOCOL_KEYBOARD 1
22 #define USB_INTERFACE_PROTOCOL_MOUSE    2
23
24 #define HID_REQ_GET_REPORT              0x01
25 #define HID_REQ_GET_IDLE                0x02
26 #define HID_REQ_GET_PROTOCOL            0x03
27 #define HID_REQ_SET_REPORT              0x09
28 #define HID_REQ_SET_IDLE                0x0A
29 #define HID_REQ_SET_PROTOCOL            0x0B
30
31 #endif // ush-hid.h