change the enum field name convention to pass ECC

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8653 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian 2009-06-25 03:14:12 +00:00
parent 0f8e582fad
commit 3ae9910225
6 changed files with 40 additions and 40 deletions

View File

@ -15,9 +15,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "Ps2MouseAbsolutePointer.h"
#include "CommPs2.h"
UINT8 SampleRateTbl[MAX_SR] = { 0xa, 0x14, 0x28, 0x3c, 0x50, 0x64, 0xc8 };
UINT8 SampleRateTbl[MaxSampleRate] = { 0xa, 0x14, 0x28, 0x3c, 0x50, 0x64, 0xc8 };
UINT8 ResolutionTbl[MAX_CMR] = { 0, 1, 2, 3 };
UINT8 ResolutionTbl[MaxResolution] = { 0, 1, 2, 3 };
/**
Issue self test command via IsaIo interface.

View File

@ -205,9 +205,9 @@ PS2MouseAbsolutePointerDriverStart (
//
MouseAbsolutePointerDev->Signature = PS2_MOUSE_ABSOLUTE_POINTER_DEV_SIGNATURE;
MouseAbsolutePointerDev->Handle = Controller;
MouseAbsolutePointerDev->SampleRate = SSR_20;
MouseAbsolutePointerDev->Resolution = CMR4;
MouseAbsolutePointerDev->Scaling = SF1;
MouseAbsolutePointerDev->SampleRate = SampleRate20;
MouseAbsolutePointerDev->Resolution = MouseResolution4;
MouseAbsolutePointerDev->Scaling = Scaling1;
MouseAbsolutePointerDev->DataPackageSize = 3;
MouseAbsolutePointerDev->IsaIo = IsaIo;
MouseAbsolutePointerDev->DevicePath = ParentDevicePath;

View File

@ -41,33 +41,33 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gPs2MouseAbsolutePointerComponentName2;
// PS/2 mouse sample rate
//
typedef enum {
SSR_10,
SSR_20,
SSR_40,
SSR_60,
SSR_80,
SSR_100,
SSR_200,
MAX_SR
SampleRate10,
SampleRate20,
SampleRate40,
SampleRate60,
SampleRate80,
SampleRate100,
SampleRate200,
MaxSampleRate
} MOUSE_SR;
//
// PS/2 mouse resolution
//
typedef enum {
CMR1,
CMR2,
CMR4,
CMR8,
MAX_CMR
MouseResolution1,
MouseResolution2,
MouseResolution4,
MouseResolution8,
MaxResolution
} MOUSE_RE;
//
// PS/2 mouse scaling
//
typedef enum {
SF1,
SF2
Scaling1,
Scaling2
} MOUSE_SF;
//

View File

@ -15,9 +15,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "Ps2Mouse.h"
#include "CommPs2.h"
UINT8 SampleRateTbl[MAX_SR] = { 0xa, 0x14, 0x28, 0x3c, 0x50, 0x64, 0xc8 };
UINT8 SampleRateTbl[MaxSampleRate] = { 0xa, 0x14, 0x28, 0x3c, 0x50, 0x64, 0xc8 };
UINT8 ResolutionTbl[MAX_CMR] = { 0, 1, 2, 3 };
UINT8 ResolutionTbl[MaxResolution] = { 0, 1, 2, 3 };
/**
Issue self test command via IsaIo interface.

View File

@ -205,9 +205,9 @@ PS2MouseDriverStart (
//
MouseDev->Signature = PS2_MOUSE_DEV_SIGNATURE;
MouseDev->Handle = Controller;
MouseDev->SampleRate = SSR_20;
MouseDev->Resolution = CMR4;
MouseDev->Scaling = SF1;
MouseDev->SampleRate = SampleRate20;
MouseDev->Resolution = MouseResolution4;
MouseDev->Scaling = Scaling1;
MouseDev->DataPackageSize = 3;
MouseDev->IsaIo = IsaIo;
MouseDev->DevicePath = ParentDevicePath;

View File

@ -41,33 +41,33 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gPs2MouseComponentName2;
// PS/2 mouse sample rate
//
typedef enum {
SSR_10,
SSR_20,
SSR_40,
SSR_60,
SSR_80,
SSR_100,
SSR_200,
MAX_SR
SampleRate10,
SampleRate20,
SampleRate40,
SampleRate60,
SampleRate80,
SampleRate100,
SampleRate200,
MaxSampleRate
} MOUSE_SR;
//
// PS/2 mouse resolution
//
typedef enum {
CMR1,
CMR2,
CMR4,
CMR8,
MAX_CMR
MouseResolution1,
MouseResolution2,
MouseResolution4,
MouseResolution8,
MaxResolution
} MOUSE_RE;
//
// PS/2 mouse scaling
//
typedef enum {
SF1,
SF2
Scaling1,
Scaling2
} MOUSE_SF;
//