more changes on original files
[linux-2.4.git] / include / asm-arm / arch-mx1ads / uncompress.h
1 /*
2  *  linux/include/asm-arm/arch-mx1ads/uncompress.h
3  *
4  *
5  *
6  *  Copyright (C) 1999 ARM Limited
7  *  Copyright (C) Shane Nay (shane@minirl.com)
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  */
23
24 #define UA1_USR2        (*(volatile unsigned char *)0x206098)
25 #define UA1_TXR         (*(volatile unsigned char *)0x206040)
26 #define TXFEBIT         (14)
27
28 /*
29  * This does not append a newline
30  */
31 static void puts(const char *s)
32 {
33         while (*s) {
34                 while (UA1_USR2 & (1 << TXFEBIT))
35                         barrier();
36
37                 UA1_TXR = *s;
38
39                 if (*s == '\n') {
40                         while (UA1_USR2 & (1 << TXFEBIT))
41                                 barrier();
42
43                         UA1_TXR = '\r';
44                 }
45                 s++;
46         }
47         while (UA1_USR2 & (1 << TXFEBIT))
48                 barrier();
49 }
50
51 /*
52  * nothing to do
53  */
54 #define arch_decomp_setup()
55
56 #define arch_decomp_wdog()