]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/lib/tables.c
x86: fsp: Add FSP_GRAPHICS_INFO_HOB
[u-boot] / arch / x86 / lib / tables.c
index f92111e4c8a075caaf4368c52c8623e6c3369d68..4f5fe74288209594017f456cea2fc2ac94ce170a 100644 (file)
@@ -5,9 +5,9 @@
  */
 
 #include <common.h>
+#include <smbios.h>
 #include <asm/sfi.h>
 #include <asm/mpspec.h>
-#include <asm/smbios.h>
 #include <asm/tables.h>
 #include <asm/acpi_table.h>
 #include <asm/coreboot_tables.h>
@@ -18,7 +18,7 @@
  * @addr:      start address to write the table
  * @return:    end address of the table
  */
-typedef u32 (*table_write)(u32 addr);
+typedef ulong (*table_write)(ulong addr);
 
 static table_write table_write_funcs[] = {
 #ifdef CONFIG_GENERATE_PIRQ_TABLE
@@ -38,18 +38,6 @@ static table_write table_write_funcs[] = {
 #endif
 };
 
-u8 table_compute_checksum(void *v, int len)
-{
-       u8 *bytes = v;
-       u8 checksum = 0;
-       int i;
-
-       for (i = 0; i < len; i++)
-               checksum -= bytes[i];
-
-       return checksum;
-}
-
 void table_fill_string(char *dest, const char *src, size_t n, char pad)
 {
        int start, len;