Blame SOURCES/CEDT-support_03.patch

ed51cc
commit 187e2f286f503cce9f57748da639dfccaeaecf96
ed51cc
Author: Ben Widawsky <ben@bwidawsk.net>
ed51cc
Date:   Thu Feb 25 14:19:51 2021 -0800
ed51cc
ed51cc
    CXL 2.0: CEDT: Add template
ed51cc
    
ed51cc
    Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
ed51cc
ed51cc
diff --git a/source/common/dmtable.c b/source/common/dmtable.c
ed51cc
index f483a78..5b204a8 100644
ed51cc
--- a/source/common/dmtable.c
ed51cc
+++ b/source/common/dmtable.c
ed51cc
@@ -376,7 +376,7 @@ const ACPI_DMTABLE_DATA     AcpiDmTableData[] =
ed51cc
     {ACPI_SIG_BERT, AcpiDmTableInfoBert,    NULL,           NULL,           TemplateBert},
ed51cc
     {ACPI_SIG_BGRT, AcpiDmTableInfoBgrt,    NULL,           NULL,           TemplateBgrt},
ed51cc
     {ACPI_SIG_BOOT, AcpiDmTableInfoBoot,    NULL,           NULL,           TemplateBoot},
ed51cc
-    {ACPI_SIG_CEDT, NULL,                   AcpiDmDumpCedt, NULL,           NULL},
ed51cc
+    {ACPI_SIG_CEDT, NULL,                   AcpiDmDumpCedt, NULL,           TemplateCedt},
ed51cc
     {ACPI_SIG_CPEP, NULL,                   AcpiDmDumpCpep, DtCompileCpep,  TemplateCpep},
ed51cc
     {ACPI_SIG_CSRT, NULL,                   AcpiDmDumpCsrt, DtCompileCsrt,  TemplateCsrt},
ed51cc
     {ACPI_SIG_DBG2, AcpiDmTableInfoDbg2,    AcpiDmDumpDbg2, DtCompileDbg2,  TemplateDbg2},
ed51cc
diff --git a/source/compiler/dtcompiler.h b/source/compiler/dtcompiler.h
ed51cc
index 5136f75..fd20109 100644
ed51cc
--- a/source/compiler/dtcompiler.h
ed51cc
+++ b/source/compiler/dtcompiler.h
ed51cc
@@ -587,6 +587,7 @@ extern const unsigned char  TemplateAsf[];
ed51cc
 extern const unsigned char  TemplateBoot[];
ed51cc
 extern const unsigned char  TemplateBert[];
ed51cc
 extern const unsigned char  TemplateBgrt[];
ed51cc
+extern const unsigned char  TemplateCedt[];
ed51cc
 extern const unsigned char  TemplateCpep[];
ed51cc
 extern const unsigned char  TemplateCsrt[];
ed51cc
 extern const unsigned char  TemplateDbg2[];
ed51cc
diff --git a/source/compiler/dttemplate.h b/source/compiler/dttemplate.h
ed51cc
index e3fbd8b..275003c 100644
ed51cc
--- a/source/compiler/dttemplate.h
ed51cc
+++ b/source/compiler/dttemplate.h
ed51cc
@@ -96,6 +96,20 @@ const unsigned char TemplateBoot[] =
ed51cc
     0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00   /* 00000020    "(.. ...." */
ed51cc
 };
ed51cc
 
ed51cc
+const unsigned char TemplateCedt[] =
ed51cc
+{
ed51cc
+    /* FIXME: This is from QEMU */
ed51cc
+    0x43,0x45,0x44,0x54,0x44,0x00,0x00,0x00,  /* 00000000    "CEDTD..." */
ed51cc
+    0x01,0x3E,0x42,0x4F,0x43,0x48,0x53,0x20,  /* 00000008    ".>BOCHS " */
ed51cc
+    0x42,0x58,0x50,0x43,0x20,0x20,0x20,0x20,  /* 00000010    "BXPC    " */
ed51cc
+    0x01,0x00,0x00,0x00,0x42,0x58,0x50,0x43,  /* 00000018    "....BXPC" */
ed51cc
+    0x01,0x00,0x00,0x00,0x00,0x00,0x20,0x00,  /* 00000020    "...... ." */
ed51cc
+    0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,  /* 00000028    "........" */
ed51cc
+    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD0,  /* 00000030    "........" */
ed51cc
+    0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,  /* 00000038    "........" */
ed51cc
+    0x00,0x00,0x00,0x00                       /* 00000040    "...."     */
ed51cc
+};
ed51cc
+
ed51cc
 const unsigned char TemplateCpep[] =
ed51cc
 {
ed51cc
     0x43,0x50,0x45,0x50,0x34,0x00,0x00,0x00,  /* 00000000    "CPEP4..." */