1/* arch/arm/mach-goldfish/include/mach/debug-macro.S 2 * 3 * Copyright (C) 2009 Google, Inc. 4 * Author: David Turner <digit@google.com> 5 * 6 * This software is licensed under the terms of the GNU General Public 7 * License version 2, as published by the Free Software Foundation, and 8 * may be copied, distributed, and modified under those terms. 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 17#include <mach/hardware.h> 18 19#define GOLDFISH_TTY_PUT_CHAR_PHYS (IO_START + GOLDFISH_TTY_BASE) 20#define GOLDFISH_TTY_PUT_CHAR_BASE (IO_BASE + GOLDFISH_TTY_BASE) 21 22 .macro addruart, rp, rv, rtmp 23 ldr \rp, =GOLDFISH_TTY_PUT_CHAR_PHYS 24 ldr \rv, =GOLDFISH_TTY_PUT_CHAR_BASE 25 .endm 26 27 .macro senduart,rd,rx 28 teq \rx, #0 29 strne \rd, [\rx] 30 .endm 31 32 .macro waituart,rd,rx 33 .endm 34 35 .macro busyuart,rd,rx 36 .endm 37