Magic с бутсектором.

Discussion in 'WASM.OS.DEVEL' started by SadKo, Sep 14, 2008.

  1. PROFi

    PROFi New Member

    Blog Posts:
    0
    Joined:
    Jul 13, 2003
    Messages:
    690
    Phantom_84

    у в современных винтах CHS не поддерживается (по ATA стандарту начинася с 3го по-моему - могу ошибаться), в старых примерно так:

    Code (Text):
    1. ECh: Identify Drive
    2.  
    3.      This command enables the host to receive paramater information from the
    4.      drive. When the host issues this command, the drive sets BUSY, stores the
    5.      required parameter information in the sector buffer, sets DRQ and generates
    6.      an interrupt. The host then reads the information from the sector buffer.
    7.      The table below defines the words stored in the buffer. All reserved fields
    8.      should be zeros.
    9.  
    10.      ┌───────┬─────────────────────────────────────────────────────────────────┐
    11.      │  Word │ Description                                                     │
    12.      ├───────┼─────────────────────────────────────────────────────────────────┤
    13.      │  00h  │ Bit mapped general configuration information. True when bit set │
    14.      │       │ Bit 15: Reserved for non magnetic drives.                       │
    15.      │       │ Bit 14: Format speed tolerance gap not required.                │
    16.      │       │ Bit 13: Track offset option not available.                      │
    17.      │       │ Bit 12: Data strobe offset option not available.                │
    18.      │       │ Bit 11: Rotational speed tolerance is < 0.5%                    │
    19.      │       │ Bit 10: Disk transfer rate not > 10 MB/s                        │
    20.      │       │ Bit 09: Disk transfer rate > 5 MB/s and < 10 MB/s               │
    21.      │       │ Bit 08: Disk transfer rate > 5 MB/s                             │
    22.      │       │ Bit 07: Removable cartridge drive.                              │
    23.      │       │ Bit 06: Fixed drive.                                            │
    24.      │       │ Bit 05: Spindle motor control option not implemented.           │
    25.      │       │ Bit 04: Head switch time > 15 microseconds.                     │
    26.      │       │ Bit 03: Not MFM encoded.                                        │
    27.      │       │ Bit 02: Not soft sectored.                                      │
    28.      │       │ Bit 01: Hard Sectored.                                          │
    29.      │       │ Bit 00: Reserved.                                               │
    30.      │       │                                                                 │
    31.      │  01h  │ Number of logical cylinders in the default translation mode.    │
    32.      │       │                                                                 │
    33.      │  02h  │ Reserved.                                                       │
    34.      │       │                                                                 │
    35.      │  03h  │ Number of logical heads in the default translation mode.        │
    36.      │       │                                                                 │
    37.      │  04h  │ Number of unformatted bytes per logical track.                  │
    38.      │       │                                                                 │
    39.      │  05h  │ Number of unformatted bytes per sector.                         │
    40.      │       │                                                                 │
    41.      │  06h  │ Number of logical sectors per track.                            │
    42.      │       │                                                                 │
    43.      │  07h  │ Bits 15...08: Inter Sector Gap after Index & before splice.     │
    44.      │       │ Bits 07...00: Inter Sector Gap bytes.                           │
    45.      │       │                                                                 │
    46.      │  08h  │ Bits 15...08: Reserved.                                         │
    47.      │       │ Bits 07...00: Bytes in Phase Lock Oscillator field.             │
    48.      │       │                                                                 │
    49.      │  09h  │ Number of vendor unique status words.                           │
    50.      │       │                                                                 │
    51.      │  0Ah  │ Serial number, 20 ASCII chars, right aligned & padded with 20h. │
    52.      │       │                                                                 │
    53.      │  14h  │ Controller type:                                                │
    54.      │       │ 0000h: Not specified.                                           │
    55.      │       │ 0001h: Single ported, single sector buffer capable of data      │
    56.      │       │        transfers only to or from the host or the disk at one    │
    57.      │       │        time.                                                    │
    58.      │       │ 0002h: Dual ported, multiple sector buffer capable of           │
    59.      │       │        simultaneous data transfers to and from the host, or     │
    60.      │       │        from the host and the disk.                              │
    61.      │       │ 0003h: Dual ported, multiple sector buffer capable of           │
    62.      │       │        simultaneous data transfers with read caching.           │
    63.      │       │ 0004h-FFFFh: Reserved.                                          │
    64.      │       │                                                                 │
    65.      │  15h  │ Buffer size in 512 byte increments.                             │
    66.      │       │                                                                 │
    67.      │  16h  │ Number of ECC bytes passed to host on R/W long operations.      │
    68.      │       │                                                                 │
    69.      │  17h  │ Firmware revision, 8 ASCII chars, left aligned & space padded.  │
    70.      │       │                                                                 │
    71.      │  1Bh  │ Model Number, 40 ASCII chars, left aligned & space padded.      │
    72.      │       │                                                                 │
    73.      │  2Fh  │ READ/WRITE multiples implemented.                               │
    74.      │       │                                                                 │
    75.      │  30h  │ Supports double word I/O transfer.                              │
    76.      │       │                                                                 │
    77.      │  31h  │ Reserved.                                                       │
    78.      │       │                                                                 │
    79.      │  32h  │ Reserved.                                                       │
    80.      │       │                                                                 │
    81.      │  33h  │ Minimum PIO data transfer cycle time in nsec.                   │
    82.      │       │                                                                 │
    83.      │  34h  │ Minimum DMA data transfer cycle time in nsec.                   │
    84.      │       │                                                                 │
    85.      │  35h  │ All words past this point are reserved.                         │
    86.      └───────┴─────────────────────────────────────────────────────────────────┘
     
  2. Phantom_84

    Phantom_84 New Member

    Blog Posts:
    0
    Joined:
    Jun 6, 2007
    Messages:
    820
    И что, что не поддерживается? Это не мешает им возвращать в паспорте вполне определенные значения.