Changeset 380 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS


Ignore:
Timestamp:
Apr 8, 2012, 6:17:37 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes:

  • Added code to XTIDECFG for Power Management (standby timer) support in the BIOS.
  • Some minor optimizations.
Location:
trunk/XTIDE_Universal_BIOS
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Inc/IdeRegisters.inc

    r376 r380  
    33
    44;
    5 ; XTIDE Universal BIOS and Associated Tools 
     5; XTIDE Universal BIOS and Associated Tools
    66; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
    77;
     
    1010; the Free Software Foundation; either version 2 of the License, or
    1111; (at your option) any later version.
    12 ; 
     12;
    1313; This program is distributed in the hope that it will be useful,
    1414; but WITHOUT ANY WARRANTY; without even the implied warranty of
    1515; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16 ; GNU General Public License for more details.     
     16; GNU General Public License for more details.
    1717; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    1818;
     
    9797COMMAND_IDENTIFY_DEVICE                 EQU     0ECh
    9898COMMAND_SET_FEATURES                    EQU     0EFh
     99COMMAND_IDLE                            EQU     0E3h
    99100
    100101
     
    102103FEATURE_ENABLE_WRITE_CACHE              EQU     02h
    103104FEATURE_DISABLE_WRITE_CACHE             EQU     82h     ; Can also be used to flush cache
    104 FEATURE_SET_TRANSFER_MODE               EQU     03h     ; Transfe mode goes to the Sector Count Register
     105FEATURE_SET_TRANSFER_MODE               EQU     03h     ; Transfer mode goes to the Sector Count Register
    105106    PIO_DEFAULT_MODE                    EQU     0h
    106107    PIO_DEFAULT_MODE_DISABLE_IORDY      EQU     1h
  • trunk/XTIDE_Universal_BIOS/Inc/RomVars.inc

    r376 r380  
    44
    55;
    6 ; XTIDE Universal BIOS and Associated Tools 
     6; XTIDE Universal BIOS and Associated Tools
    77; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
    88;
     
    1111; the Free Software Foundation; either version 2 of the License, or
    1212; (at your option) any later version.
    13 ; 
     13;
    1414; This program is distributed in the hope that it will be useful,
    1515; but WITHOUT ANY WARRANTY; without even the implied warranty of
    1616; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    17 ; GNU General Public License for more details.     
     17; GNU General Public License for more details.
    1818; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    1919;
     
    4040    .bMinFddCnt         resb    1   ; Minimum number of Floppy Drives
    4141    .bStealSize         resb    1   ; Number of 1kB blocks stolen from 640kB base RAM
     42    .bIdleTimeout       resb    1   ; Standby timer value
    4243
    4344    .ideVarsBegin:
  • trunk/XTIDE_Universal_BIOS/Src/Main.asm

    r379 r380  
    1414
    1515;
    16 ; XTIDE Universal BIOS and Associated Tools 
     16; XTIDE Universal BIOS and Associated Tools
    1717; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
    1818;
     
    2121; the Free Software Foundation; either version 2 of the License, or
    2222; (at your option) any later version.
    23 ; 
     23;
    2424; This program is distributed in the hope that it will be useful,
    2525; but WITHOUT ANY WARRANTY; without even the implied warranty of
    2626; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    27 ; GNU General Public License for more details.     
     27; GNU General Public License for more details.
    2828; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    2929;
     
    114114    at  ROMVARS.bMinFddCnt,     db  0                       ; Do not force minimum number of floppy drives
    115115    at  ROMVARS.bStealSize,     db  1                       ; Steal 1kB from base memory
     116    at  ROMVARS.bIdleTimeout,   db  0                       ; Standby timer disabled by default
    116117
    117118    at  ROMVARS.ideVars0+IDEVARS.wPort,         dw  DEVICE_ATA_DEFAULT_PORT         ; Controller Command Block base port
     
    157158    at  ROMVARS.bMinFddCnt,     db  1                       ; Assume at least 1 floppy drive present if autodetect fails
    158159    at  ROMVARS.bStealSize,     db  1                       ; Steal 1kB from base memory in full mode
     160    at  ROMVARS.bIdleTimeout,   db  0                       ; Standby timer disabled by default
    159161
    160162    at  ROMVARS.ideVars0+IDEVARS.wPort,         dw  DEVICE_XTIDE_DEFAULT_PORT           ; Controller Command Block base port
     
    184186iend
    185187
    186     ; Strings are first to avoid them moving unnessarily when code is turned on and off with %ifdef's
     188    ; Strings are first to avoid them moving unnecessarily when code is turned on and off with %ifdef's
    187189    ; since some groups of strings need to be on the same 256-byte page.
    188190    ;
    189191%ifdef MODULE_STRINGS_COMPRESSED
    190192    %define STRINGSCOMPRESSED_STRINGS
    191     %include "StringsCompressed.asm" 
     193    %include "StringsCompressed.asm"
    192194%else
    193195    %include "Strings.asm"          ; For BIOS message strings
     
    199201
    200202    ; String compression tables need to come after the AssemblyLibrary (since they depend on addresses
    201     ; established in the assembly library), and are unncessary if strings are not compressed.
     203    ; established in the assembly library), and are unnecessary if strings are not compressed.
    202204    ;
    203205%ifdef MODULE_STRINGS_COMPRESSED
    204     %undef  STRINGSCOMPRESSED_STRINGS       
     206    %undef  STRINGSCOMPRESSED_STRINGS
    205207    %define STRINGSCOMPRESSED_TABLES
    206208    %include "StringsCompressed.asm"
    207209%endif
    208        
     210
    209211    %include "Initialize.asm"       ; For BIOS initialization
    210212    %include "Interrupts.asm"       ; For Interrupt initialization
  • trunk/XTIDE_Universal_BIOS/makefile

    r379 r380  
    88# clean     Removes all files from \Build                                                        #
    99# checksum* Builds all and then generates checksum byte to all binary files                      #
    10 # strings*  Compress src\strings.asm to src\StringsCompressed.asm                                #
     10# strings*  Compress src\Strings.asm to src\StringsCompressed.asm                                #
    1111#                                                                                                #
    1212# * at the end of target name means that Perl is required for the job.                           #
     
    1616# Following modules can be included or excluded:                                                 #
    1717# MODULE_ADVANCED_ATA       Native support for some VLB IDE controllers                          #
    18 # MODULE_BOOT_MENU          Boot Menu for selection drive to boot from                           #
    19 # MODULE_EBIOS              Enhanced functions for access drives over 8.4 GB                     #
     18# MODULE_BOOT_MENU          Boot Menu for selection of drive to boot from                        #
     19# MODULE_EBIOS              Enhanced functions for accessing drives over 8.4 GB                  #
    2020# MODULE_JRIDE              Support for JR-IDE/ISA                                               #
    2121# MODULE_SERIAL             Virtual hard disks using serial port                                 #
    22 # MODULE_SERIAL_FLOPPY      Virtual floppy drives using serial port                              #
    23 # MODULE_STRINGS_COMPRESSED Compressed strings to save space                                     #
     22# MODULE_SERIAL_FLOPPY      Virtual floppy drives using serial port (requires MODULE_SERIAL)     #
     23# MODULE_STRINGS_COMPRESSED Use compressed strings to save space                                 #
    2424#                                                                                                #
    2525# Not modules but these affect the assembly:                                                     #
    26 # ELIMINATE_CGA_SNOW        Prevents CGA snowing at the cost of few bytes                        #
     26# ELIMINATE_CGA_SNOW        Prevents CGA snowing at the cost of a few bytes                      #
    2727# USE_186                   Use instructions supported by 80188/80186 and V20/V30 and later      #
    2828# USE_286                   Use instructions supported by 286 and later                          #
Note: See TracChangeset for help on using the changeset viewer.