summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cbfs.c3
-rw-r--r--src/lib/clog2.c4
-rw-r--r--src/lib/lzma.c3
-rw-r--r--src/lib/xmodem.c5
4 files changed, 5 insertions, 10 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 876f6352e0..5f24faf20f 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <console/console.h>
#include <cbfs.h>
+#include <lib.h>
#ifndef CONFIG_BIG_ENDIAN
#define ntohl(x) ( ((x&0xff)<<24) | ((x&0xff00)<<8) | \
@@ -29,8 +30,6 @@
#define ntohl(x) (x)
#endif
-unsigned long ulzma(unsigned char *src, unsigned char *dst);
-
int cbfs_decompress(int algo, void *src, void *dst, int len)
{
switch(algo) {
diff --git a/src/lib/clog2.c b/src/lib/clog2.c
index f7c6e59284..740b8d9f74 100644
--- a/src/lib/clog2.c
+++ b/src/lib/clog2.c
@@ -4,11 +4,11 @@
#include <console/console.h>
#endif
+#include <lib.h>
+
/* Assume 8 bits per byte */
#define CHAR_BIT 8
-unsigned long log2(unsigned long x);
-
unsigned long log2(unsigned long x)
{
// assume 8 bits per byte.
diff --git a/src/lib/lzma.c b/src/lib/lzma.c
index 03ca16399a..fc533c03f1 100644
--- a/src/lib/lzma.c
+++ b/src/lib/lzma.c
@@ -13,8 +13,7 @@ SDK 4.42, which is written and distributed to public domain by Igor Pavlov.
#include "lzmadecode.c"
#include <console/console.h>
#include <string.h>
-
-unsigned long ulzma(unsigned char * src, unsigned char * dst);
+#include <lib.h>
unsigned long ulzma(unsigned char * src, unsigned char * dst)
{
diff --git a/src/lib/xmodem.c b/src/lib/xmodem.c
index bcbe23274b..465d6670a3 100644
--- a/src/lib/xmodem.c
+++ b/src/lib/xmodem.c
@@ -19,10 +19,7 @@
#include <string.h>
#include <delay.h>
-
-extern void uart8250_tx_byte(unsigned, unsigned char);
-extern int uart8250_can_rx_byte(unsigned);
-extern unsigned char uart8250_rx_byte(unsigned);
+#include <uart8250.h>
static int _inbyte(int msec)
{