PageRenderTime 29ms CodeModel.GetById 23ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/arch/arm/mach-iop13xx/include/mach/uncompress.h

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase
C++ Header | 23 lines | 16 code | 4 blank | 3 comment | 2 complexity | c7fd05ebabdd6c7e3674bef890b66520 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 1#include <asm/types.h>
 2#include <linux/serial_reg.h>
 3#include <mach/hardware.h>
 4
 5#define UART_BASE ((volatile u32 *)IOP13XX_UART1_PHYS)
 6#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
 7
 8static inline void putc(char c)
 9{
10	while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE)
11		barrier();
12	UART_BASE[UART_TX] = c;
13}
14
15static inline void flush(void)
16{
17}
18
19/*
20 * nothing to do
21 */
22#define arch_decomp_setup()
23#define arch_decomp_wdog()