Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
uncompress.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 Broadcom
3  * Copyright (C) 2003 ARM Limited
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
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 
16 #include <linux/io.h>
17 #include <linux/amba/serial.h>
18 #include <mach/bcm2835_soc.h>
19 
20 #define UART0_BASE BCM2835_DEBUG_PHYS
21 
22 #define BCM2835_UART_DR IOMEM(UART0_BASE + UART01x_DR)
23 #define BCM2835_UART_FR IOMEM(UART0_BASE + UART01x_FR)
24 #define BCM2835_UART_CR IOMEM(UART0_BASE + UART011_CR)
25 
26 static inline void putc(int c)
27 {
29  barrier();
30 
32 }
33 
34 static inline void flush(void)
35 {
36  int fr;
37 
38  do {
40  barrier();
41  } while ((fr & (UART011_FR_TXFE | UART01x_FR_BUSY)) != UART011_FR_TXFE);
42 }
43 
44 #define arch_decomp_setup()
45 #define arch_decomp_wdog()