| 801 | } |
| 802 | |
| 803 | UINT32 |
| 804 | GetLength ( |
| 805 | UINT8 *ThreeByteLength |
| 806 | ) |
| 807 | /*++ |
| 808 | |
| 809 | Routine Description: |
| 810 | |
| 811 | Converts a three byte length value into a UINT32. |
| 812 | |
| 813 | Arguments: |
| 814 | |
| 815 | ThreeByteLength Pointer to the first of the 3 byte length. |
| 816 | |
| 817 | Returns: |
| 818 | |
| 819 | UINT32 Size of the section |
| 820 | |
| 821 | --*/ |
| 822 | { |
| 823 | UINT32 Length; |
| 824 | |
| 825 | if (ThreeByteLength == NULL) { |
| 826 | return 0; |
| 827 | } |
| 828 | |
| 829 | Length = *((UINT32 *) ThreeByteLength); |
| 830 | Length = Length & 0x00FFFFFF; |
| 831 | |
| 832 | return Length; |
| 833 | } |
| 834 | |
| 835 | EFI_STATUS |
| 836 | GetErasePolarity ( |
no outgoing calls
no test coverage detected