open-source-firmware / go-tcg-storage

Go library for interfacing TCG Storage functions on storage devices
BSD 3-Clause "New" or "Revised" License
21 stars 10 forks source link

[Seagate] Feature 0xc001 on Seagate ("Logical ports") #26

Closed bluecmd closed 3 years ago

bluecmd commented 3 years ago

My Seagate disk seems to report an undocumented 0xC001 feature in the Level0.

pysed seems to have a reference: https://github.com/Seagate/TCGstorageAPI/blob/master/pysed/Tcg.h#L59

bluecmd commented 3 years ago

This is the feature descriptor pysed uses:

    struct PortDesc {
            DescHdr     hdr;
            struct PortEntry {
                beint32_t   portIdentifier;
                uint8_t     portLocked;
                uint8_t     reserved[3];
            } __attribute__((__packed__)) portEntry[1];
    } __attribute__((__packed__));