2 Platform init DXE driver for this platform.
4 Copyright (c) 2013 Intel Corporation.
6 SPDX-License-Identifier: BSD-2-Clause-Patent
11 // Statements that include other files
13 #include "PlatformInitDxe.h"
14 #include <Library/PciLib.h>
15 #include <IndustryStandard/Pci.h>
22 DEBUG ((EFI_D_INFO
, "QNC Name: "));
23 switch (PciRead16 (PCI_LIB_ADDRESS (MC_BUS
, MC_DEV
, MC_FUN
, PCI_DEVICE_ID_OFFSET
))) {
24 case QUARK_MC_DEVICE_ID
:
25 DEBUG ((EFI_D_INFO
, "Quark"));
27 case QUARK2_MC_DEVICE_ID
:
28 DEBUG ((EFI_D_INFO
, "Quark2"));
31 DEBUG ((EFI_D_INFO
, "Unknown"));
37 switch (PciRead8 (PCI_LIB_ADDRESS (MC_BUS
, MC_DEV
, MC_FUN
, PCI_REVISION_ID_OFFSET
))) {
38 case QNC_MC_REV_ID_A0
:
39 DEBUG ((EFI_D_INFO
, " - A0 stepping\n"));
42 DEBUG ((EFI_D_INFO
, " - xx\n"));
51 IN EFI_HANDLE ImageHandle
,
52 IN EFI_SYSTEM_TABLE
*SystemTable
57 Entry point for the driver.
61 ImageHandle - Image Handle.
62 SystemTable - EFI System Table.
66 EFI_SUCCESS - Function has completed successfully.
75 // Create events for configuration callbacks.
77 CreateConfigEvents ();
80 // Init Platform LEDs.
82 Status
= PlatformLedInit ((EFI_PLATFORM_TYPE
)PcdGet16 (PcdPlatformType
));
83 ASSERT_EFI_ERROR (Status
);