Инструкция LFF (3.5") Серверный HDD WD Ultrastar HC580

10.18.3 SCT Command Set (стр. 94 из 357)

Бренд: LFF

Страница 94 документа LFF (3.5") Серверный HDD WD Ultrastar HC580. Раздел: Western Digital. Бренд: LFF.

Текст страницы

10.18.3 SCT Command Set

10.18.3.1 SCT Write Same (action code : 0002h)

Table 53 SCT Write Same (Inputs)

Inputs: (Key Sector)

Word
Name
Value
Description
0
Action Code
0002h
This action writes a pattern or sector of data repeatedly to the
media. This capability could also be referred to as “Write All”
or “Write Same”.
1
Function Code
0001h
Repeat Write Pattern (Background Operation)
0002h
Repeat Write Sector (Background Operation)
0101h
Repeat Write Pattern (Blocking Operation)
0102h
Repeat Write Sector (Blocking Operation)
5:2
Start LBA
Qword
First LBA
9:6
Count
Qword
Number of sectors to fill
11:10
Pattern
Dword
If the Function Code is 0001h, this field contains a 32-bit
pattern that is written on the media starting at the location
specified in words two through five
255:12
Reserved
0000h

Table 54 SCT Write Same (Outputs)

Outputs: (TF Data)

Command Block Input Registers (Success)

Error
00h

Sector Count
Reserved

Sector Number
Reserved

Cylinder Low
Number of sectors to transfer (LSB) = 01h

Cylinder High
Number of sectors to transfer (MSB) = 00h

Device/Head
Reserved

Status
50h

The SCT Write Same command will begin writing sectors from Start LBA in incrementing order until Count sectors
have been written. The HPA feature determines the last user LBA. This command will not write over a hidden partition
when hidden partitions are enabled using the Host Protected Area drive capabilities. Automatic sector reassignment
is permitted during the operation of this function.

If Start LBA or Start LBA + Count go beyond the last user LBA then an error is reported and the SCT command is not
executed. Issuing this command with a value of zero for Start LBA and Count will cause all LBAs of the drive to be
written the specified pattern.

Once the key sector has been issued, if the Function Code was 0002h or 0102h and the TF Data indicates that the
drive is ready to receive data, log page E1h should be written to transfer the data.

Implementation notes for Background Operation (Function code = 0001h, 0002h)

In this mode, the drive will return command completion status when the drive finished receiving data.

Any command, including IDENTIFY DEVICE, other than SCT Status, issued to the drive while this command is in
progress will terminate the SCT Write Same command. The incoming command is executed.

Use the SCT Status command to retrieve status information about the current SCT command. Example status
information includes command active or complete, current LBA, and errors. When this command is in progress, the

94
Hard Disk Drive Specification