summaryrefslogtreecommitdiff
path: root/kernel/inc/kernel.h
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2016-06-01 19:37:09 -0700
committerScott Gasch <[email protected]>2016-06-01 19:37:09 -0700
commit0a41dae5f406d498b5c9ab1542cb5660e0d982f6 (patch)
tree67ade9fe31cfd0458cc485e95550f7aaf14abdd1 /kernel/inc/kernel.h
Initial checkin of toy OS project.HEADmaster
Diffstat (limited to 'kernel/inc/kernel.h')
-rw-r--r--kernel/inc/kernel.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/kernel/inc/kernel.h b/kernel/inc/kernel.h
new file mode 100644
index 0000000..7172401
--- /dev/null
+++ b/kernel/inc/kernel.h
@@ -0,0 +1,43 @@
+//+----------------------------------------------------------------------------
+//
+// File: kernel.h
+//
+// Module:
+//
+// Synopsis:
+//
+// Created: sgasch 5 Jul 2003
+//
+//+----------------------------------------------------------------------------
+
+#ifndef _KERNEL_H_
+#define _KERNEL_H_
+
+#include "types.h"
+#include "constants.h"
+#include "macros.h"
+
+//
+// Shared data structures
+//
+typedef struct _BIOS_HARDWARE_BLOCK
+{
+ BYTE bDisplayType;
+ BYTE bFontSize;
+ WORD wEquipmentBitvector;
+ WORD wMemorySize;
+ WORD wSystemClock;
+}
+BIOS_HARDWARE_BLOCK;
+
+// Write a byte to an I/O port.
+void
+out(WORD port, BYTE value);
+
+BYTE
+in(WORD port);
+
+void
+iodelay(void);
+
+#endif /* _KERNEL_H_ */