# EarlyVideoPei Module Map

This file is a navigation aid for the decompiled EarlyVideoPei source set.  The
full address and metric table remains in `EarlyVideoPei_function_list.csv`.

## Entry And PEI Services

| Address | Function | Notes |
|---|---|---|
| 0xffe6bf2c | `ModuleEntryPoint` | PEI module entry stub; jumps into the larger initialization body. |
| 0xffe71f81 | `PeiServiceGetBootMode` | PEI service wrapper for boot-mode lookup. |
| 0xffe71fb2 | `PeiAllocatePool` | PEI pool allocation wrapper. |
| 0xffe71fdc | `PeiGetPeiServices` | Locates PEI services table access path. |
| 0xffe7200e | `PeiGetPeiServicesTablePtr` | PEI services table pointer helper. |
| 0xffe72031 | `PeiLocatePpi` | PPI lookup wrapper. |
| 0xffe72062 | `PeiGetBootMode` | Boot-mode helper. |
| 0xffe7208c | `PeiAssert` | Assertion helper. |

## Memory Helpers

| Address | Function | Notes |
|---|---|---|
| 0xffe6be6c | `InternalCopyMem` | Low-level copy routine used by the module wrappers. |
| 0xffe6beac | `InternalSetMem` | Byte fill helper. |
| 0xffe6beec | `InitMultiple` | Repeated dword-pair initializer. |
| 0xffe6bf0c | `InternalSetMem32` | Dword fill helper. |
| 0xffe720aa | `CopyMem` | Public copy wrapper. |
| 0xffe72119 | `SetMem` | Public byte fill wrapper. |
| 0xffe72159 | `SetMem16` | Word fill wrapper. |
| 0xffe721bd | `SetMem32` | Dword fill wrapper. |
| 0xffe7224b | `ZeroMem` | Zero-fill wrapper. |

## PCI And MMIO Access

| Address Range | Functions | Notes |
|---|---|---|
| 0xffe6c267-0xffe6c695 | `PciCfgWrite`, `PciCfgRead16`, `PciCfgRead32`, `PciCfgWrite32`, `PciCfgReadModifyWrite`, `PciCfgWriteBuf`, `PciCfgReadBuf` | PCI configuration-space access helpers. |
| 0xffe6c696-0xffe6ca97 | `MmioCfgWrite`, `MmioCfgRead` | MMIO-backed configuration access. |
| 0xffe6caf3-0xffe6cff8 | `PciRegRead`, `PciRegWrite`, `PciRegPollBitSet`, `PciRegPollBitClear`, `PciRegSetBit`, `PciRegClearBit`, `PciRegReadViaBar`, `PciRegWriteViaBar` | Register-level helpers and polling loops. |
| 0xffe6d222-0xffe6d2df | `PciRegReadModify`, `PciRegVerifyWrite` | Read-modify-write and write verification helpers. |
| 0xffe6ca98 | `MicroSecondDelay` | Delay loop used by hardware polling paths. |

## VGA Programming

| Address Range | Functions | Notes |
|---|---|---|
| 0xffe6c162-0xffe6c1c5 | `VgaSeqRegReadModifyWrite`, `VgaCrtcRegAnd` | Small register access helpers. |
| 0xffe6cff9-0xffe70bc7 | `VgaMode*`, `VgaSeq*`, `VgaGc*` | Mode setup, timing, PLL, sequencer, and graphics-controller programming. |
| 0xffe70bc8-0xffe713ff | `VgaAttr*`, `VgaCrtc*` | Attribute-controller and CRT-controller programming. |
| 0xffe7140d-0xffe71dbb | `VgaDisplay*` | Display enable, blanking, cursor, palette, start-address, and mode-switch helpers. |
| 0xffe71dbc | `VgaDisplayFullInit` | Full display initialization sequence. |

## Image Decode And Rendering

| Address Range | Functions | Notes |
|---|---|---|
| 0xffe7227c-0xffe729a9 | `ImageDecode*` | Image decoder context setup, metadata access, block decode, and cleanup. |
| 0xffe72b8a-0xffe72f04 | `ImageXorDecodeType0` through `ImageXorDecodeType7` | XOR decode variants selected by encoded image type. |
| 0xffe72f05-0xffe7348a | `Bitmap*` | BMP header, palette, pixel, and render helpers. |
| 0xffe7348b-0xffe749e4 | `ImageRender*` | Render context, scanline/block output, pixel conversion, dithering, alpha, gamma, and palette output. |
| 0xffe749e5 | `ImageRenderLineConvert` | Final render-line conversion helper. |

## Logo And Debug Output

| Address | Function | Notes |
|---|---|---|
| 0xffe74a69 | `LogoRenderScanline` | Scanline logo renderer. |
| 0xffe74b4c | `LogoRenderFull` | Full logo renderer. |
| 0xffe74ca3 | `LogoDecode` | Logo decode wrapper. |
| 0xffe74cf7 | `LogoDisplayMain` | Largest recovered routine; drives logo display. |
| 0xffe76bfa | `DebugVgaPrint` | VGA debug print entry. |
| 0xffe76c49 | `DebugAssertPrint` | Assertion/debug print helper. |
| 0xffe76c70 | `DebugAssertPrint2` | Assertion/debug print helper. |
| 0xffe76c99 | `DebugAssertPrint3` | Assertion/debug print helper. |
| 0xffe76cc5 | `DebugPrintAll` | Multi-part debug print helper. |
| 0xffe76d33 | `DebugPrintEntry` | Debug print entry helper. |
| 0xffe76d78 | `DebugHexPrint` | Hex print helper. |
| 0xffe76dbc | `DebugVgaPrintStr` | String output helper. |
