[USB-BRINGUP-TRUNK]

- Fix hidparser build
- Based on a patch from igorko

svn path=/branches/usb-bringup-trunk/; revision=55030
This commit is contained in:
Cameron Gutman 2012-01-20 23:03:27 +00:00
parent 9dacc2a9ac
commit 5c6676a9a6
3 changed files with 9 additions and 5 deletions

View file

@ -101,7 +101,7 @@ HidParser_GetReportByType(
{
PHID_PARSER_CONTEXT ParserContext;
ULONG Index;
ULONG ReportCount = 0;
//ULONG ReportCount = 0;
//
// get parser context
@ -863,7 +863,7 @@ HidParser_GetScaledUsageValueWithReport(
PHID_PARSER_CONTEXT ParserContext;
ULONG Index;
PHID_REPORT Report;
ULONG ItemCount = 0;
//ULONG ItemCount = 0;
USHORT CurrentUsagePage;
PHID_REPORT_ITEM ReportItem;
ULONG Data;
@ -1017,7 +1017,7 @@ HidParser_DispatchKey(
//
// is this a key break
//
if (KeyAction == HidP_KeyboardBreak)
if (KeyAction == HidP_Keyboard_Break)
{
//
// add break

View file

@ -49,7 +49,7 @@ HidParser_GetCollectionDescription(
OUT PHIDP_DEVICE_DESC DeviceDescription)
{
HIDPARSER_STATUS ParserStatus;
ULONG CollectionCount, ReportCount;
ULONG CollectionCount;
ULONG Index;
//
@ -678,7 +678,9 @@ HidParser_TranslateUsageAndPagesToI8042ScanCodes(
//
// process usage
//
Status = HidParser_TranslateUsage(Parser, ChangedUsageList[Index].Usage, KeyAction, ModifierState, InsertCodesProcedure, InsertCodesContext);
//Status = HidParser_TranslateUsage(Parser, ChangedUsageList[Index].Usage, KeyAction, ModifierState, InsertCodesProcedure, InsertCodesContext);
UNIMPLEMENTED
Status = HIDPARSER_STATUS_NOT_IMPLEMENTED;
}
else if (ChangedUsageList[Index].UsagePage == HID_USAGE_PAGE_CONSUMER)
{

View file

@ -13,6 +13,7 @@
#define _HIDPI_
#define _HIDPI_NO_FUNCTION_MACROS_
#include <ntddk.h>
#include <ntddkbd.h>
#include <hidpddi.h>
#include <hidpi.h>
#include <debug.h>
@ -330,6 +331,7 @@ HIDAPI
NTSTATUS
NTAPI
HidParser_TranslateUsageAndPagesToI8042ScanCodes(
IN PHID_PARSER Parser,
IN PUSAGE_AND_PAGE ChangedUsageList,
IN ULONG UsageListLength,
IN HIDP_KEYBOARD_DIRECTION KeyAction,