Changeset 364 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc


Ignore:
Timestamp:
Mar 27, 2012, 4:21:58 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Advanced ATA Module variables are now kept in DPTs.
  • Forced full mode when using Advanced ATA Module.
File:
1 edited

Legend:

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

    r363 r364  
    4141; IDE device only
    4242FLGH_DPT_INITERROR              EQU (1<<7)
     43%ifdef MODULE_ADVANCED_ATA
     44FLGH_DPT_IORDY                  EQU (1<<6)  ; Controller and Drive supports IORDY
     45%endif
    4346
    4447; Serial device only
     
    6366    .bSetBlock                  resb    1   ; Current block size (do not set to zero!)
    6467    .bMaxBlock                  resb    1   ; Maximum block size, 0 = block mode not supported
    65 
    66 %ifdef MODULE_ADVANCED_ATA  ; +2 extra bytes = 14 bytes
    67     .bPioMode                   resb    1
    68     .bDevice                    resb    1
    69 %endif
    7068endstruc
    7169
    7270
     71; Additional variables needed to initialize and reset Advanced IDE Controllers.
     72; EBDA must be reserved for DPTs when using these!
    7373%ifdef MODULE_ADVANCED_ATA
    74 ; Temporary extension for DPT_ATA. Contents will be copied to BOOTMENUINFO and
    75 ; then these variables will be overridden by next DPT.
    7674struc DPT_ADVANCED_ATA
    7775    .dpt_ata                resb    DPT_ATA_size
    78     .wIdeBasePort           resb    2   ; IDE Base Port
    79     .wMinPioActiveTimeNs    resb    2   ; Minimum PIO Active Time in ns
    80     .wMinPioRecoveryTimeNs  resb    2   ; Minimum PIO Recovery Time in ns
    81     .wControllerID          resb    2   ; Controller specific ID WORD
     76    .wControllerID          resb    2   ; Controller specific ID WORD (from Advanced Controller detection)
    8277    .wControllerBasePort    resb    2   ; Advanced Controller port (not IDE port)
     78    .wMinPioCycleTime       resb    2   ; Minimum PIO Cycle Time in ns
     79    .bPioMode               resb    1   ; Best supported PIO mode
     80    .bDevice                resb    1   ; Device Type from IDEVARS (overrided when 32-bit controller detected)
    8381endstruc
    8482%endif
    8583
    8684
     85; DPT for Serial devices
    8786%ifdef MODULE_SERIAL
    88 ; DPT for Serial devices
    8987struc DPT_SERIAL
    9088    .dpt                        resb    DPT_size
     
    9896
    9997; This is the common size for all DPTs. All DPTs must be equal size.
     98%ifdef MODULE_ADVANCED_ATA
     99LARGEST_DPT_SIZE                EQU     DPT_ADVANCED_ATA_size
     100%else
    100101LARGEST_DPT_SIZE                EQU     DPT_ATA_size
     102%endif
    101103
    102104
Note: See TracChangeset for help on using the changeset viewer.