]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Drivers/PL390Gic/PL390GicNonSec.c
Remove tabs from all text files in the package.
[mirror_edk2.git] / ArmPkg / Drivers / PL390Gic / PL390GicNonSec.c
index e5faa40a332df80c9fff06840a3923c194e82196..9a9006f0a39511e86ec790d3cbcfa4847f0b8cee 100644 (file)
@@ -21,11 +21,11 @@ EFIAPI
 PL390GicEnableInterruptInterface (\r
   IN  INTN          GicInterruptInterfaceBase\r
   )\r
-{      \r
-       /*\r
-        * Enable the CPU interface in Non-Secure world\r
-        * Note: The ICCICR register is banked when Security extensions are implemented  \r
-        */\r
+{\s\s\r
+\s\s/*\r
+\s\s * Enable the CPU interface in Non-Secure world\r
+\s\s * Note: The ICCICR register is banked when Security extensions are implemented\s\s \r
+\s\s */\r
     MmioWrite32(GicInterruptInterfaceBase + GIC_ICCICR,0x00000001);\r
 }\r
 \r
@@ -50,7 +50,7 @@ PL390GicSendSgiTo (
   IN  INTN          CPUTargetList\r
   )\r
 {\r
-       MmioWrite32(GicDistributorBase + GIC_ICDSGIR, ((TargetListFilter & 0x3) << 24) | ((CPUTargetList & 0xFF) << 16));\r
+\s\sMmioWrite32(GicDistributorBase + GIC_ICDSGIR, ((TargetListFilter & 0x3) << 24) | ((CPUTargetList & 0xFF) << 16));\r
 }\r
 \r
 UINT32\r
@@ -65,9 +65,9 @@ PL390GicAcknowledgeSgiFrom (
     InterruptId = MmioRead32(GicInterruptInterfaceBase + GIC_ICCIAR);\r
 \r
     //Check if the Interrupt ID is valid, The read from Interrupt Ack register returns CPU ID and Interrupt ID\r
-       if (((CoreId & 0x7) << 10) == (InterruptId & 0x1C00)) {\r
-           //Got SGI number 0 hence signal End of Interrupt by writing to ICCEOIR\r
-               MmioWrite32(GicInterruptInterfaceBase + GIC_ICCEIOR, InterruptId);\r
+\s\sif (((CoreId & 0x7) << 10) == (InterruptId & 0x1C00)) {\r
+\s\s    //Got SGI number 0 hence signal End of Interrupt by writing to ICCEOIR\r
+\s\s\s\sMmioWrite32(GicInterruptInterfaceBase + GIC_ICCEIOR, InterruptId);\r
         return 1;\r
     } else {\r
         return 0;\r
@@ -87,9 +87,9 @@ PL390GicAcknowledgeSgi2From (
     InterruptId = MmioRead32(GicInterruptInterfaceBase + GIC_ICCIAR);\r
 \r
     //Check if the Interrupt ID is valid, The read from Interrupt Ack register returns CPU ID and Interrupt ID\r
-       if((((CoreId & 0x7) << 10) | (SgiId & 0x3FF)) == (InterruptId & 0x1FFF)) {\r
-           //Got SGI number 0 hence signal End of Interrupt by writing to ICCEOIR\r
-               MmioWrite32(GicInterruptInterfaceBase + GIC_ICCEIOR, InterruptId);\r
+\s\sif((((CoreId & 0x7) << 10) | (SgiId & 0x3FF)) == (InterruptId & 0x1FFF)) {\r
+\s\s    //Got SGI number 0 hence signal End of Interrupt by writing to ICCEOIR\r
+\s\s\s\sMmioWrite32(GicInterruptInterfaceBase + GIC_ICCEIOR, InterruptId);\r
         return 1;\r
     } else {\r
         return 0;\r