Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
[pandora-kernel.git] / arch / arm / mach-aaec2000 / include / mach / debug-macro.S
1 /*  arch/arm/mach-aaec2000/include/mach/debug-macro.S
2  *
3  *  Debugging macro include header
4  *
5  *  Copyright (c) 2005 Nicolas Bellido Y Ortega
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License version 2 as
9  *  published by the Free Software Foundation.
10  */
11
12 #include "hardware.h"
13                 .macro  addruart, rp, rv
14                 mov     \rp, 0x00000800
15                 orr     \rv, \rp, #io_p2v(0x80000000)   @ virtual
16                 orr     \rp, \rp, #0x80000000           @ physical
17                 .endm
18
19                 .macro  senduart,rd,rx
20                 str     \rd, [\rx, #0]
21                 .endm
22
23                 .macro  busyuart,rd,rx
24 1002:           ldr     \rd, [\rx, #0x10]
25                 tst     \rd, #(1 << 7)
26                 beq     1002b
27                 .endm
28
29                 .macro  waituart,rd,rx
30 #if 0
31 1001:           ldr     \rd, [\rx, #0x10]
32                 tst     \rd, #(1 << 5)
33                 beq     1001b
34 #endif
35                 .endm