Changeset 158 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc


Ignore:
Timestamp:
May 2, 2011, 9:41:51 AM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Optimized few bytes.
Location:
trunk/XTIDE_Universal_BIOS/Inc
Files:
2 edited

Legend:

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

    r152 r158  
    88struc DPT   ; 8 bytes
    99    ; General Disk Parameter Table related
    10     .wFlags                     resb    2
     10    .wFlags:
     11    .bFlagsLow                  resb    1
     12    .bFlagsHigh                 resb    1
    1113    .bIdevarsOffset             resb    1   ; Offset to IDEVARS for this drive
    1214
     
    3537
    3638
    37 ; Bit definitions for DPT.wFlags
    38 MASK_DPT_CHS_SHIFT_COUNT        EQU (7<<0)  ; Bits 0...3, P-CHS to L-CHS bit shift count (0...4)
    39 FLG_DPT_SLAVE                   EQU FLG_DRVNHEAD_DRV    ; (1<<4), Drive is slave drive
    40 MASK_DPT_ADDRESSING_MODE        EQU (3<<5)  ; Bits 5..6, Addressing Mode (bit 6 == FLG_DRVNHEAD_LBA)
    41 FLG_DPT_ENABLE_IRQ              EQU (1<<7)
    42 FLG_DPT_REVERSED_A0_AND_A3      EQU (1<<8)  ; XTIDE mod, Address lines 0 and 3 reversed
    43 FLG_DPT_SERIAL_DEVICE           EQU (1<<9)  ; Serial Port Device
    44 FLG_DPT_BLOCK_MODE_SUPPORTED    EQU (1<<10) ; Use block transfer commands
    45 FLG_DPT_INTERRUPT_IN_SERVICE    EQU (1<<11) ; Set when waiting for IRQ
    46 FLG_DPT_RESET_nDRDY             EQU (1<<12) ; Drive ready to accept commands
    47 FLG_DPT_RESET_nINITPRMS         EQU (1<<13) ; Initialize Device Parameters successfull
    48 FLG_DPT_RESET_nRECALIBRATE      EQU (1<<14) ; Recalibrate successfull
    49 FLG_DPT_RESET_nSETBLOCK         EQU (1<<15) ; Initialize Block Mode successfull
    50 MASK_DPT_RESET                  EQU 0F000h
     39; Bit definitions for DPT.bFlagsLow
     40MASKL_DPT_CHS_SHIFT_COUNT       EQU (7<<0)  ; Bits 0...3, P-CHS to L-CHS bit shift count (0...4)
     41FLGL_DPT_SLAVE                  EQU FLG_DRVNHEAD_DRV    ; (1<<4), Drive is slave drive
     42MASKL_DPT_ADDRESSING_MODE       EQU (3<<5)  ; Bits 5..6, Addressing Mode (bit 6 == FLG_DRVNHEAD_LBA)
     43FLGL_DPT_ENABLE_IRQ             EQU (1<<7)
     44
     45; Bit definitions for DPT.bFlagsHigh
     46FLGH_DPT_REVERSED_A0_AND_A3     EQU (1<<0)  ; XTIDE mod, Address lines 0 and 3 reversed
     47FLGH_DPT_SERIAL_DEVICE          EQU (1<<1)  ; Serial Port Device
     48FLGH_DPT_BLOCK_MODE_SUPPORTED   EQU (1<<2)  ; Use block transfer commands
     49FLGH_DPT_INTERRUPT_IN_SERVICE   EQU (1<<3)  ; Set when waiting for IRQ
     50FLGH_DPT_RESET_nDRDY            EQU (1<<4)  ; Drive ready to accept commands
     51FLGH_DPT_RESET_nINITPRMS        EQU (1<<5)  ; Initialize Device Parameters successfull
     52FLGH_DPT_RESET_nRECALIBRATE     EQU (1<<6)  ; Recalibrate successfull
     53FLGH_DPT_RESET_nSETBLOCK        EQU (1<<7)  ; Initialize Block Mode successfull
     54MASKH_DPT_RESET                 EQU 0F0h
    5155
    5256; Addressing modes for DPT.wFlags
  • trunk/XTIDE_Universal_BIOS/Inc/IdeRegisters.inc

    r150 r158  
    1919STATUS_REGISTER_in              EQU     7       ; Read only
    2020COMMAND_REGISTER_out            EQU     7       ; Write only
    21 XTIDE_DATA_HIGH_REGISTER        EQU     8       ; Non-standard (actually first Control Block reg)
     21;XTIDE_DATA_HIGH_REGISTER       EQU     8       ; Non-standard (actually first Control Block reg)
    2222
    2323; IDE Register offsets from Control Block base port
     
    5858; Bit definitions for IDE Device Control Register
    5959; Bit 0 must be zero, unlisted bits are reserved.
    60 FLG_DEVCONTROL_HOB      EQU     (1<<7)  ; High Order Byte (ATA6+)
     60;FLG_DEVCONTROL_HOB     EQU     (1<<7)  ; High Order Byte (ATA6+)
    6161;FLG_DEVCONTROL_O8H     EQU     (1<<3)  ; Drive has more than 8 heads (pre-ATA only, 1 on ATA1, reserved on ATA2+)
    6262FLG_DEVCONTROL_SRST     EQU     (1<<2)  ; Software Reset
Note: See TracChangeset for help on using the changeset viewer.