]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Bus/Usb/UsbMouse/Dxe/mousehid.h
Fix capitalization.
[mirror_edk2.git] / EdkModulePkg / Bus / Usb / UsbMouse / Dxe / mousehid.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 MouseHid.h\r
15\r
16Abstract:\r
17\r
18--*/\r
19\r
20#ifndef __MOUSE_HID_H\r
21#define __MOUSE_HID_H\r
22\r
23#include "usbmouse.h"\r
24\r
25//\r
26// HID Item general structure\r
27//\r
28typedef struct _hid_item {\r
29 UINT16 Format;\r
30 UINT8 Size;\r
31 UINT8 Type;\r
32 UINT8 Tag;\r
33 union {\r
34 UINT8 U8;\r
35 UINT16 U16;\r
36 UINT32 U32;\r
37 INT8 I8;\r
38 INT16 I16;\r
39 INT32 I32;\r
40 UINT8 *LongData;\r
41 } Data;\r
42} HID_ITEM;\r
43\r
44typedef struct {\r
45 UINT16 UsagePage;\r
46 INT32 LogicMin;\r
47 INT32 LogicMax;\r
48 INT32 PhysicalMin;\r
49 INT32 PhysicalMax;\r
50 UINT16 UnitExp;\r
51 UINT16 UINT;\r
52 UINT16 ReportId;\r
53 UINT16 ReportSize;\r
54 UINT16 ReportCount;\r
55} HID_GLOBAL;\r
56\r
57typedef struct {\r
58 UINT16 Usage[16]; /* usage array */\r
59 UINT16 UsageIndex;\r
60 UINT16 UsageMin;\r
61} HID_LOCAL;\r
62\r
63typedef struct {\r
64 UINT16 Type;\r
65 UINT16 Usage;\r
66} HID_COLLECTION;\r
67\r
68typedef struct {\r
69 HID_GLOBAL Global;\r
70 HID_GLOBAL GlobalStack[8];\r
71 UINT32 GlobalStackPtr;\r
72 HID_LOCAL Local;\r
73 HID_COLLECTION CollectionStack[8];\r
74 UINT32 CollectionStackPtr;\r
75} HID_PARSER;\r
76\r
77EFI_STATUS\r
78ParseMouseReportDescriptor (\r
79 IN USB_MOUSE_DEV *UsbMouse,\r
80 IN UINT8 *ReportDescriptor,\r
81 IN UINTN ReportSize\r
82 );\r
83\r
84#endif\r