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.


c04c1a94d3f28b916b63d78d83c751c057864344
[palacios.git] / palacios / include / geekos / serial.h
1 #ifndef SERIAL_H
2 #define SERIAL_H
3
4 #include <geekos/irq.h>
5 #include <geekos/string.h>
6 #include <geekos/io.h>
7 #include <geekos/screen.h>
8
9 #define COM1_IRQ 4
10 #define DEFAULT_SERIAL_ADDR 0x3F8
11
12
13 #ifndef SERIAL_PRINT_DEBUG_LEVEL
14 #define SERIAL_PRINT_DEBUG_LEVEL  10
15 #endif
16
17
18
19 void SerialPrint(const char * format, ...);
20 void SerialPrintLevel(int level, const char * format, ...);
21 void SerialPrintList(const char * format, va_list ap);
22
23 void SerialPutLine(char * line); 
24 void SerialPutLineN(char * line, int len);
25
26
27 void SerialPrintHex(unsigned char x);
28 void SerialMemDump(unsigned char *start, int n);
29
30 void Init_Serial();
31 void InitSerialAddr(unsigned short io_addr);
32
33 #endif