diff options
author | Gabriel Somlo <somlo@cmu.edu> | 2014-11-14 00:38:00 +0000 |
---|---|---|
committer | jljusten <jljusten@Edk2> | 2014-11-14 00:38:00 +0000 |
commit | 72a1100171a627ce26789c193ca7036eb8a5364a (patch) | |
tree | 5507bbbaadef93318191ea16bbe5f9ee72cedb31 /OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.h | |
parent | d55004dac9c762fa01c5656f7a2e6132ed7bfe38 (diff) | |
download | edk2-platforms-72a1100171a627ce26789c193ca7036eb8a5364a.tar.xz |
OvmfPkg: CsmSupportLib: Set/use platform specific legacy interrupt device
Use a PCD set from PEI to determine the legacy interrupt device
number appropriate for the underlying platform type during protocol
initialization.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16375 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.h')
-rw-r--r-- | OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.h b/OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.h index 193e48bad2..eb1f583007 100644 --- a/OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.h +++ b/OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.h @@ -20,12 +20,16 @@ #include <Protocol/LegacyInterrupt.h>
+#include <Library/PcdLib.h>
#include <Library/PciLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiBootServicesTableLib.h>
+#include <OvmfPlatforms.h>
+
#define LEGACY_INT_BUS 0
-#define LEGACY_INT_DEV 1
+#define LEGACY_INT_DEV_PIIX4 0x01
+#define LEGACY_INT_DEV_Q35 0x1f
#define LEGACY_INT_FUNC 0
#define PIRQN 0x00 // PIRQ Null
|