Changeset 364 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc
- Timestamp:
- Mar 27, 2012, 4:21:58 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc
r363 r364 41 41 ; IDE device only 42 42 FLGH_DPT_INITERROR EQU (1<<7) 43 %ifdef MODULE_ADVANCED_ATA 44 FLGH_DPT_IORDY EQU (1<<6) ; Controller and Drive supports IORDY 45 %endif 43 46 44 47 ; Serial device only … … 63 66 .bSetBlock resb 1 ; Current block size (do not set to zero!) 64 67 .bMaxBlock resb 1 ; Maximum block size, 0 = block mode not supported 65 66 %ifdef MODULE_ADVANCED_ATA ; +2 extra bytes = 14 bytes67 .bPioMode resb 168 .bDevice resb 169 %endif70 68 endstruc 71 69 72 70 71 ; Additional variables needed to initialize and reset Advanced IDE Controllers. 72 ; EBDA must be reserved for DPTs when using these! 73 73 %ifdef MODULE_ADVANCED_ATA 74 ; Temporary extension for DPT_ATA. Contents will be copied to BOOTMENUINFO and75 ; then these variables will be overridden by next DPT.76 74 struc DPT_ADVANCED_ATA 77 75 .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) 82 77 .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) 83 81 endstruc 84 82 %endif 85 83 86 84 85 ; DPT for Serial devices 87 86 %ifdef MODULE_SERIAL 88 ; DPT for Serial devices89 87 struc DPT_SERIAL 90 88 .dpt resb DPT_size … … 98 96 99 97 ; This is the common size for all DPTs. All DPTs must be equal size. 98 %ifdef MODULE_ADVANCED_ATA 99 LARGEST_DPT_SIZE EQU DPT_ADVANCED_ATA_size 100 %else 100 101 LARGEST_DPT_SIZE EQU DPT_ATA_size 102 %endif 101 103 102 104
Note:
See TracChangeset
for help on using the changeset viewer.