Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


modified copyright tags
[palacios.git] / palacios / include / geekos / serial.h
1 /* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
2 /* (c) 2008, Peter Dinda <pdinda@northwestern.edu> */
3 /* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
4
5
6 #ifndef SERIAL_H
7 #define SERIAL_H
8
9 #include <geekos/irq.h>
10 #include <geekos/string.h>
11 #include <geekos/io.h>
12 #include <geekos/screen.h>
13
14 #define COM1_IRQ 4
15 #define DEFAULT_SERIAL_ADDR 0x3F8
16
17
18 #ifndef SERIAL_PRINT_DEBUG_LEVEL
19 #define SERIAL_PRINT_DEBUG_LEVEL  10
20 #endif
21
22 void SerialPutChar(unsigned char c);
23
24 void SerialPrint(const char * format, ...);
25 void SerialPrintLevel(int level, const char * format, ...);
26 void SerialPrintList(const char * format, va_list ap);
27
28 void SerialPutLine(char * line); 
29 void SerialPutLineN(char * line, int len);
30
31
32 void SerialPrintHex(unsigned char x);
33 void SerialMemDump(unsigned char *start, int n);
34
35 void Init_Serial();
36 void InitSerialAddr(unsigned short io_addr);
37
38 #endif