Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 29e8c3c304b62f31b799565c9ee85d42bd163f80 authored by Linus Torvalds on 05 March 2008, 04:33:54 UTC
Linux 2.6.25-rc4
Tip revision: 29e8c3c
uncompress.h
#include <asm/types.h>
#include <linux/serial_reg.h>
#include <asm/hardware.h>

#define UART_BASE ((volatile u32 *)IOP13XX_UART1_PHYS)
#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)

static inline void putc(char c)
{
	while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE)
		barrier();
	UART_BASE[UART_TX] = c;
}

static inline void flush(void)
{
}

/*
 * nothing to do
 */
#define arch_decomp_setup()
#define arch_decomp_wdog()
back to top