MODULE EFIGraphicsOutput;
IMPORT
EFI, SYSTEM;
CONST
PFRGBX8Bit*= 0;
PFBGRX8Bit*= 1;
PFBitMask*= 2;
PFBltOnly*= 3;
PFMax*= 4;
VAR
GUID-: EFI.GUID;
TYPE GraphicsMode* = POINTER TO GraphicsModeDescription;
TYPE GraphicsModeDescription* = RECORD
MaxMode-: EFI.Int32;
Mode-: EFI.Int32;
Info-{UNTRACED}: GraphicsModeInfo;
SizeOfInfo-: EFI.Int;
FrameBufferBase-: EFI.PhysicalAddress;
FrameBufferSize-: EFI.Int;
END;
TYPE GraphicsModeInfo* = POINTER TO GraphicsModeInfoDescription;
TYPE GraphicsModeInfoDescription* = RECORD
Version-: EFI.Int32;
HorizontalResolution-: EFI.Int32;
VerticalResolution-: EFI.Int32;
PixelFormat-: EFI.Int32;
PixelBitmask-: RECORD RedMask-,GreenMask-,BlueMask-,ReservedMask-:EFI.Int32; END;
PixelsPerScanline-: EFI.Int32;
END;
TYPE Protocol* = POINTER TO ProtocolDescription;
TYPE GOQueryMode* = PROCEDURE{C}(This : Protocol; ModeNumber : EFI.Int32; VAR SizeOfInfo : EFI.Int; VAR Info : GraphicsModeInfo) : EFI.Status;
TYPE GOSetMode* = PROCEDURE{C}(This : Protocol; ModeNumber : EFI.Int32) : EFI.Status;
TYPE GODummyType* = PROCEDURE{C}():EFI.Status;
TYPE ProtocolDescription* = RECORD(EFI.ProtocolDescription)
QueryMode-: GOQueryMode;
SetMode-: GOSetMode;
Blt-: GODummyType;
Mode-{UNTRACED}: GraphicsMode;
END;
BEGIN
GUID.Data1 := LONGINT(9042A9DEH);
GUID.Data2 := 23DCH;
GUID.Data3 := 4A38H;
GUID.Data4[0] := SHORTINT(96H);
GUID.Data4[1] := SHORTINT(0FBH);
GUID.Data4[2] := 7AH;
GUID.Data4[3] := SHORTINT(0DEH);
GUID.Data4[4] := SHORTINT(0D0H);
GUID.Data4[5] := SHORTINT(80H);
GUID.Data4[6] := 51H;
GUID.Data4[7] := 6AH;
END EFIGraphicsOutput.