diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-06 02:58:12 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-06 02:58:12 +0000 |
commit | 0547cf4b30b92b2909d279589c9c0c5e3337cbf2 (patch) | |
tree | a52e70f6ac494750d84ba84b2a9549e2ae66e22c | |
parent | 8ba0729797629dc05f2108543a740adc801e2df6 (diff) | |
download | edk2-platforms-0547cf4b30b92b2909d279589c9c0c5e3337cbf2.tar.xz |
1) Add package description file (dec) for PcAtChipsetPkg
2) Add Pcd8259LegacyModeMask for platform developer configure default mask value in legacy mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8749 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | PcAtChipsetPkg/8259InterruptControllerDxe/8259.c | 2 | ||||
-rw-r--r-- | PcAtChipsetPkg/8259InterruptControllerDxe/8259.h | 1 | ||||
-rw-r--r-- | PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf | 9 |
3 files changed, 9 insertions, 3 deletions
diff --git a/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c b/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c index 72489edd62..9316c7ff0f 100644 --- a/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c +++ b/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c @@ -38,7 +38,7 @@ UINT8 mMasterBase = 0xff; UINT8 mSlaveBase = 0xff;
EFI_8259_MODE mMode = Efi8259ProtectedMode;
UINT16 mProtectedModeMask = 0xffff;
-UINT16 mLegacyModeMask = 0xffff;
+UINT16 mLegacyModeMask = FixedPcdGet16(Pcd8259LegacyModeMask);
UINT16 mProtectedModeEdgeLevel = 0x0000;
UINT16 mLegacyModeEdgeLevel = 0x0000;
diff --git a/PcAtChipsetPkg/8259InterruptControllerDxe/8259.h b/PcAtChipsetPkg/8259InterruptControllerDxe/8259.h index 8e4a41e68b..b24df2fcec 100644 --- a/PcAtChipsetPkg/8259InterruptControllerDxe/8259.h +++ b/PcAtChipsetPkg/8259InterruptControllerDxe/8259.h @@ -24,6 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Library/DebugLib.h>
#include <Library/IoLib.h>
#include <Library/BaseLib.h>
+#include <Library/PcdLib.h>
#include <IndustryStandard/Pci22.h>
//
diff --git a/PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf b/PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf index a40ac77f92..04379270dc 100644 --- a/PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf +++ b/PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf @@ -27,13 +27,15 @@ MdePkg/MdePkg.dec
IntelFrameworkPkg/IntelFrameworkPkg.dec
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
-
+ PcAtChipsetPkg/PcAtChipsetPkg.dec
+
[LibraryClasses]
UefiBootServicesTableLib
DebugLib
UefiDriverEntryPoint
IoLib
-
+ PcdLib
+
[Sources.common]
8259.c
8259.h
@@ -42,6 +44,9 @@ gEfiLegacy8259ProtocolGuid # PROTOCOL ALWAYS_PRODUCED
gEfiPciIoProtocolGuid
+[Pcd]
+ gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeMask|0xFFFF
+
[Depex]
TRUE
|