From 517253e5b268e4ce3a1f023054064630e5be9d38 Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 10 Mar 2008 23:14:46 +0000 Subject: Rename file to use recommended file naming conventions. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4816 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Usb/UsbMouseDxe/MouseHid.h | 85 +++++++++++++++++++++++++++++ MdeModulePkg/Bus/Usb/UsbMouseDxe/mousehid.h | 85 ----------------------------- 2 files changed, 85 insertions(+), 85 deletions(-) create mode 100644 MdeModulePkg/Bus/Usb/UsbMouseDxe/MouseHid.h delete mode 100644 MdeModulePkg/Bus/Usb/UsbMouseDxe/mousehid.h (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Bus/Usb/UsbMouseDxe/MouseHid.h b/MdeModulePkg/Bus/Usb/UsbMouseDxe/MouseHid.h new file mode 100644 index 0000000000..13afc55e63 --- /dev/null +++ b/MdeModulePkg/Bus/Usb/UsbMouseDxe/MouseHid.h @@ -0,0 +1,85 @@ +/** @file + +Copyright (c) 2004, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + MouseHid.h + +Abstract: + + +**/ + +#ifndef __MOUSE_HID_H +#define __MOUSE_HID_H + +#include "usbmouse.h" + +// +// HID Item general structure +// +typedef struct _hid_item { + UINT16 Format; + UINT8 Size; + UINT8 Type; + UINT8 Tag; + union { + UINT8 U8; + UINT16 U16; + UINT32 U32; + INT8 I8; + INT16 I16; + INT32 I32; + UINT8 *LongData; + } Data; +} HID_ITEM; + +typedef struct { + UINT16 UsagePage; + INT32 LogicMin; + INT32 LogicMax; + INT32 PhysicalMin; + INT32 PhysicalMax; + UINT16 UnitExp; + UINT16 UINT; + UINT16 ReportId; + UINT16 ReportSize; + UINT16 ReportCount; +} HID_GLOBAL; + +typedef struct { + UINT16 Usage[16]; /* usage array */ + UINT16 UsageIndex; + UINT16 UsageMin; +} HID_LOCAL; + +typedef struct { + UINT16 Type; + UINT16 Usage; +} HID_COLLECTION; + +typedef struct { + HID_GLOBAL Global; + HID_GLOBAL GlobalStack[8]; + UINT32 GlobalStackPtr; + HID_LOCAL Local; + HID_COLLECTION CollectionStack[8]; + UINT32 CollectionStackPtr; +} HID_PARSER; + +EFI_STATUS +ParseMouseReportDescriptor ( + IN USB_MOUSE_DEV *UsbMouse, + IN UINT8 *ReportDescriptor, + IN UINTN ReportSize + ); + +#endif diff --git a/MdeModulePkg/Bus/Usb/UsbMouseDxe/mousehid.h b/MdeModulePkg/Bus/Usb/UsbMouseDxe/mousehid.h deleted file mode 100644 index 13afc55e63..0000000000 --- a/MdeModulePkg/Bus/Usb/UsbMouseDxe/mousehid.h +++ /dev/null @@ -1,85 +0,0 @@ -/** @file - -Copyright (c) 2004, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - - MouseHid.h - -Abstract: - - -**/ - -#ifndef __MOUSE_HID_H -#define __MOUSE_HID_H - -#include "usbmouse.h" - -// -// HID Item general structure -// -typedef struct _hid_item { - UINT16 Format; - UINT8 Size; - UINT8 Type; - UINT8 Tag; - union { - UINT8 U8; - UINT16 U16; - UINT32 U32; - INT8 I8; - INT16 I16; - INT32 I32; - UINT8 *LongData; - } Data; -} HID_ITEM; - -typedef struct { - UINT16 UsagePage; - INT32 LogicMin; - INT32 LogicMax; - INT32 PhysicalMin; - INT32 PhysicalMax; - UINT16 UnitExp; - UINT16 UINT; - UINT16 ReportId; - UINT16 ReportSize; - UINT16 ReportCount; -} HID_GLOBAL; - -typedef struct { - UINT16 Usage[16]; /* usage array */ - UINT16 UsageIndex; - UINT16 UsageMin; -} HID_LOCAL; - -typedef struct { - UINT16 Type; - UINT16 Usage; -} HID_COLLECTION; - -typedef struct { - HID_GLOBAL Global; - HID_GLOBAL GlobalStack[8]; - UINT32 GlobalStackPtr; - HID_LOCAL Local; - HID_COLLECTION CollectionStack[8]; - UINT32 CollectionStackPtr; -} HID_PARSER; - -EFI_STATUS -ParseMouseReportDescriptor ( - IN USB_MOUSE_DEV *UsbMouse, - IN UINT8 *ReportDescriptor, - IN UINTN ReportSize - ); - -#endif -- cgit v1.2.3