diff options
author | Joursoir <chat@joursoir.net> | 2022-03-25 18:37:48 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-03-25 18:38:36 +0300 |
commit | 01a6d8366c5c3bf8c52f666a1c302fea035185da (patch) | |
tree | 52a53ef4dddf0f1ccbd0efed820234368e43279f /UefiMonitorTest/UefiMonitorTest.h | |
parent | e425501ea7af0e2cf0397b46bf65f9275f2a5659 (diff) | |
download | umt-01a6d8366c5c3bf8c52f666a1c302fea035185da.tar.gz umt-01a6d8366c5c3bf8c52f666a1c302fea035185da.tar.bz2 umt-01a6d8366c5c3bf8c52f666a1c302fea035185da.zip |
main: add graphics context
Diffstat (limited to 'UefiMonitorTest/UefiMonitorTest.h')
-rw-r--r-- | UefiMonitorTest/UefiMonitorTest.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/UefiMonitorTest/UefiMonitorTest.h b/UefiMonitorTest/UefiMonitorTest.h new file mode 100644 index 0000000..d6306bc --- /dev/null +++ b/UefiMonitorTest/UefiMonitorTest.h @@ -0,0 +1,32 @@ +#ifndef UEFI_MONITOR_TEST_H +#define UEFI_MONITOR_TEST_H + +typedef struct { + /// + /// The EFI_GRAPHICS_OUTPUT_PROTOCOL instance. + /// + EFI_GRAPHICS_OUTPUT_PROTOCOL *Gop; + /// + /// Base address of graphics linear frame buffer. + /// Starts from the upper left pixel. + /// + UINT8 *Base; + /// + /// The size of video screen in pixels in the X dimension. + /// + UINT32 Width; + /// + /// The size of video screen in pixels in the Y dimension. + /// + UINT32 Height; + /// + /// The size of pixel color in bytes. + /// + UINT32 PixelWidth; + /// + /// Amount of bytes you should skip to go one pixel down. + /// + UINT32 Pitch; +} GRAPHICS_CONTEXT; + +#endif /* UEFI_MONITOR_TEST_H */ |