Myles Watson | 5817078 | 2009-10-28 16:13:28 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Uwe Hermann | c70e9fc | 2010-02-15 23:10:19 +0000 | [diff] [blame] | 4 | * Copyright (C) 2009 Myles Watson <mylesgw@gmail.com> |
Myles Watson | 5817078 | 2009-10-28 16:13:28 +0000 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | /* This file is for "nuisance prototypes" that have no other home. */ |
| 21 | |
Myles Watson | 3426195 | 2010-03-19 02:33:40 +0000 | [diff] [blame] | 22 | #ifndef __LIB_H__ |
| 23 | #define __LIB_H__ |
| 24 | |
| 25 | #ifndef __ROMCC__ /* romcc doesn't support prototypes. */ |
| 26 | |
| 27 | #ifndef __PRE_RAM__ /* Conflicts with romcc_io.h */ |
Myles Watson | 5817078 | 2009-10-28 16:13:28 +0000 | [diff] [blame] | 28 | /* Defined in src/lib/clog2.c */ |
| 29 | unsigned long log2(unsigned long x); |
Myles Watson | 3426195 | 2010-03-19 02:33:40 +0000 | [diff] [blame] | 30 | #endif |
Myles Watson | 5817078 | 2009-10-28 16:13:28 +0000 | [diff] [blame] | 31 | |
| 32 | /* Defined in src/lib/lzma.c */ |
| 33 | unsigned long ulzma(unsigned char *src, unsigned char *dst); |
| 34 | |
Stefan Reinauer | 8677a23 | 2010-12-11 20:33:41 +0000 | [diff] [blame] | 35 | /* Defined in src/arch/x86/boot/gdt.c */ |
Myles Watson | 5817078 | 2009-10-28 16:13:28 +0000 | [diff] [blame] | 36 | void move_gdt(void); |
| 37 | |
Myles Watson | 3426195 | 2010-03-19 02:33:40 +0000 | [diff] [blame] | 38 | /* Defined in src/lib/ramtest.c */ |
| 39 | void ram_check(unsigned long start, unsigned long stop); |
Myles Watson | b54deb7 | 2010-04-02 21:39:12 +0000 | [diff] [blame] | 40 | void quick_ram_check(void); |
Myles Watson | 3426195 | 2010-03-19 02:33:40 +0000 | [diff] [blame] | 41 | |
Myles Watson | 3426195 | 2010-03-19 02:33:40 +0000 | [diff] [blame] | 42 | /* Defined in romstage.c */ |
Stefan Reinauer | d4814bd | 2011-04-21 20:45:45 +0000 | [diff] [blame] | 43 | #if CONFIG_CPU_AMD_LX |
Myles Watson | 3426195 | 2010-03-19 02:33:40 +0000 | [diff] [blame] | 44 | void cache_as_ram_main(void); |
| 45 | #else |
| 46 | void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx); |
| 47 | #endif |
| 48 | |
| 49 | #endif /* __ROMCC__ */ |
| 50 | #endif /* __LIB_H__ */ |