diff options
| author | Warner Losh <imp@FreeBSD.org> | 2024-11-30 19:36:15 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2024-11-30 19:38:23 +0000 |
| commit | 5d8674f2bdd536124b1dd026dfa729a1376b3cac (patch) | |
| tree | ade665e8d0ce42d3068d4b00dae9171f47f3cd06 /MdePkg/Library/BasePostCodeLibPort80/PostCode.c | |
| parent | 4a14dfcc1110b35118d5be8054fecf59ffb83032 (diff) | |
Diffstat (limited to 'MdePkg/Library/BasePostCodeLibPort80/PostCode.c')
| -rw-r--r-- | MdePkg/Library/BasePostCodeLibPort80/PostCode.c | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/MdePkg/Library/BasePostCodeLibPort80/PostCode.c b/MdePkg/Library/BasePostCodeLibPort80/PostCode.c index d9ad897b5a13..13b1b19c02e8 100644 --- a/MdePkg/Library/BasePostCodeLibPort80/PostCode.c +++ b/MdePkg/Library/BasePostCodeLibPort80/PostCode.c @@ -38,27 +38,26 @@ PostCode ( ) { switch (PcdGet8 (PcdPort80DataWidth)) { - case 8: - IoWrite8 (0x80, (UINT8)(Value)); - break; - case 16: - IoWrite16 (0x80, (UINT16)(Value)); - break; - case 32: - IoWrite32 (0x80, Value); - break; - default: - // - // Assert on the invalid data width - // - ASSERT (FALSE); - break; + case 8: + IoWrite8 (0x80, (UINT8)(Value)); + break; + case 16: + IoWrite16 (0x80, (UINT16)(Value)); + break; + case 32: + IoWrite32 (0x80, Value); + break; + default: + // + // Assert on the invalid data width + // + ASSERT (FALSE); + break; } return Value; } - /** Sends an 32-bit value to a POST and associated ASCII string. @@ -94,7 +93,6 @@ PostCodeWithDescription ( return Value; } - /** Returns TRUE if POST Codes are enabled. @@ -113,10 +111,9 @@ PostCodeEnabled ( VOID ) { - return (BOOLEAN) ((PcdGet8(PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0); + return (BOOLEAN)((PcdGet8 (PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0); } - /** Returns TRUE if POST code descriptions are enabled. @@ -135,5 +132,5 @@ PostCodeDescriptionEnabled ( VOID ) { - return (BOOLEAN) ((PcdGet8(PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0); + return (BOOLEAN)((PcdGet8 (PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0); } |
