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