# PciTableInit

## Function Table

| Address | Name | Description |
|---------|------|-------------|
|  | **TableInitLoop** |  |
|  | **PpiNotifyDispatch** |  |
|  | **PpiInstallDispatch** |  |
|  | **GetDebugOutputInterface** |  |
|  | **DebugPrint** |  |
|  | **IsDebugPrintEnabled** |  |
|  | **GetPeiServices** |  |
|  | **ModuleEntryPoint** |  |
| GUID | **for EFI_DEBUG_SUPPORT_PPI** |  |
| EFI_GUID | **gEfiDebugSupportPpiGuid = {** |  |
| GUID | **for PciTableInit PPI (produced by this module)** |  |
| EFI_GUID | **gPciTableInitPpiGuid = {** |  |
| PPI | **descriptor for this module** |  |
| EFI_PEI_PPI_DESCRIPTOR | **gPciTableInitPpiDescriptor = {** |  |
| Dispatch | **function pointers** |  |
| gPciTableInitNotify | **= PpiNotifyDispatch  (0xffe30e78)** |  |
| gPciTableInitInstall | **= PpiInstallDispatch (0xffe30ecf)** |  |
| These | **are referenced by the PPI descriptor and called by CspLibPei_Init** |  |
| to | **process the notification and installation dispatch tables.** |  |
| Internal | **helper functions (library-level)** |  |
| Backward | **copy to handle overlapping regions** |  |
| src_1 | **= &src[count_1 - 1];** |  |
| Forward | **copy: copy aligned dwords first, then residual bytes** |  |
| count | **= count_1 & 3;** |  |
| PPI | **dispatch functions** |  |
| Debug | **output support** |  |
| Platform | **debug status** |  |
| Read | **current CMOS index, set to 0x4A while preserving NMI mask** |  |
| CmosIndex | **= IoRead8 (0x70);** |  |
| Platform | **override: check GPIO register bit 1** |  |
| DebugValue2 | **= (MmioRead8 (0xFDAF0490) & 2) | 1;** |  |
| PEI | **Services access** |  |
| Module | **entry point** |  |
| Initialize | **global SystemTable pointer** |  |
| if | **(SystemTable == NULL) {** |  |
| The | **actual initialization is:** |  |
| dword_FFDAB284 | **= SystemTable->Hdr.Signature field at offset 100;** |  |
| Then | **call CspLibPei_Init with the PPI descriptor.** |  |
| v2 | **= CspLibPei_Init (SystemTable, &gPciTableInitPpiDescriptor);** |  |

---
*Generated by HR650X BIOS Decompilation Project*