1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 14:14:38 +02:00

add-kboot-h.patch

kboot.h includes the common things and some externs

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2008-08-13 00:36:46 +01:00
parent ae53877e7f
commit 072c9da010
4 changed files with 16 additions and 3 deletions

View File

@ -20,7 +20,6 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <stdarg.h>
#ifndef __SERIAL_H__ #ifndef __SERIAL_H__
#define __SERIAL_H__ #define __SERIAL_H__

14
qiboot/src/kboot.h Normal file
View File

@ -0,0 +1,14 @@
#ifndef __KBOOT_H__
#define __KBOOT_H__
#include <stdarg.h>
#include "serial.h"
#include "ctype.h"
int printk(const char *fmt, ...);
int vsprintf(char *buf, const char *fmt, va_list args);
void puts(const char *string);
#endif

View File

@ -20,8 +20,8 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include "serial.h"
#include "blink_led.h" #include "blink_led.h"
#include "kboot.h"
#define DEBUG_CONSOLE_UART 2 #define DEBUG_CONSOLE_UART 2

View File

@ -21,7 +21,7 @@
*/ */
#include "blink_led.h" #include "blink_led.h"
#include "nand_read.h" #include "nand_read.h"
#include "serial.h" #include "kboot.h"
/* /*
unsigned char buf[]={ unsigned char buf[]={
0x0d,0xc0,0xa0,0xe1,0x00,0xd8,0x2d,0xe9,0x04,0xb0,0x4c,0xe2,0x4c,0x20,0x9f,0xe5, 0x0d,0xc0,0xa0,0xe1,0x00,0xd8,0x2d,0xe9,0x04,0xb0,0x4c,0xe2,0x4c,0x20,0x9f,0xe5,