KolibriOS kernel
dev_hdcd.inc File Reference

Variables

label FindHDD
 
label FindHDD_2
 --------------------------------------------------------------------------— More...
 
label FindHDD_1
 
label calculate_IDE_device_values_storage
 --------------------------------------------------------------------------— More...
 
label convert_Sector512_value
 --------------------------------------------------------------------------— More...
 
dd SectorAddress
 
label dev_name
 
label ReadHDD_ID
 --------------------------------------------------------------------------— More...
 
label WaitCompleet
 
label Error1
 write the error code More...
 
label Error6
 
label End
 
dw StandardATABases
 Standart base addresses of channels 1 or 2 1F0h, 170h. More...
 
db ChannelNumber
 Channel number. More...
 
db DiskNumber
 Disk number. More...
 
db DeviceNumber
 
dw ATABasePortAddr
 Base address of ATA controller's port group. More...
 
db ATAFeatures
 ATA-command parameters features. More...
 
db ATASectorCount
 count of processing sectors More...
 
db ATASectorNumber
 initial sector number More...
 
dw ATACylinder
 initial cylinder number More...
 
db ATAHead
 initial head number More...
 
db ATAAddressMode
 addressing mode (0 - CHS, 1 - LBA) More...
 
db ATACommand
 executing command number More...
 
dd DevErrorCode
 Error code (0 - no errors, 1 - waiting time limit exceed 2 - incorrect code of addressing mode, 3 - incorrect channel number, 4 - incorrect disk number, 5 - incorrect head number, 6 - command execution error, 7 - time out when choosing channel) More...
 
label SendCommandToHDD
 --------------------------------------------------------------------------— More...
 
label WaitHDReady
 
label Err1
 write error code More...
 
label Err2
 
label Err3
 
label Err4
 
label Err5
 
label ReadCD_ID
 --------------------------------------------------------------------------— More...
 
label WaitCompleet_1
 
label Error1_1
 write the error code More...
 
label Error6_1
 
label End_1
 
label DeviceReset
 --------------------------------------------------------------------------— More...
 
label WaitHDReady_1
 
label Err1_2
 error processing More...
 
label Err3_2
 
label Err4_2
 
label EndFindHDD
 --------------------------------------------------------------------------— More...
 

Variable Documentation

◆ ATAAddressMode

db ATAAddressMode

addressing mode (0 - CHS, 1 - LBA)

Initial value
?
Source
detect/dev_hdcd.inc:240

◆ ATABasePortAddr

dw ATABasePortAddr

Base address of ATA controller's port group.

Initial value
?
Source
detect/dev_hdcd.inc:233

◆ ATACommand

db ATACommand

executing command number

Initial value
?
Source
detect/dev_hdcd.inc:241

◆ ATACylinder

dw ATACylinder

initial cylinder number

Initial value
?
Source
detect/dev_hdcd.inc:238

◆ ATAFeatures

db ATAFeatures

ATA-command parameters features.

Initial value
?
Source
detect/dev_hdcd.inc:235

◆ ATAHead

db ATAHead

initial head number

Initial value
?
Source
detect/dev_hdcd.inc:239

◆ ATASectorCount

db ATASectorCount

count of processing sectors

Initial value
?
Source
detect/dev_hdcd.inc:236

◆ ATASectorNumber

db ATASectorNumber

initial sector number

Initial value
?
Source
detect/dev_hdcd.inc:237

◆ calculate_IDE_device_values_storage

label calculate_IDE_device_values_storage

--------------------------------------------------------------------------—

Source
detect/dev_hdcd.inc:128

◆ ChannelNumber

db ChannelNumber

Channel number.

Initial value
?
Source
detect/dev_hdcd.inc:228

◆ convert_Sector512_value

label convert_Sector512_value

--------------------------------------------------------------------------—

Source
detect/dev_hdcd.inc:148

◆ dev_name

