summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/apm_segments.h
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-10-01 05:05:10 +0000
committerdg <dg@FreeBSD.org>1994-10-01 05:05:10 +0000
commit602d8ee7321faccbb8e7c67d1d3992681686ef46 (patch)
tree63294757fc44311e6a91ef21d74aa0fb240568b3 /sys/i386/include/apm_segments.h
parenta8bebbdae6205ca292c16d8be0b973e9c149b101 (diff)
downloadFreeBSD-src-602d8ee7321faccbb8e7c67d1d3992681686ef46.zip
FreeBSD-src-602d8ee7321faccbb8e7c67d1d3992681686ef46.tar.gz
Woops, missed these two files; part of HOSOKAWA Tatsumi's APM support.
Diffstat (limited to 'sys/i386/include/apm_segments.h')
-rw-r--r--sys/i386/include/apm_segments.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/i386/include/apm_segments.h b/sys/i386/include/apm_segments.h
new file mode 100644
index 0000000..9da10e1
--- /dev/null
+++ b/sys/i386/include/apm_segments.h
@@ -0,0 +1,35 @@
+/*
+ * LP (Laptop Package)
+ *
+ * Copyright (C) 1994 by HOSOKAWA Tatsumi <hosokawa@mt.cs.keio.ac.jp>
+ *
+ * This software may be used, modified, copied, and distributed, in
+ * both source and binary form provided that the above copyright and
+ * these terms are retained. Under no circumstances is the author
+ * responsible for the proper functioning of this software, nor does
+ * the author assume any responsibility for damages incurred with its
+ * use.
+ *
+ * Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
+ */
+
+#ifndef _MACHINE_APM_SEGMENTS_H
+#define _MACHINE_APM_SEGMENTS_H
+
+#define SIZEOF_GDT 8
+#define BOOTSTRAP_GDT_NUM 32
+
+#define APM_INIT_CS_INDEX (BOOTSTRAP_GDT_NUM - 3)
+#define APM_INIT_DS_INDEX (BOOTSTRAP_GDT_NUM - 2)
+#define APM_INIT_CS16_INDEX (BOOTSTRAP_GDT_NUM - 1)
+#define APM_INIT_CS_SEL (APM_INIT_CS_INDEX << 3)
+#define APM_INIT_DS_SEL (APM_INIT_DS_INDEX << 3)
+#define APM_INIT_CS16_SEL (APM_INIT_CS16_INDEX << 3)
+
+#define CS32_ATTRIB 0x409e
+#define CS16_ATTRIB 0x009e
+#define DS32_ATTRIB 0x4092
+
+#define BOOTSTRAP_DS_SEL 0x10
+
+#endif
OpenPOWER on IntegriCloud