diff options
author | AJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-07-26 21:33:37 +0000 |
---|---|---|
committer | AJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-07-26 21:33:37 +0000 |
commit | b397fbbbf952ce05c4552d5f2aabeac74aec8aad (patch) | |
tree | 55057e3936adb9c6b001f7a39ef9c126df953da3 /Nt32Pkg/WinNtGopDxe | |
parent | 0963b13df50273487a38784a64f7003e95981dea (diff) | |
download | edk2-platforms-b397fbbbf952ce05c4552d5f2aabeac74aec8aad.tar.xz |
removed gEfiWinNtCPUSpeedGuid, gEfiWinNtCPUModelGuid, and gEfiWinNtMemoryGuid. Replaced them with the PCD values they represent. There was no need to use the driver model, when you could get PCD value directly. Also removed local copies of Atoi() in several modules. Fixed bug in reporting of memory size.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3458 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtGopDxe')
-rw-r--r-- | Nt32Pkg/WinNtGopDxe/WinNtGop.h | 13 | ||||
-rw-r--r-- | Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c | 41 |
2 files changed, 0 insertions, 54 deletions
diff --git a/Nt32Pkg/WinNtGopDxe/WinNtGop.h b/Nt32Pkg/WinNtGopDxe/WinNtGop.h index 74cfe41e15..e9cf80c33f 100644 --- a/Nt32Pkg/WinNtGopDxe/WinNtGop.h +++ b/Nt32Pkg/WinNtGopDxe/WinNtGop.h @@ -304,18 +304,5 @@ WinNtGopDestroySimpleTextInForWindow ( ;
-/**
- TODO: Add function description
-
- @param String TODO: add argument description
-
- @return TODO: add return values
-
-**/
-UINTN
-Atoi (
- IN CHAR16 *String
- )
-;
#endif
diff --git a/Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c b/Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c index 86b6d19ebb..5f41e29e19 100644 --- a/Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c +++ b/Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c @@ -335,44 +335,3 @@ WinNtGopDriverBindingStop ( return Status;
}
-
-/**
- Convert a unicode string to a UINTN
-
- @param String Unicode string.
-
- @return UINTN of the number represented by String.
-
-**/
-UINTN
-Atoi (
- CHAR16 *String
- )
-{
- UINTN Number;
- CHAR16 *Str;
-
- //
- // skip preceeding white space
- //
- Str = String;
- while ((*Str) && (*Str == ' ' || *Str == '"')) {
- Str++;
- }
-
- //
- // Convert ot a Number
- //
- Number = 0;
- while (*Str != '\0') {
- if ((*Str >= '0') && (*Str <= '9')) {
- Number = (Number * 10) +*Str - '0';
- } else {
- break;
- }
-
- Str++;
- }
-
- return Number;
-}
|