Initial checkin of toy OS project.
[os.git] / kernel / inc / kernel.h
1 //+----------------------------------------------------------------------------
2 //
3 // File:     kernel.h
4 //
5 // Module:   
6 //
7 // Synopsis: 
8 //
9 // Created:  sgasch  5 Jul 2003
10 //
11 //+----------------------------------------------------------------------------
12
13 #ifndef _KERNEL_H_
14 #define _KERNEL_H_
15
16 #include "types.h"
17 #include "constants.h"
18 #include "macros.h"
19
20 //
21 // Shared data structures
22 //
23 typedef struct _BIOS_HARDWARE_BLOCK
24 {
25     BYTE bDisplayType;
26     BYTE bFontSize;
27     WORD wEquipmentBitvector;
28     WORD wMemorySize;
29     WORD wSystemClock;
30 }
31 BIOS_HARDWARE_BLOCK;
32
33 // Write a byte to an I/O port.
34 void
35 out(WORD port, BYTE value);
36
37 BYTE
38 in(WORD port);
39
40 void
41 iodelay(void);
42
43 #endif /* _KERNEL_H_ */