Christian Costa : winedos: Document CMOS image bytes.

Alexandre Julliard julliard at winehq.org
Tue Dec 30 06:57:05 CST 2008


Module: wine
Branch: master
Commit: 3ae00dafe3fb0d0ed1cf1548305556f3f613020b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3ae00dafe3fb0d0ed1cf1548305556f3f613020b

Author: Christian Costa <titan.costa at wanadoo.fr>
Date:   Tue Dec 30 12:19:14 2008 +0100

winedos: Document CMOS image bytes.

---

 dlls/winedos/ioports.c |   72 ++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 64 insertions(+), 8 deletions(-)

diff --git a/dlls/winedos/ioports.c b/dlls/winedos/ioports.c
index bd73af4..d03a4cd 100644
--- a/dlls/winedos/ioports.c
+++ b/dlls/winedos/ioports.c
@@ -72,14 +72,70 @@ static BYTE cmosaddress;
  */
 static BYTE cmosimage[64] =
 {
-  0x27, 0x34, 0x31, 0x47, 0x16, 0x15, 0x00, 0x01,
-  0x04, 0x94, 0x26, 0x02, 0x50, 0x80, 0x00, 0x00,
-  0x40, 0xb1, 0x00, 0x9c, 0x01, 0x80, 0x02, 0x00,
-  0x1c, 0x00, 0x00, 0xad, 0x02, 0x10, 0x00, 0x00,
-  0x08, 0x00, 0x00, 0x26, 0x00, 0x00, 0x00, 0x00,
-  0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x03, 0x19,  /* last 2 bytes are checksum */
-  0x00, 0x1c, 0x19, 0x81, 0x00, 0x0e, 0x00, 0x80,
-  0x1b, 0x7b, 0x21, 0x00, 0x00, 0x00, 0x05, 0x5f
+  0x27, /* 0x00: seconds */
+  0x34, /* 0X01: seconds alarm */
+  0x31, /* 0x02: minutes */
+  0x47, /* 0x03: minutes alarm */
+  0x16, /* 0x04: hour */
+  0x15, /* 0x05: hour alarm */
+  0x00, /* 0x06: week day */
+  0x01, /* 0x07: month day */
+  0x04, /* 0x08: month */
+  0x94, /* 0x09: year */
+  0x26, /* 0x0a: state A */
+  0x02, /* 0x0b: state B */
+  0x50, /* 0x0c: state C */
+  0x80, /* 0x0d: state D */
+  0x00, /* 0x0e: state diagnostic */
+  0x00, /* 0x0f: state state shutdown */
+  0x40, /* 0x10: floppy type */
+  0xb1, /* 0x11: reserved */
+  0x00, /* 0x12: HD type */
+  0x9c, /* 0x13: reserved */
+  0x01, /* 0x14: equipment */
+  0x80, /* 0x15: low base memory */
+  0x02, /* 0x16: high base memory (0x280 => 640KB) */
+  0x00, /* 0x17: low extended memory */
+  0x1c, /* 0x18: high extended memory (0x1c00 => 7MB) */
+  0x00, /* 0x19: HD 1 extended type byte */
+  0x00, /* 0x1a: HD 2 extended type byte */
+  0xad, /* 0x1b: reserved */
+  0x02, /* 0x1c: reserved */
+  0x10, /* 0x1d: reserved */
+  0x00, /* 0x1e: reserved */
+  0x00, /* 0x1f: installed features */
+  0x08, /* 0x20: HD 1 low cylinder number */
+  0x00, /* 0x21: HD 1 high cylinder number */
+  0x00, /* 0x22: HD 1 heads */
+  0x26, /* 0x23: HD 1 low pre-compensation start */
+  0x00, /* 0x24: HD 1 high pre-compensation start */
+  0x00, /* 0x25: HD 1 low landing zone */
+  0x00, /* 0x26: HD 1 high landing zone */
+  0x00, /* 0x27: HD 1 sectors */
+  0x00, /* 0x28: options 1 */
+  0x00, /* 0x29: reserved */
+  0x00, /* 0x2a: reserved */
+  0x00, /* 0x2b: options 2 */
+  0x00, /* 0x2c: options 3 */
+  0x3f, /* 0x2d: reserved  */
+  0x03, /* 0x2e: low CMOS ram checksum */
+  0x19, /* 0x2f: high CMOS ram checksum */
+  0x00, /* 0x30: low extended memory byte */
+  0x1c, /* 0x31: high extended memory byte */
+  0x19, /* 0x32: century byte */
+  0x81, /* 0x33: setup information */
+  0x00, /* 0x34: CPU speed */
+  0x0e, /* 0x35: HD 2 low cylinder number */
+  0x00, /* 0x36: HD 2 high cylinder number */
+  0x80, /* 0x37: HD 2 heads */
+  0x1b, /* 0x38: HD 2 low pre-compensation start */
+  0x7b, /* 0x39: HD 2 high pre-compensation start */
+  0x21, /* 0x3a: HD 2 low landing zone */
+  0x00, /* 0x3b: HD 2 high landing zone */
+  0x00, /* 0x3c: HD 2 sectors */
+  0x00, /* 0x3d: reserved */
+  0x05, /* 0x3e: reserved */
+  0x5f  /* 0x3f: reserved */
 };
 
 #if 0




More information about the wine-cvs mailing list