2 * This file is part of the Palacios Virtual Machine Monitor developed
3 * by the V3VEE Project with funding from the United States National
4 * Science Foundation and the Department of Energy.
6 * The V3VEE Project is a joint project between Northwestern University
7 * and the University of New Mexico. You can find out more at
10 * Copyright (c) 2008, Peter Dinda <pdinda@northwestern.edu>
11 * Copyright (c) 2008, Jack Lange <jarusl@cs.northwestern.edu>
12 * Copyright (c) 2008, The V3VEE Project <http://www.v3vee.org>
13 * All rights reserved.
15 * Author: Peter Dinda <pdinda@northwestern.edu>
16 * Author: Jack Lange <jarusl@cs.northwestern.edu>
18 * This is free software. You are permitted to use,
19 * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
25 #include <geekos/irq.h>
26 #include <geekos/string.h>
27 #include <geekos/io.h>
28 #include <geekos/screen.h>
31 #define DEFAULT_SERIAL_ADDR 0x3F8
34 #ifndef SERIAL_PRINT_DEBUG_LEVEL
35 #define SERIAL_PRINT_DEBUG_LEVEL 10
38 void SerialPutChar(unsigned char c);
40 void SerialPrint(const char * format, ...);
41 void SerialPrintLevel(int level, const char * format, ...);
42 void SerialPrintList(const char * format, va_list ap);
44 void SerialPutLine(char * line);
45 void SerialPutLineN(char * line, int len);
48 void SerialPrintHex(unsigned char x);
49 void SerialMemDump(unsigned char *start, int n);
52 void InitSerialAddr(unsigned short io_addr);