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 "Ps2MouseAbsolutePointer.h"
#include "CommPs2.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. Issue self test command via IsaIo interface.

View File

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

View File

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

View File

@ -15,9 +15,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "Ps2Mouse.h" #include "Ps2Mouse.h"
#include "CommPs2.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. Issue self test command via IsaIo interface.

View File

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

View File

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