summaryrefslogtreecommitdiff
path: root/sys/src/cmd/vmx/dat.h
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2017-06-27 09:21:30 +0000
committeraiju <devnull@localhost>2017-06-27 09:21:30 +0000
commitdffbc1e45d61bb928ea6a9d0b1206d641daf24fe (patch)
tree8a80a3a2c7e964fc89b8776a6dd8326f545a53dc /sys/src/cmd/vmx/dat.h
parentb5a6dc7849cbd9f1fd23183ba46f0d5deb24e81d (diff)
vmx(1): I/O string instructions, incomplete support for IDE disks, misc fixes
Diffstat (limited to 'sys/src/cmd/vmx/dat.h')
-rw-r--r--sys/src/cmd/vmx/dat.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/src/cmd/vmx/dat.h b/sys/src/cmd/vmx/dat.h
index f34fd3164..34c2fd888 100644
--- a/sys/src/cmd/vmx/dat.h
+++ b/sys/src/cmd/vmx/dat.h
@@ -112,3 +112,32 @@ struct VgaMode {
u32int chan;
VgaMode *next;
};
+
+extern uchar cmos[0x30];
+
+extern void (*kconfig)(void);
+
+/* arguments for x86access */
+enum {
+ SEGCS,
+ SEGDS,
+ SEGES,
+ SEGFS,
+ SEGGS,
+ SEGSS,
+ SEGMAX,
+};
+
+enum {
+ ACCR,
+ ACCW,
+ ACCX,
+};
+
+/* used to speed up consecutive x86access calls */
+typedef struct TLB TLB;
+struct TLB {
+ int asz, seg, acc;
+ uintptr start, end;
+ uchar *base;
+};