Annotation of Gnu-Mach/xen/console.h, revision 1.1.1.4

1.1       root        1: /*
                      2:  *  Copyright (C) 2006-2009, 2011 Free Software Foundation
                      3:  *
                      4:  * This program is free software ; you can redistribute it and/or modify
                      5:  * it under the terms of the GNU General Public License as published by
                      6:  * the Free Software Foundation ; either version 2 of the License, or
                      7:  * (at your option) any later version.
                      8:  *
                      9:  * This program is distributed in the hope that it will be useful,
                     10:  * but WITHOUT ANY WARRANTY ; without even the implied warranty of
                     11:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
                     12:  * GNU General Public License for more details.
                     13:  *
                     14:  * You should have received a copy of the GNU General Public License
                     15:  * along with the program ; if not, write to the Free Software
                     16:  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
                     17:  */
                     18: 
                     19: #ifndef XEN_CONSOLE_H
                     20: #define XEN_CONSOLE_H
                     21: #include <machine/xen.h>
                     22: #include <string.h>
                     23: 
1.1.1.2   root       24: #include <mach/port.h>
1.1       root       25: #include <device/cons.h>
1.1.1.2   root       26: #include <device/io_req.h>
1.1       root       27: 
                     28: #define hyp_console_write(str, len)    hyp_console_io (CONSOLEIO_write, (len), kvtolin(str))
                     29: 
                     30: #define hyp_console_put(str) ({ \
                     31:        const char *__str = (void*) (str); \
                     32:        hyp_console_write (__str, strlen (__str)); \
                     33: })
                     34: 
                     35: extern void hyp_console_init(void);
                     36: 
                     37: extern int hypcnputc(dev_t dev, int c);
                     38: extern int hypcngetc(dev_t dev, int wait);
                     39: extern int hypcnprobe(struct consdev *cp);
                     40: extern int hypcninit(struct consdev *cp);
                     41: 
1.1.1.2   root       42: extern int hypcnopen(dev_t dev, int flag, io_req_t ior);
1.1.1.3   root       43: extern int hypcnread(dev_t dev, io_req_t ior);
                     44: extern int hypcnwrite(dev_t dev, io_req_t ior);
1.1.1.4 ! root       45: extern void hypcnclose(dev_t dev, int flag);
1.1.1.2   root       46: extern io_return_t hypcngetstat(dev_t dev, int flavor, int *data, unsigned int *count);
                     47: extern io_return_t hypcnsetstat(dev_t dev, int flavor, int *data, unsigned int count);
                     48: extern int hypcnportdeath(dev_t dev, mach_port_t port);
                     49: 
1.1       root       50: #endif /* XEN_CONSOLE_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.