From efad14c71b4275ce640b8bf77ec9da0522cabac7 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Fri, 13 Sep 2019 15:21:18 +0000 Subject: [PATCH] MFC r352257: Report Trusted Computing feature set support. It practically means the device is SED. --- sbin/camcontrol/camcontrol.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 796a1154f7f..21860218a10 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -1736,6 +1736,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 "); -- 2.45.0