Changeset 542 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc


Ignore:
Timestamp:
Apr 15, 2013, 4:03:33 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Fixed a bug that allowed EBIOS functions for user defined CHS.
  • Simplified user defined CHS and LBA setup a little.
Location:
trunk/XTIDE_Universal_BIOS/Inc
Files:
3 edited

Legend:

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

    r540 r542  
    3737    .bLchsHeads             resb    1   ; (1...255)
    3838    .bLchsSectorsPerTrack   resb    1   ; (1...63)
     39    .wPchsHeadsAndSectors:
    3940    .bPchsHeads             resb    1   ; (1...16)
     41    .bPchsSectorsPerTrack   resb    1   ; (1...63)
    4042
    4143    ; LBA and remaining P-CHS variables
    4244%ifdef MODULE_EBIOS
    43     .bPchsSectorsPerTrack   resb    1
    4445    .wPchsCylinders         resb    2
    4546    .twLbaSectors           resb    6   ; 48-bit sector count for LBA addressing
     
    5657    FLGL_DPT_ENABLE_IRQ                 EQU (1<<5)              ; Bit 5, Enable IRQ
    5758%endif
     59    FLGL_DPT_LBA                        EQU FLG_DRVNHEAD_LBA    ; Bit 6, Drive supports LBA and so EBIOS functions can be supported
    5860%ifdef MODULE_EBIOS
    59     FLGL_DPT_LBA_AND_EBIOS_SUPPORTED    EQU FLG_DRVNHEAD_LBA    ; Bit 6, Drive supports LBA and so EBIOS functions can be supported
    6061    FLGL_DPT_LBA48                      EQU (1<<7)              ; Bit 7, Drive supports 48-bit LBA (Must be bit 7!)
    6162%endif
  • trunk/XTIDE_Universal_BIOS/Inc/EBIOS.inc

    r541 r542  
    4444endstruc
    4545
    46 MINIMUM_EDRIVEINFO_SIZE     EQU     26  ; 26 bytes does not include EDD pointer
    47 EDRIVEINFO_SIZE_WITH_DPTE   EQU     EDRIVE_INFO_size
     46MINIMUM_EDRIVEINFO_SIZE         EQU     26  ; 26 bytes does not include EDD pointer
     47EDRIVEINFO_SIZE_WITH_DPTE       EQU     EDRIVE_INFO_size
     48MAX_SECTOR_COUNT_TO_RETURN_PCHS EQU     15482880
    4849
    4950; Flags for EDRIVE_INFO.wFlags
  • trunk/XTIDE_Universal_BIOS/Inc/RomVars.inc

    r536 r542  
    194194    MAX_USER_HEADS                  EQU 16
    195195    MAX_USER_SECTORS_PER_TRACK      EQU 63
     196    MAX_USER_CHS_COUNT              EQU (MAX_USER_CYLINDERS * MAX_USER_HEADS * MAX_USER_SECTORS_PER_TRACK)
    196197FLG_DRVPARAMS_USERLBA           EQU (1<<6)  ; User specified LBA value
    197     MIN_USER_LBA_COUNT              EQU ((MAX_USER_CYLINDERS*MAX_USER_HEADS*MAX_USER_SECTORS_PER_TRACK)+1)
     198    MIN_USER_LBA_COUNT              EQU (MAX_USER_CHS_COUNT+1)
    198199    MAX_USER_LBA_COUNT              EQU ((2^28)-1)
    199200
Note: See TracChangeset for help on using the changeset viewer.