Compare commits

..

2 Commits

Author SHA1 Message Date
Patrick Rudolph
f6a483461c [HACK] Load OptionROMs immediately
This will make sure the ConsoleInit is able to connect the driver installed
by the VGA Option ROMs.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
2023-12-28 14:38:35 -07:00
Patrick Rudolph
1966ffb1c3 MdeModulePkg: Fix OptionROM scanning
The Option ROM scanner can't work as enumeration was done by the
first stage bootloader. Running it will disable the ability of the
PCIPlatform code to scan for ROMs.

Required for the following patch that enables custom Option ROM
scanning using gPciPlatformProtocol.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
2023-12-28 14:38:29 -07:00
4 changed files with 9 additions and 7 deletions

View File

@@ -2551,10 +2551,12 @@ PciEnumeratorLight (
// //
RemoveRejectedPciDevices (RootBridgeDev->Handle, RootBridgeDev); RemoveRejectedPciDevices (RootBridgeDev->Handle, RootBridgeDev);
// if (!PcdGetBool (PcdPciDisableBusEnumeration)) {
// Process option rom light //
// // Process option rom light
ProcessOptionRomLight (RootBridgeDev); //
ProcessOptionRomLight (RootBridgeDev);
}
// //
// Determine attributes for all devices under this root bridge // Determine attributes for all devices under this root bridge

View File

@@ -285,7 +285,7 @@ UsbHcBulkTransfer (
IN UINT8 DevSpeed, IN UINT8 DevSpeed,
IN UINTN MaxPacket, IN UINTN MaxPacket,
IN UINT8 BufferNum, IN UINT8 BufferNum,
IN OUT VOID *Data[], IN OUT VOID *Data[EFI_USB_MAX_BULK_BUFFER_NUM],
IN OUT UINTN *DataLength, IN OUT UINTN *DataLength,
IN OUT UINT8 *DataToggle, IN OUT UINT8 *DataToggle,
IN UINTN TimeOut, IN UINTN TimeOut,

View File

@@ -149,7 +149,7 @@ UsbHcBulkTransfer (
IN UINT8 DevSpeed, IN UINT8 DevSpeed,
IN UINTN MaxPacket, IN UINTN MaxPacket,
IN UINT8 BufferNum, IN UINT8 BufferNum,
IN OUT VOID *Data[], IN OUT VOID *Data[EFI_USB_MAX_BULK_BUFFER_NUM],
IN OUT UINTN *DataLength, IN OUT UINTN *DataLength,
IN OUT UINT8 *DataToggle, IN OUT UINT8 *DataToggle,
IN UINTN TimeOut, IN UINTN TimeOut,

View File

@@ -25,7 +25,7 @@ typedef struct {
} DEFERRED_3RD_PARTY_IMAGE_TABLE; } DEFERRED_3RD_PARTY_IMAGE_TABLE;
BOOLEAN mImageLoadedAfterEndOfDxe = FALSE; BOOLEAN mImageLoadedAfterEndOfDxe = FALSE;
BOOLEAN mEndOfDxe = FALSE; BOOLEAN mEndOfDxe = TRUE;
DEFERRED_3RD_PARTY_IMAGE_TABLE mDeferred3rdPartyImage = { DEFERRED_3RD_PARTY_IMAGE_TABLE mDeferred3rdPartyImage = {
0, // Deferred image count 0, // Deferred image count
NULL // The deferred image info NULL // The deferred image info