ia64/xen-unstable

view xen/include/asm-ia64/serial.h @ 5704:9b73afea874e

Certain types of event channel are now auto-bound to vcpu0 by Xen.
Make sure that xenolinux agrees with this.
author sos22@douglas.cl.cam.ac.uk
date Fri Jul 08 15:35:43 2005 +0000 (2005-07-08)
parents 4c63d91b687f
children ed7e557deedd 97675c2dbb40 8799d14bef77 9312a3e8a6f8 dfaf788ab18c
line source
1 #ifndef __ASM_SERIAL_H__
2 #define __ASM_SERIAL_H__
4 #include <asm/regs.h>
5 #include <asm/irq.h>
6 #include <xen/serial.h>
7 #include <asm/hpsim_ssc.h>
9 #ifndef CONFIG_VTI
10 #define arch_serial_putc(_uart, _c) \
11 ( platform_is_hp_ski() ? (ia64_ssc(c,0,0,0,SSC_PUTCHAR), 1) : \
12 ( longs_peak_putc(c), 1 ))
13 #else
14 #define arch_serial_putc(_uart, _c) \
15 ( platform_is_hp_ski() ? (ia64_ssc(c,0,0,0,SSC_PUTCHAR), 1) : \
16 ( (inb((_uart)->io_base + LSR) & LSR_THRE) ? \
17 (outb((_c), (_uart)->io_base + THR), 1) : 0 ))
18 #endif
20 #endif /* __ASM_SERIAL_H__ */