summaryrefslogtreecommitdiffstats
path: root/PcAtChipsetPkg/Library/BaseIoApicLib
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-06-27 21:12:46 +0800
committerLiming Gao <liming.gao@intel.com>2018-06-28 11:19:49 +0800
commit5a702acd3df099307d9bae0725f97b52b4895382 (patch)
tree526eddc1937022494dba0f280c7d46c55b782eb1 /PcAtChipsetPkg/Library/BaseIoApicLib
parentf75a7f568e6d0944327970b3f3f2dafd9bba76b1 (diff)
downloadedk2-5a702acd3df099307d9bae0725f97b52b4895382.tar.gz
edk2-5a702acd3df099307d9bae0725f97b52b4895382.tar.bz2
edk2-5a702acd3df099307d9bae0725f97b52b4895382.zip
PcAtChipsetPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'PcAtChipsetPkg/Library/BaseIoApicLib')
-rw-r--r--PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.uni4
-rw-r--r--PcAtChipsetPkg/Library/BaseIoApicLib/IoApicLib.c22
2 files changed, 13 insertions, 13 deletions
diff --git a/PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.uni b/PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.uni
index fb8320fa4f..9b533a33f1 100644
--- a/PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.uni
+++ b/PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.uni
@@ -3,13 +3,13 @@
//
// Library instance for I/O APIC library class.
//
-// Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
// which accompanies this distribution. The full text of the license may be found at
// http://opensource.org/licenses/bsd-license.php
-//
+//
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
//
diff --git a/PcAtChipsetPkg/Library/BaseIoApicLib/IoApicLib.c b/PcAtChipsetPkg/Library/BaseIoApicLib/IoApicLib.c
index 42b3f21ec1..0b8f888e7e 100644
--- a/PcAtChipsetPkg/Library/BaseIoApicLib/IoApicLib.c
+++ b/PcAtChipsetPkg/Library/BaseIoApicLib/IoApicLib.c
@@ -1,10 +1,10 @@
-/** @file
+/** @file
I/O APIC library.
I/O APIC library assumes I/O APIC is enabled. It does not
handles cases where I/O APIC is disabled.
- Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -30,7 +30,7 @@
Read a 32-bit I/O APIC register.
If Index is >= 0x100, then ASSERT().
-
+
@param Index Specifies the I/O APIC register to read.
@return The 32-bit value read from the I/O APIC register specified by Index.
@@ -50,7 +50,7 @@ IoApicRead (
Write a 32-bit I/O APIC register.
If Index is >= 0x100, then ASSERT().
-
+
@param Index Specifies the I/O APIC register to write.
@param Value Specifies the value to write to the I/O APIC register specified by Index.
@@ -71,7 +71,7 @@ IoApicWrite (
/**
Set the interrupt mask of an I/O APIC interrupt.
- If Irq is larger than the maximum number I/O APIC redirection entries, then ASSERT().
+ If Irq is larger than the maximum number I/O APIC redirection entries, then ASSERT().
@param Irq Specifies the I/O APIC interrupt to enable or disable.
@param Enable If TRUE, then enable the I/O APIC interrupt specified by Irq.
@@ -98,13 +98,13 @@ IoApicEnableInterrupt (
/**
Configures an I/O APIC interrupt.
-
+
Configure an I/O APIC Redirection Table Entry to deliver an interrupt in physical
- mode to the Local APIC of the currntly executing CPU. The default state of the
+ mode to the Local APIC of the currntly executing CPU. The default state of the
entry is for the interrupt to be disabled (masked). IoApicEnableInterrupts() must
be used to enable(unmask) the I/O APIC Interrupt.
-
- If Irq is larger than the maximum number I/O APIC redirection entries, then ASSERT().
+
+ If Irq is larger than the maximum number I/O APIC redirection entries, then ASSERT().
If Vector >= 0x100, then ASSERT().
If DeliveryMode is not supported, then ASSERT().
@@ -142,11 +142,11 @@ IoApicConfigureInterrupt (
ASSERT (Irq <= Version.Bits.MaximumRedirectionEntry);
ASSERT (Vector <= 0xFF);
ASSERT (DeliveryMode < 8 && DeliveryMode != 6 && DeliveryMode != 3);
-
+
Entry.Uint32.Low = IoApicRead (IO_APIC_REDIRECTION_TABLE_ENTRY_INDEX + Irq * 2);
Entry.Bits.Vector = (UINT8)Vector;
Entry.Bits.DeliveryMode = (UINT32)DeliveryMode;
- Entry.Bits.DestinationMode = 0;
+ Entry.Bits.DestinationMode = 0;
Entry.Bits.Polarity = AssertionLevel ? 0 : 1;
Entry.Bits.TriggerMode = LevelTriggered ? 1 : 0;
Entry.Bits.Mask = 1;