add missing header git-svn-id: svn://coreboot.org/openbios/fcode-utils@75 f158a5a8-5612-0410-a976-696ce0be7e32
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
diff --git a/romheaders/romheaders.c b/romheaders/romheaders.c
index 9e01062..e2d3646 100644
--- a/romheaders/romheaders.c
+++ b/romheaders/romheaders.c
@@ -1,3 +1,27 @@
+/*
+ * OpenBIOS - free your system!
+ * ( romheaders utility )
+ *
+ * This program is part of a free implementation of the IEEE 1275-1994
+ * Standard for Boot (Initialization Configuration) Firmware.
+ *
+ * Copyright (C) 2001-2005 Stefan Reinauer, <stepan@openbios.org>
+ * Copyright (C) 2006 coresystems GmbH <info@coresystems.de>
+ *
+ * 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; version 2 of the License.
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
+ *
+ */
#include <stdio.h>
@@ -12,9 +36,6 @@
#define PCI_DATA_HDR (u32) ( ('R' << 24) | ('I' << 16) | ('C' << 8) | 'P' )
-char *rom=NULL;
-size_t romlen=0;
-
typedef struct {
u16 signature;
u8 reserved[0x16];
@@ -37,6 +58,8 @@ typedef struct {
u16 reserved_2;
} pci_data_t;
+char *rom=NULL;
+size_t romlen=0;
/* make this endian safe without fancy system headers */
static u16 little_word(u16 val)