◆ DevErrorCode

dd DevErrorCode

Error code (0 - no errors, 1 - waiting time limit exceed 2 - incorrect code of addressing mode, 3 - incorrect channel number, 4 - incorrect disk number, 5 - incorrect head number, 6 - command execution error, 7 - time out when choosing channel)

Initial value
?
Source
detect/dev_hdcd.inc:247

◆ DeviceNumber

db DeviceNumber
Initial value
?
Source
detect/dev_hdcd.inc:231

◆ DeviceReset

label DeviceReset

--------------------------------------------------------------------------—

             DEVICE RESET                   *

Input parameters are passed through the global* variables: * ChannelNumber - channel number (1 or 2); * DiskNumber - disk number (0 or 1). *

Source
detect/dev_hdcd.inc:426

◆ DiskNumber

db DiskNumber

Disk number.

Initial value
?
Source
detect/dev_hdcd.inc:230

◆ End

◆ End_1

◆ EndFindHDD

label EndFindHDD

--------------------------------------------------------------------------—

Source
detect/dev_hdcd.inc:474

◆ Err1

label Err1

write error code

Source
detect/dev_hdcd.inc:347

◆ Err1_2

label Err1_2

error processing

Source
detect/dev_hdcd.inc:463

◆ Err2

◆ Err3

◆ Err3_2

◆ Err4

◆ Err4_2

◆ Err5

◆ Error1

label Error1

write the error code

Source
detect/dev_hdcd.inc:216

◆ Error1_1

label Error1_1

write the error code

Source
detect/dev_hdcd.inc:411

◆ Error6

◆ Error6_1

◆ FindHDD

◆ FindHDD_1

label FindHDD_1

◆ FindHDD_2

label FindHDD_2

--------------------------------------------------------------------------—

Source
detect/dev_hdcd.inc:38

◆ ReadCD_ID

label ReadCD_ID

--------------------------------------------------------------------------—

  READ ATAPI DEVICE IDENTIFIER              *

Input parameters are passed through the global* variables: * ChannelNumber - channel number; * DiskNumber - disk number on channel. * Block of identificational data is reading * to Sector512 array. * *

Source
detect/dev_hdcd.inc:373

◆ ReadHDD_ID

label ReadHDD_ID

--------------------------------------------------------------------------—

  READING THE HARD DISK IDENTIFIER          *

Input parameters are passed through the global* variables: * ChannelNumber - channel number (1 or 2); * DiskNumber - disk number on channel (0 or 1) * Block of identificational data is reading * to Sector512 array. *

Source
detect/dev_hdcd.inc:181

◆ SectorAddress

dd SectorAddress
Initial value
?
Source
detect/dev_hdcd.inc:167

◆ SendCommandToHDD

label SendCommandToHDD

--------------------------------------------------------------------------—

       SEND COMMAND TO GIVEN DISK              *

Input parameters are passed through the global * variables: * ChannelNumber - channel number (1 or 2); * DiskNumber - disk number (0 or 1); * ATAFeatures - "features"; * ATASectorCount - sector count; * ATASectorNumber - initial sector number; * ATACylinder - initial cylinder number; * ATAHead - initial head number; * ATAAddressMode - addressing mode (0-CHS, 1-LBA); * ATACommand - command code. * If the function finished successfully: * in ATABasePortAddr - base address of HDD; * in DevErrorCode - zero. * If error has occured then in DevErrorCode will * be the error code. *

Source
detect/dev_hdcd.inc:269

◆ StandardATABases

dw StandardATABases

Standart base addresses of channels 1 or 2 1F0h, 170h.

Initial value
?, ?
Source
detect/dev_hdcd.inc:226

◆ WaitCompleet

label WaitCompleet

◆ WaitCompleet_1

label WaitCompleet_1

◆ WaitHDReady

label WaitHDReady

◆ WaitHDReady_1

label WaitHDReady_1