autofs_lookup(): hold ->d_lock over playing with ->d_flags
[sfrench/cifs-2.6.git] / arch / arm / mach-ks8695 / include / mach / uncompress.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * arch/arm/mach-ks8695/include/mach/uncompress.h
4  *
5  * Copyright (C) 2006 Ben Dooks <ben@simtec.co.uk>
6  * Copyright (C) 2006 Simtec Electronics
7  *
8  * KS8695 - Kernel uncompressor
9  */
10
11 #ifndef __ASM_ARCH_UNCOMPRESS_H
12 #define __ASM_ARCH_UNCOMPRESS_H
13
14 #include <linux/io.h>
15 #include <mach/regs-uart.h>
16
17 static inline void putc(char c)
18 {
19         while (!(__raw_readl((void __iomem*)KS8695_UART_PA + KS8695_URLS) & URLS_URTHRE))
20                 barrier();
21
22         __raw_writel(c, (void __iomem*)KS8695_UART_PA + KS8695_URTH);
23 }
24
25 static inline void flush(void)
26 {
27         while (!(__raw_readl((void __iomem*)KS8695_UART_PA + KS8695_URLS) & URLS_URTE))
28                 barrier();
29 }
30
31 #define arch_decomp_setup()
32
33 #endif