summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--resources/utilities/ich9deblob/ich9deblob.c8
-rw-r--r--resources/utilities/ich9deblob/ich9deblob.h37
2 files changed, 38 insertions, 7 deletions
diff --git a/resources/utilities/ich9deblob/ich9deblob.c b/resources/utilities/ich9deblob/ich9deblob.c
index c8b74c4..ee549d2 100644
--- a/resources/utilities/ich9deblob/ich9deblob.c
+++ b/resources/utilities/ich9deblob/ich9deblob.c
@@ -44,13 +44,7 @@
* https://communities.intel.com/community/wired/blog/2010/10/14/how-to-basic-eeprom-checksums
*/
-#include <stdio.h>
-#include <string.h>
-
-#include "common/descriptor_gbe.h" /* common descriptor/gbe functions used by ich9deblob */
-#include "common/x86compatibility.h" /* system/compiler compatibility checks. This code is not portable. */
-#include "descriptor/descriptor.h" /* structs describing what's in the descriptor region */
-#include "gbe/gbe.h" /* structs describing what's in the gbe region */
+#include "ich9deblob.h"
int main(int argc, char *argv[])
{
diff --git a/resources/utilities/ich9deblob/ich9deblob.h b/resources/utilities/ich9deblob/ich9deblob.h
new file mode 100644
index 0000000..a765bb5
--- /dev/null
+++ b/resources/utilities/ich9deblob/ich9deblob.h
@@ -0,0 +1,37 @@
+/*
+ * ich9deblob.h
+ * This file is part of the ich9deblob utility from the libreboot project
+ *
+ * Purpose: header file for ich9deblob.c
+ *
+ * Copyright (C) 2014 Steve Shenton <sgsit@libreboot.org>
+ * Francis Rowe <info@gluglug.org.uk>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef ICH9DEBLOB_H
+#define ICH9DEBLOB_H
+
+#include <stdio.h>
+#include <string.h>
+
+#include "common/descriptor_gbe.h" /* common descriptor/gbe functions used by ich9deblob */
+#include "common/x86compatibility.h" /* system/compiler compatibility checks. This code is not portable. */
+#include "descriptor/descriptor.h" /* structs describing what's in the descriptor region */
+#include "gbe/gbe.h" /* structs describing what's in the gbe region */
+
+int main(int argc, char *argv[]);
+
+#endif