source: xtideuniversalbios/trunk/Assembly_Library/Inc/CMOS.inc @ 593

Last change on this file since 593 was 593, checked in by aitotat, 3 years ago

Flashing now works again.
Hack to get Windows 95 to work properly (MODULE_WIN95_CMOS_HACK included for 386 builds by default).
Edited makefile to produce large 386 build.
Fixed recovery time for QDI Vision VLB-IDE controllers.
No more warnings with Nasm 2.13.xx and later.
File dialog now properly restores default drive when file selection is cancelled.

File size: 1.7 KB
Line 
1; Project name  :   Assembly Library
2; Description   :   Defines for accessing CMOS.
3
4;
5; XTIDE Universal BIOS and Associated Tools
6; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2018 by XTIDE Universal BIOS Team.
7;
8; This program is free software; you can redistribute it and/or modify
9; it under the terms of the GNU General Public License as published by
10; the Free Software Foundation; either version 2 of the License, or
11; (at your option) any later version.
12;
13; This program is distributed in the hope that it will be useful,
14; but WITHOUT ANY WARRANTY; without even the implied warranty of
15; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16; GNU General Public License for more details.
17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18;
19
20%ifndef CMOS_INC
21%define CMOS_INC
22
23; CMOS Ports
24; Note that a data register read or write must follow every write to the address register
25CMOS_INDEX_REGISTER             EQU     70h     ; Is this write only?
26CMOS_DATA_REGISTER              EQU     71h
27
28FLG_CMOS_INDEX_NMI_DISABLE      EQU     (1<<7)  ; CMOS Index Register bit 7 is NMI disable/enable bit
29
30
31; Almost all of the CMOS locations are vendor specific and
32; there is very little standardation
33HARD_DISK_TYPES                 EQU     12h     ; Windows 95 reads this to check if IDE drives
34                                                ; are present so it should be safe to access this.
35                                                ; Bits 0...3 Hard Disk 1 type (Primary Slave)
36                                                ; Bits 4...7 Hard Disk 0 type (Primary Master)
37                                                ; Fh = Types 16...47 (defined elsewhere in CMOS)
38CHECKSUM_OF_BYTES_10hTo2Dh_LOW  EQU     2Fh     ; Most BIOSes store checksum of bytes 10h to 2Dh here
39CHECKSUM_OF_BYTES_10hTo2Dh_HIGH EQU     2Eh     ; High byte of the checksum
40
41
42%endif ; CMOS_INC
Note: See TracBrowser for help on using the repository browser.