spawn implemented.
[mit-jos.git] / kern / console.h
blobd78a6e0f630fd662ce2526f75474cffad697365d
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 void cons_putc(int c);
22 int cons_getc(void);
24 void kbd_intr(void); // irq 1
25 void serial_intr(void); // irq 4
27 #endif /* _CONSOLE_H_ */