[OpenBIOS] r75 - fcode-utils/romheaders
svn@openbios.org
svn at openbios.org
Fri Aug 18 11:45:11 CEST 2006
Author: stepan
Date: 2006-08-18 11:45:11 +0200 (Fri, 18 Aug 2006)
New Revision: 75
Modified:
fcode-utils/romheaders/romheaders.c
Log:
add missing header
Modified: fcode-utils/romheaders/romheaders.c
===================================================================
--- fcode-utils/romheaders/romheaders.c 2006-08-18 09:07:34 UTC (rev 74)
+++ fcode-utils/romheaders/romheaders.c 2006-08-18 09:45:11 UTC (rev 75)
@@ -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 at openbios.org>
+ * Copyright (C) 2006 coresystems GmbH <info at 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 @@
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)
More information about the OpenBIOS
mailing list