aboutsummaryrefslogtreecommitdiff
path: root/resources/utilities/ich9deblob
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-25 21:01:17 +0000
committerFrancis Rowe <info@gluglug.org.uk>2014-12-25 21:01:17 +0000
commit655ac91c5db8818c7cef7e9e44febaf36459d394 (patch)
tree556efed4b89f3d7cfa94b75680249e80fdb7fd33 /resources/utilities/ich9deblob
parent0d688600303180bc06368de5ce0b1bd63c4603b5 (diff)
downloadlibrebootfr-655ac91c5db8818c7cef7e9e44febaf36459d394.tar.gz
librebootfr-655ac91c5db8818c7cef7e9e44febaf36459d394.zip
ich9deblob: add ich9deblob.h for ich9deblob.c
Diffstat (limited to 'resources/utilities/ich9deblob')
-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 c8b74c42..ee549d2d 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 00000000..a765bb5f
--- /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