|
|
1.1 ! root 1: #ifndef __JLAEFI_H ! 2: #define __JLAEFI_H ! 3: ! 4: typedef struct { ! 5: #pragma pack(push, 1) ! 6: UINT8 identSize; ! 7: UINT8 colorMapType; ! 8: UINT8 imageType; ! 9: UINT16 colorMapStart; ! 10: UINT16 colorMapLength; ! 11: UINT8 colorMapBits; ! 12: UINT16 xStart; ! 13: UINT16 yStart; ! 14: UINT16 width; ! 15: UINT16 height; ! 16: UINT8 bits; ! 17: UINT8 descriptor; ! 18: EFI_UGA_PIXEL data[]; ! 19: #pragma pack(pop) ! 20: } TGA; ! 21: ! 22: typedef enum { ! 23: tgaVerticalMask = 3, ! 24: tgaTop = 0, ! 25: tgaBottom = 1, ! 26: tgaCenteredVertically = 2, ! 27: tgaHorizontalMask = 12, ! 28: tgaLeft = 0, ! 29: tgaRight = 4, ! 30: tgaCenteredHorizontally = 8, ! 31: tgaCentered = tgaCenteredVertically | tgaCenteredHorizontally, ! 32: } TGA_ALIGNMENT; ! 33: ! 34: void InitJLAEFI(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE* SystemTable); ! 35: void exit(EFI_STATUS status); ! 36: CHAR16 inputChar(CHAR16* prompt, CHAR16 dflt); ! 37: UINT32 inputHex(CHAR16* prompt, UINT32 dflt); ! 38: UINT32 inputDec(CHAR16* prompt, UINT32 dflt); ! 39: void saveMemory(EFI_FILE* rootDir, UINT32 address, UINT32 length, UINTN copyFirst); ! 40: EFI_FILE* getFileSystem(); ! 41: EFI_HANDLE getHandleById(UINTN id); ! 42: UINTN getHandleId(EFI_HANDLE handle); ! 43: VOID* getProtocolByHandleId(UINTN id, EFI_GUID* protocol); ! 44: CHAR16* getDeviceName(EFI_HANDLE handle); ! 45: void dumpHandles(VOID* protocol); ! 46: UINT32 getDefaultHexArg(CHAR16* id, UINTN arg, UINT32 dflt); ! 47: void dumpHex(VOID* buffer, UINTN bufferOffset, UINTN size, UINTN displayOffset); ! 48: EFI_FILE* fileOpen(EFI_HANDLE device, CHAR16* filename, UINTN writeable); ! 49: CHAR16 kbdGet(); ! 50: CHAR16 kbdGetKey(); ! 51: void consoleControl(UINTN graphicsMode); ! 52: EFI_STATUS exec(EFI_HANDLE device, CHAR16* filename); ! 53: void* decompress(void* ptr, UINT32 size); ! 54: void tgaDraw(TGA* tga, UINTN x, UINTN y, TGA_ALIGNMENT alignment); ! 55: CHAR16* StrStr(CHAR16* str, CHAR16* str2); ! 56: int StrEndsWith(CHAR16* str, CHAR16* str2); ! 57: ! 58: extern UINTN argc; ! 59: extern CHAR16** argv; ! 60: extern EFI_STATUS status; ! 61: extern EFI_UGA_DRAW_PROTOCOL* pUgaDraw; ! 62: ! 63: #endif // __JLAEFI_H
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.