7c403d
commit 0914618b553d6f3366e568409cebf2656891ca69
7c403d
Author: Robert Moore <Robert.Moore@intel.com>
7c403d
Date:   Thu Feb 17 14:24:24 2022 -0800
7c403d
7c403d
    Automated cleanup; No functional changes
7c403d
    Removed some tabs and // comments.
7c403d
7c403d
diff --git a/source/common/dmtbdump1.c b/source/common/dmtbdump1.c
7c403d
index 597bb3b..76662a4 100644
7c403d
--- a/source/common/dmtbdump1.c
7c403d
+++ b/source/common/dmtbdump1.c
7c403d
@@ -273,14 +273,16 @@ AcpiDmDumpCedt (
7c403d
             ACPI_CEDT_CFMWS *ptr = (ACPI_CEDT_CFMWS *) Subtable;
7c403d
             unsigned int i, max = 0x01 << (ptr->InterleaveWays);
7c403d
 
7c403d
-            // print out table with first "Interleave target"
7c403d
+            /* print out table with first "Interleave target" */
7c403d
+
7c403d
             Status = AcpiDmDumpTable (Length, Offset, Subtable,
7c403d
                 Subtable->Length, AcpiDmTableInfoCedt1);
7c403d
             if (ACPI_FAILURE (Status)) {
7c403d
                 return;
7c403d
             }
7c403d
 
7c403d
-            // Now, print out any interleave targets beyond the first.
7c403d
+            /* Now, print out any interleave targets beyond the first. */
7c403d
+
7c403d
             for (i = 1; i < max; i++) {
7c403d
                 unsigned int loc_offset = Offset + (i * 4) + ACPI_OFFSET(ACPI_CEDT_CFMWS, InterleaveTargets);
7c403d
                 unsigned int *trg = &(ptr->InterleaveTargets[i]);
7c403d
diff --git a/source/compiler/dttable1.c b/source/compiler/dttable1.c
7c403d
index 6eea2a4..e2e0379 100644
7c403d
--- a/source/compiler/dttable1.c
7c403d
+++ b/source/compiler/dttable1.c
7c403d
@@ -262,7 +262,9 @@ DtCompileCedt (
7c403d
 
7c403d
     while (*PFieldList)
7c403d
     {
7c403d
-        int InsertFlag = 1;             // if CFMWS and has more than one target, then set to zero later
7c403d
+        /* if CFMWS and has more than one target, then set to zero later */
7c403d
+
7c403d
+        int InsertFlag = 1;
7c403d
         SubtableStart = *PFieldList;
7c403d
 
7c403d
         /* CEDT Header */
7c403d
@@ -293,27 +295,30 @@ DtCompileCedt (
7c403d
             unsigned char *dump;
7c403d
             unsigned int idx, offset, max = 0;
7c403d
 
7c403d
-            // Compile table with first "Interleave target"
7c403d
+            /* Compile table with first "Interleave target" */
7c403d
+
7c403d
             Status = DtCompileTable (PFieldList, AcpiDmTableInfoCedt1, &Subtable);
7c403d
             if (ACPI_FAILURE (Status))
7c403d
             {
7c403d
                 return (Status);
7c403d
             }
7c403d
 
7c403d
-            // Look in buffer for the number of targets
7c403d
+            /* Look in buffer for the number of targets */
7c403d
             offset = (unsigned int) ACPI_OFFSET (ACPI_CEDT_CFMWS, InterleaveWays);
7c403d
-            dump = (unsigned char *) Subtable->Buffer - 4;     // place at beginning of cedt1
7c403d
-            max = 0x01 << dump[offset]; // 2^max, so 0=1, 1=2, 2=4, 3=8.  8 is MAX
7c403d
-            if (max > 8)    max=1;      // Error in encoding Interleaving Ways.
7c403d
-            if (max == 1)               // if only one target, then break here.
7c403d
-                break;                  // break if only one target.
7c403d
+            dump = (unsigned char *) Subtable->Buffer - 4;     /* place at beginning of cedt1 */
7c403d
+            max = 0x01 << dump[offset];     /* 2^max, so 0=1, 1=2, 2=4, 3=8.  8 is MAX */
7c403d
+            if (max > 8)    max=1;          /* Error in encoding Interleaving Ways. */
7c403d
+            if (max == 1)                   /* if only one target, then break here. */
7c403d
+                break;                      /* break if only one target. */
7c403d
+
7c403d
+            /* We need to add more interleave targets, so write the current Subtable. */
7c403d
 
7c403d
-            // We need to add more interleave targets, so write the current Subtable.
7c403d
             ParentTable = DtPeekSubtable ();
7c403d
-            DtInsertSubtable (ParentTable, Subtable);   // Insert AcpiDmTableInfoCedt1 table so we can put in
7c403d
-            DtPushSubtable (Subtable);                  // the targets > the first.
7c403d
+            DtInsertSubtable (ParentTable, Subtable);   /* Insert AcpiDmTableInfoCedt1 table so we can put in */
7c403d
+            DtPushSubtable (Subtable);                  /* the targets > the first. */
7c403d
+
7c403d
+            /* Now, find out all interleave targets beyond the first. */
7c403d
 
7c403d
-            // Now, find out all interleave targets beyond the first.
7c403d
             for (idx = 1; idx < max; idx++) {
7c403d
                 ParentTable = DtPeekSubtable ();
7c403d
 
7c403d
@@ -326,7 +331,7 @@ DtCompileCedt (
7c403d
                     }
7c403d
                     if (Subtable)
7c403d
                     {
7c403d
-                        DtInsertSubtable (ParentTable, Subtable);       // got a target, so insert table.
7c403d
+                        DtInsertSubtable (ParentTable, Subtable);       /* got a target, so insert table. */
7c403d
                         InsertFlag = 0;
7c403d
                     }
7c403d
                 }
7c403d
diff --git a/source/include/actbl1.h b/source/include/actbl1.h
7c403d
index 3c46b60..b291aa2 100644
7c403d
--- a/source/include/actbl1.h
7c403d
+++ b/source/include/actbl1.h
7c403d
@@ -468,19 +468,20 @@ typedef struct acpi_cedt_cfmws
7c403d
 typedef struct acpi_cedt_cfmws_target_element
7c403d
 {
7c403d
     UINT32                  InterleaveTarget;
7c403d
+
7c403d
 } ACPI_CEDT_CFMWS_TARGET_ELEMENT;
7c403d
 
7c403d
 /* Values for Interleave Arithmetic field above */
7c403d
 
7c403d
-#define ACPI_CEDT_CFMWS_ARITHMETIC_MODULO	(0)
7c403d
+#define ACPI_CEDT_CFMWS_ARITHMETIC_MODULO   (0)
7c403d
 
7c403d
 /* Values for Restrictions field above */
7c403d
 
7c403d
-#define ACPI_CEDT_CFMWS_RESTRICT_TYPE2		(1)
7c403d
-#define ACPI_CEDT_CFMWS_RESTRICT_TYPE3		(1<<1)
7c403d
-#define ACPI_CEDT_CFMWS_RESTRICT_VOLATILE	(1<<2)
7c403d
-#define ACPI_CEDT_CFMWS_RESTRICT_PMEM		(1<<3)
7c403d
-#define ACPI_CEDT_CFMWS_RESTRICT_FIXED		(1<<4)
7c403d
+#define ACPI_CEDT_CFMWS_RESTRICT_TYPE2      (1)
7c403d
+#define ACPI_CEDT_CFMWS_RESTRICT_TYPE3      (1<<1)
7c403d
+#define ACPI_CEDT_CFMWS_RESTRICT_VOLATILE   (1<<2)
7c403d
+#define ACPI_CEDT_CFMWS_RESTRICT_PMEM       (1<<3)
7c403d
+#define ACPI_CEDT_CFMWS_RESTRICT_FIXED      (1<<4)
7c403d
 
7c403d
 
7c403d
 /*******************************************************************************