From: mav Date: Thu, 12 Sep 2019 17:20:51 +0000 (+0000) Subject: Report Trusted Computing feature set support. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3286452d526581635089489e1d026965765e64b1;p=freebsd.git Report Trusted Computing feature set support. It practically means the device is SED. MFC after: 3 days --- diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index cd02224aea2..6098e4074c7 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -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 ");