* same with xv6
[mascara-docs.git] / i386 / MIT / course / src / git.lab / kern / console.h
blob3668626403e8782843561e350841dc8d493202cc
1 /* See COPYRIGHT for copyright information. */
3 #ifndef _CONSOLE_H_
4 #define _CONSOLE_H_
5 #ifndef JOS_KERNEL
6 # error "This is a JOS kernel header; user programs should not #include it"
7 #endif
9 #include <inc/types.h>
11 #define MONO_BASE 0x3B4
12 #define MONO_BUF 0xB0000
13 #define CGA_BASE 0x3D4
14 #define CGA_BUF 0xB8000
16 #define CRT_ROWS 25
17 #define CRT_COLS 80
18 #define CRT_SIZE (CRT_ROWS * CRT_COLS)
20 void cons_init(void);
21 int cons_getc(void);
23 void kbd_intr(void); // irq 1
24 void serial_intr(void); // irq 4
26 #endif /* _CONSOLE_H_ */