]> xenbits.xensource.com Git - freebsd.git/commitdiff
Report Trusted Computing feature set support.
authormav <mav@FreeBSD.org>
Thu, 12 Sep 2019 17:20:51 +0000 (17:20 +0000)
committermav <mav@FreeBSD.org>
Thu, 12 Sep 2019 17:20:51 +0000 (17:20 +0000)
It practically means the device is SED.

MFC after: 3 days

sbin/camcontrol/camcontrol.c

index cd02224aea2b3c17e7edf2cb75cbf9fea62bda4f..6098e4074c79e51e4078973bb3279c27cbd5a648 100644 (file)
@@ -1717,6 +1717,9 @@ atacapprint(struct ata_params *parm)
        } else {
                printf("no\n");
        }
+       printf("Trusted Computing              %s\n",
+           ((parm->tcg & 0xc000) == 0x4000) && (parm->tcg & ATA_SUPPORT_TCG) ?
+           "yes" : "no");
        printf("encrypts all user data         %s\n",
                parm->support3 & ATA_ENCRYPTS_ALL_USER_DATA ? "yes" : "no");
        printf("Sanitize                       ");