diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-08-27 11:23:06 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-08-27 11:23:06 +0000 |
commit | b883d4c433e39bfeb12060bc7c2662d099d0534d (patch) | |
tree | 29ba462f233167f0b92ad0b2dbe6139a0bd0567b /src/arch/i386/boot | |
parent | 98457a5f3cb99518a458dce24979aff23fe9dcd9 (diff) | |
download | coreboot-b883d4c433e39bfeb12060bc7c2662d099d0534d.tar.xz |
Make all those locally used functions static instead of exporting them. (triv)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4593 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/boot')
-rw-r--r-- | src/arch/i386/boot/coreboot_table.c | 47 | ||||
-rw-r--r-- | src/arch/i386/boot/coreboot_table.h | 6 |
2 files changed, 35 insertions, 18 deletions
diff --git a/src/arch/i386/boot/coreboot_table.c b/src/arch/i386/boot/coreboot_table.c index 6c7693c9f4..6d59123282 100644 --- a/src/arch/i386/boot/coreboot_table.c +++ b/src/arch/i386/boot/coreboot_table.c @@ -1,5 +1,28 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2003-2004 Eric Biederman + * Copyright (C) 2005-2009 coresystems GmbH + * + * 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 <console/console.h> #include <ip_checksum.h> +#include <boot/tables.h> #include <boot/coreboot_tables.h> #include "coreboot_table.h" #include <string.h> @@ -7,7 +30,7 @@ #include <device/device.h> #include <stdlib.h> -struct lb_header *lb_table_init(unsigned long addr) +static struct lb_header *lb_table_init(unsigned long addr) { struct lb_header *header; @@ -28,27 +51,27 @@ struct lb_header *lb_table_init(unsigned long addr) return header; } -struct lb_record *lb_first_record(struct lb_header *header) +static struct lb_record *lb_first_record(struct lb_header *header) { struct lb_record *rec; rec = (void *)(((char *)header) + sizeof(*header)); return rec; } -struct lb_record *lb_last_record(struct lb_header *header) +static struct lb_record *lb_last_record(struct lb_header *header) { struct lb_record *rec; rec = (void *)(((char *)header) + sizeof(*header) + header->table_bytes); return rec; } -struct lb_record *lb_next_record(struct lb_record *rec) +static struct lb_record *lb_next_record(struct lb_record *rec) { rec = (void *)(((char *)rec) + rec->size); return rec; } -struct lb_record *lb_new_record(struct lb_header *header) +static struct lb_record *lb_new_record(struct lb_header *header) { struct lb_record *rec; rec = lb_last_record(header); @@ -63,7 +86,7 @@ struct lb_record *lb_new_record(struct lb_header *header) } -struct lb_memory *lb_memory(struct lb_header *header) +static struct lb_memory *lb_memory(struct lb_header *header) { struct lb_record *rec; struct lb_memory *mem; @@ -74,7 +97,7 @@ struct lb_memory *lb_memory(struct lb_header *header) return mem; } -struct lb_serial *lb_serial(struct lb_header *header) +static struct lb_serial *lb_serial(struct lb_header *header) { #if defined(CONFIG_TTYS0_BASE) struct lb_record *rec; @@ -91,7 +114,7 @@ struct lb_serial *lb_serial(struct lb_header *header) #endif } -void add_console(struct lb_header *header, u16 consoletype) +static void add_console(struct lb_header *header, u16 consoletype) { struct lb_console *console; @@ -101,7 +124,7 @@ void add_console(struct lb_header *header, u16 consoletype) console->type = consoletype; } -void lb_console(struct lb_header *header) +static void lb_console(struct lb_header *header) { #ifdef CONFIG_CONSOLE_SERIAL8250 add_console(header, LB_TAG_CONSOLE_SERIAL8250); @@ -147,7 +170,7 @@ struct lb_mainboard *lb_mainboard(struct lb_header *header) return mainboard; } -struct cmos_checksum *lb_cmos_checksum(struct lb_header *header) +static struct cmos_checksum *lb_cmos_checksum(struct lb_header *header) { struct lb_record *rec; struct cmos_checksum *cmos_checksum; @@ -165,7 +188,7 @@ struct cmos_checksum *lb_cmos_checksum(struct lb_header *header) return cmos_checksum; } -void lb_strings(struct lb_header *header) +static void lb_strings(struct lb_header *header) { static const struct { uint32_t tag; @@ -195,7 +218,7 @@ void lb_strings(struct lb_header *header) } -struct lb_forward *lb_forward(struct lb_header *header, struct lb_header *next_header) +static struct lb_forward *lb_forward(struct lb_header *header, struct lb_header *next_header) { struct lb_record *rec; struct lb_forward *forward; diff --git a/src/arch/i386/boot/coreboot_table.h b/src/arch/i386/boot/coreboot_table.h index 9a9be84d43..98836c41b5 100644 --- a/src/arch/i386/boot/coreboot_table.h +++ b/src/arch/i386/boot/coreboot_table.h @@ -8,12 +8,6 @@ unsigned long write_coreboot_table( unsigned long low_table_start, unsigned long low_table_end, unsigned long rom_table_start, unsigned long rom_table_end); -struct lb_header *lb_table_init(unsigned long addr); -struct lb_record *lb_first_record(struct lb_header *header); -struct lb_record *lb_last_record(struct lb_header *header); -struct lb_record *lb_next_record(struct lb_record *rec); -struct lb_record *lb_new_record(struct lb_header *header); -struct lb_memory *lb_memory(struct lb_header *header); void lb_memory_range(struct lb_memory *mem, uint32_t type, uint64_t start, uint64_t size); struct lb_mainboard *lb_mainboard(struct lb_header *header); |