--- /dev/null
+/** @file\r
+\r
+Copyright (c) 2004, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+Module Name:\r
+\r
+ MouseHid.h\r
+\r
+Abstract:\r
+\r
+\r
+**/\r
+\r
+#ifndef __MOUSE_HID_H\r
+#define __MOUSE_HID_H\r
+\r
+#include "usbmouse.h"\r
+\r
+//\r
+// HID Item general structure\r
+//\r
+typedef struct _hid_item {\r
+ UINT16 Format;\r
+ UINT8 Size;\r
+ UINT8 Type;\r
+ UINT8 Tag;\r
+ union {\r
+ UINT8 U8;\r
+ UINT16 U16;\r
+ UINT32 U32;\r
+ INT8 I8;\r
+ INT16 I16;\r
+ INT32 I32;\r
+ UINT8 *LongData;\r
+ } Data;\r
+} HID_ITEM;\r
+\r
+typedef struct {\r
+ UINT16 UsagePage;\r
+ INT32 LogicMin;\r
+ INT32 LogicMax;\r
+ INT32 PhysicalMin;\r
+ INT32 PhysicalMax;\r
+ UINT16 UnitExp;\r
+ UINT16 UINT;\r
+ UINT16 ReportId;\r
+ UINT16 ReportSize;\r
+ UINT16 ReportCount;\r
+} HID_GLOBAL;\r
+\r
+typedef struct {\r
+ UINT16 Usage[16]; /* usage array */\r
+ UINT16 UsageIndex;\r
+ UINT16 UsageMin;\r
+} HID_LOCAL;\r
+\r
+typedef struct {\r
+ UINT16 Type;\r
+ UINT16 Usage;\r
+} HID_COLLECTION;\r
+\r
+typedef struct {\r
+ HID_GLOBAL Global;\r
+ HID_GLOBAL GlobalStack[8];\r
+ UINT32 GlobalStackPtr;\r
+ HID_LOCAL Local;\r
+ HID_COLLECTION CollectionStack[8];\r
+ UINT32 CollectionStackPtr;\r
+} HID_PARSER;\r
+\r
+EFI_STATUS\r
+ParseMouseReportDescriptor (\r
+ IN USB_MOUSE_DEV *UsbMouse,\r
+ IN UINT8 *ReportDescriptor,\r
+ IN UINTN ReportSize\r
+ );\r
+\r
+#endif\r
+++ /dev/null
-/** @file\r
-\r
-Copyright (c) 2004, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-Module Name:\r
-\r
- MouseHid.h\r
-\r
-Abstract:\r
-\r
-\r
-**/\r
-\r
-#ifndef __MOUSE_HID_H\r
-#define __MOUSE_HID_H\r
-\r
-#include "usbmouse.h"\r
-\r
-//\r
-// HID Item general structure\r
-//\r
-typedef struct _hid_item {\r
- UINT16 Format;\r
- UINT8 Size;\r
- UINT8 Type;\r
- UINT8 Tag;\r
- union {\r
- UINT8 U8;\r
- UINT16 U16;\r
- UINT32 U32;\r
- INT8 I8;\r
- INT16 I16;\r
- INT32 I32;\r
- UINT8 *LongData;\r
- } Data;\r
-} HID_ITEM;\r
-\r
-typedef struct {\r
- UINT16 UsagePage;\r
- INT32 LogicMin;\r
- INT32 LogicMax;\r
- INT32 PhysicalMin;\r
- INT32 PhysicalMax;\r
- UINT16 UnitExp;\r
- UINT16 UINT;\r
- UINT16 ReportId;\r
- UINT16 ReportSize;\r
- UINT16 ReportCount;\r
-} HID_GLOBAL;\r
-\r
-typedef struct {\r
- UINT16 Usage[16]; /* usage array */\r
- UINT16 UsageIndex;\r
- UINT16 UsageMin;\r
-} HID_LOCAL;\r
-\r
-typedef struct {\r
- UINT16 Type;\r
- UINT16 Usage;\r
-} HID_COLLECTION;\r
-\r
-typedef struct {\r
- HID_GLOBAL Global;\r
- HID_GLOBAL GlobalStack[8];\r
- UINT32 GlobalStackPtr;\r
- HID_LOCAL Local;\r
- HID_COLLECTION CollectionStack[8];\r
- UINT32 CollectionStackPtr;\r
-} HID_PARSER;\r
-\r
-EFI_STATUS\r
-ParseMouseReportDescriptor (\r
- IN USB_MOUSE_DEV *UsbMouse,\r
- IN UINT8 *ReportDescriptor,\r
- IN UINTN ReportSize\r
- );\r
-\r
-#endif\r