Changeset 414 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc


Ignore:
Timestamp:
May 3, 2012, 12:56:04 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • MEMPIOVARS no longer overflow when not building MODULE_EBIOS.
Location:
trunk/XTIDE_Universal_BIOS/Inc
Files:
2 edited

Legend:

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

    r410 r414  
    2222
    2323; Reset delays
    24 HSR0_RESET_WAIT_US      EQU     5       ; Delay at least 5us
    25 HSR1_RESET_WAIT_US      EQU     2000    ; Delay at least 2ms
     24HSR0_RESET_WAIT_US      EQU     6       ; Delay must be at least 5 us
     25HSR1_RESET_WAIT_US      EQU     2100    ; Delay must be at least 2 ms
    2626
    2727; Polling timeout delays (system timer ticks, 1 tick = 54.9 ms)
     
    3434TIMEOUT_DRDY            EQU     TIMEOUT_MOTOR_STARTUP
    3535%else
    36 TIMEOUT_BSY             EQU     (2500/55)   ; 2500 ms
    37 TIMEOUT_DRDY            EQU     (2500/55)   ; 2500 ms
     36TIMEOUT_BSY             EQU     (2600/55)   ; 2600 ms
     37TIMEOUT_DRDY            EQU     (2600/55)   ; 2600 ms
    3838%endif
    3939
  • trunk/XTIDE_Universal_BIOS/Inc/RamVars.inc

    r413 r414  
    2626%endif
    2727
    28 
    29 ; Variables for translating drive numbers.
    30 struc XLATEVARS
    31 %ifdef MODULE_SERIAL_FLOPPY
    32     .bFlopCreateCnt:
    33     .bFlopCntAndFirst   resb    1   ; Normally, packed starting floppy drive number (high order 7 bits)
    34                                     ; and number of drives (low order bit, max 2 drives supported).
    35                                     ; During initialization, until the end of DetectDrives_FromAllIDEControllers,
    36                                     ; this byte contains the raw number of floppy drives seen (using .bFlopCreateCnt)
    37 %else
    38                         resb    1   ; alignment
    39 %endif
    40     .bXlatedDrv         resb    1   ; Drive number after translation
    41     .wFDandHDswap:
    42     .bFDSwap            resb    1   ; Floppy Drive to swap to 00h and vice versa
    43     .bHDSwap            resb    1   ; Hard Drive to swap to 80h and vice versa
    44 endstruc
    45 
    4628; RAM Variables.
    4729; Variables should be kept to minimum since they might be located
     
    6042
    6143    ; Variables for drive number translation
    62     .xlateVars      resb    XLATEVARS_size
     44%ifdef MODULE_HOTKEYS
     45    .xlateVars          resb    XLATEVARS_size
     46%endif
    6347endstruc
     48
     49
     50; Variables for translating drive numbers.
     51%ifdef MODULE_HOTKEYS
     52    struc XLATEVARS
     53    %ifdef MODULE_SERIAL_FLOPPY
     54        .bFlopCreateCnt:
     55        .bFlopCntAndFirst   resb    1   ; Normally, packed starting floppy drive number (high order 7 bits)
     56                                        ; and number of drives (low order bit, max 2 drives supported).
     57                                        ; During initialization, until the end of DetectDrives_FromAllIDEControllers,
     58                                        ; this byte contains the raw number of floppy drives seen (using .bFlopCreateCnt)
     59    %else
     60                            resb    1   ; alignment
     61    %endif
     62        .bXlatedDrv         resb    1   ; Drive number after translation
     63        .wFDandHDswap:
     64        .bFDSwap            resb    1   ; Floppy Drive to swap to 00h and vice versa
     65        .bHDSwap            resb    1   ; Hard Drive to swap to 80h and vice versa
     66    endstruc
     67%endif
     68
    6469
    6570%ifdef MODULE_SERIAL_FLOPPY
     
    7782; wire for MODULE_SERIAL, please do not change the order or insert other members.
    7883;
    79 struc IDEPACK
     84struc IDEPACK   ; PIOVARS and MEMPIOVARS overwrite the first 7 bytes
    8085    .bFeatures              resb    1
    8186    .bDrvAndHead            resb    1   ; LBA28 27...24
     
    9297
    9398    .bCommand               resb    1
    94     .bDeviceControl         resb    1   ; Offset 7 shared with PIOVARS
    95                             resb    1
     99    .bDeviceControl         resb    1   ; Offset 7 shared with PIOVARS and MEMPIOVARS
     100                            resb    1   ; Used by PIOVARS and MEMPIOVARS
    96101
    97102%ifdef MODULE_EBIOS
     
    102107    .bLbaHighExt            resb    1   ; LBA48 47...40
    103108%endif
     109
    104110    .intpack                resb    INTPACK_size
    105111endstruc
Note: See TracChangeset for help on using the changeset viewer.