ia64/xen-unstable

changeset 3884:8406b26684e2

bitkeeper revision 1.1230.2.2 (421a8798mvsMIGmWCHsDOB-iq7xzGg)

Bring back the console_{putc,getc} set of functions, which
export access to the console without exporting the sercon_handle.
Signed-off-by: chris@xensource.com
author cl349@arcadians.cl.cam.ac.uk
date Tue Feb 22 01:15:04 2005 +0000 (2005-02-22)
parents 2fd53607c7ee
children e417ab6438a7
files xen/drivers/char/console.c xen/include/xen/console.h
line diff
     1.1 --- a/xen/drivers/char/console.c	Tue Feb 22 01:13:03 2005 +0000
     1.2 +++ b/xen/drivers/char/console.c	Tue Feb 22 01:15:04 2005 +0000
     1.3 @@ -466,6 +466,20 @@ void console_force_lock(void)
     1.4      spin_lock(&console_lock);
     1.5  }
     1.6  
     1.7 +void console_putc(char c)
     1.8 +{
     1.9 +    serial_putc(sercon_handle, c);
    1.10 +}
    1.11 +
    1.12 +int console_getc(void)
    1.13 +{
    1.14 +    return serial_getc(sercon_handle);
    1.15 +}
    1.16 +
    1.17 +int irq_console_getc(void)
    1.18 +{
    1.19 +    return irq_serial_getc(sercon_handle);
    1.20 +}
    1.21  
    1.22  
    1.23  /*
     2.1 --- a/xen/include/xen/console.h	Tue Feb 22 01:13:03 2005 +0000
     2.2 +++ b/xen/include/xen/console.h	Tue Feb 22 01:15:04 2005 +0000
     2.3 @@ -22,4 +22,8 @@ void console_endboot(int disable_vga);
     2.4  void console_force_unlock(void);
     2.5  void console_force_lock(void);
     2.6  
     2.7 +void console_putc(char c);
     2.8 +int console_getc(void);
     2.9 +int irq_console_getc(void);
    2.10 +
    2.11  #endif /* __CONSOLE_H__ */