mirror of
https://github.com/Tolik-Trek/Shared_Includes.git
synced 2026-06-15 09:01:33 +03:00
...
This commit is contained in:
parent
8371051031
commit
d464c878bb
@ -1825,17 +1825,37 @@ CtrlByte: ; Bytes for IDE.Read.Status
|
|||||||
.StreamErrror EQU .Fault
|
.StreamErrror EQU .Fault
|
||||||
.ATAPI_DMAReady EQU .Fault
|
.ATAPI_DMAReady EQU .Fault
|
||||||
.ATAPI_Service EQU .SeekComplete
|
.ATAPI_Service EQU .SeekComplete
|
||||||
/*
|
; Bit Abbreviation Function
|
||||||
Bit Abbreviation Function
|
; 7 BSY Indicates the drive is preparing to send/receive data (wait for it to clear). In case of 'hang' (it never clears), do a software reset.
|
||||||
0 ERR Indicates an error occurred. Send a new command to clear it (or nuke it with a Software Reset).
|
; 6 RDY Bit is clear when drive is spun down, or after an error. Set otherwise.
|
||||||
1 IDX Index. Always set to zero.
|
; 5 DF Drive Fault Error (does not set ERR).
|
||||||
2 CORR Corrected data. Always set to zero.
|
; 4 SRV Overlapped Mode Service Request.
|
||||||
3 DRQ Set when the drive has PIO data to transfer, or is ready to accept PIO data.
|
; 3 DRQ Set when the drive has PIO data to transfer, or is ready to accept PIO data.
|
||||||
4 SRV Overlapped Mode Service Request.
|
; 2 CORR Corrected data. Always set to zero.
|
||||||
5 DF Drive Fault Error (does not set ERR).
|
; 1 IDX Index. Always set to zero.
|
||||||
6 RDY Bit is clear when drive is spun down, or after an error. Set otherwise.
|
; 0 ERR Indicates an error occurred. Send a new command to clear it (or nuke it with a Software Reset).
|
||||||
7 BSY Indicates the drive is preparing to send/receive data (wait for it to clear). In case of 'hang' (it never clears), do a software reset.
|
|
||||||
*/
|
; device/head register bits
|
||||||
|
DeviceHeadByte:
|
||||||
|
.LBA EQU #40
|
||||||
|
.Slave EQU #10
|
||||||
|
;
|
||||||
|
DeviceHeadBit:
|
||||||
|
.LBA EQU 6 ; LBA = 1
|
||||||
|
.Slave EQU 4 ; Slave = 1
|
||||||
|
|
||||||
|
DeviceControlBit:
|
||||||
|
.Always_Set EQU 3
|
||||||
|
.Reset EQU 2 ;SRST
|
||||||
|
.Int EQU 1 ;nIEN
|
||||||
|
.AlwaysClear EQU 0
|
||||||
|
|
||||||
|
DeviceControlByte:
|
||||||
|
.setReset EQU #0C ;SRST
|
||||||
|
.setInt EQU #0A ;nIEN
|
||||||
|
.resReset EQU #08
|
||||||
|
.resInt EQU #08
|
||||||
|
|
||||||
Chanel:
|
Chanel:
|
||||||
.Set_0: EQU #20BC ; ¤«ï ¨á¯®«ì§®¢ ¨ï á ¯®«®© ¤à¥á 樥© (ॣ BC), § á« âì '1'
|
.Set_0: EQU #20BC ; ¤«ï ¨á¯®«ì§®¢ ¨ï á ¯®«®© ¤à¥á 樥© (ॣ BC), § á« âì '1'
|
||||||
.Set_1: EQU #00BC ; ¤«ï ¨á¯®«ì§®¢ ¨ï á ¯®«®© ¤à¥á 樥© (ॣ BC), § á« âì '1'
|
.Set_1: EQU #00BC ; ¤«ï ¨á¯®«ì§®¢ ¨ï á ¯®«®© ¤à¥á 樥© (ॣ BC), § á« âì '1'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user