From 655ac91c5db8818c7cef7e9e44febaf36459d394 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Thu, 25 Dec 2014 16:01:17 -0500 Subject: ich9deblob: add ich9deblob.h for ich9deblob.c --- (limited to 'resources/utilities') 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 -#include - -#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 + * Francis Rowe + * + * 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 . + */ + +#ifndef ICH9DEBLOB_H +#define ICH9DEBLOB_H + +#include +#include + +#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 -- cgit v0.9.1