summaryrefslogtreecommitdiffstats
path: root/sbin/atacontrol/atacontrol.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2004-09-15 11:22:05 +0000
committersos <sos@FreeBSD.org>2004-09-15 11:22:05 +0000
commit68af55d74a83e4e55d7acda278e82f0eb0677bb5 (patch)
treefb176c1893e62d23acf54d5e1b6d72436005af85 /sbin/atacontrol/atacontrol.c
parente18510b418bf9c57ecf356f49053b7b9c7252b1e (diff)
downloadFreeBSD-src-68af55d74a83e4e55d7acda278e82f0eb0677bb5.zip
FreeBSD-src-68af55d74a83e4e55d7acda278e82f0eb0677bb5.tar.gz
Distinguish between TCQ and NCQ type of tagged queing.
Diffstat (limited to 'sbin/atacontrol/atacontrol.c')
-rw-r--r--sbin/atacontrol/atacontrol.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/sbin/atacontrol/atacontrol.c b/sbin/atacontrol/atacontrol.c
index 675174e..4332299 100644
--- a/sbin/atacontrol/atacontrol.c
+++ b/sbin/atacontrol/atacontrol.c
@@ -187,16 +187,18 @@ cap_print(struct ata_params *parm)
parm->enabled.command1 & ATA_SUPPORT_LOOKAHEAD ? "yes" : "no");
if (parm->satacapabilities && parm->satacapabilities != 0xffff) {
- printf("SATA NCQ %s %s %d/0x%02X\n",
- parm->satacapabilities & ATA_SUPPORT_NCQ ? "yes" : "no",
- " -", ATA_QUEUE_LEN(parm->queue),
- ATA_QUEUE_LEN(parm->queue));
+ printf("Native Command Queuing (NCQ) %s %s %d/0x%02X\n",
+ parm->satacapabilities & ATA_SUPPORT_NCQ ?
+ "yes" : "no", " -",
+ (parm->satacapabilities & ATA_SUPPORT_NCQ) ?
+ ATA_QUEUE_LEN(parm->queue) : 0,
+ (parm->satacapabilities & ATA_SUPPORT_NCQ) ?
+ ATA_QUEUE_LEN(parm->queue) : 0);
}
- else
- printf("dma queued %s %s %d/0x%02X\n",
- parm->support.command2 & ATA_SUPPORT_QUEUED ? "yes" : "no",
- parm->enabled.command2 & ATA_SUPPORT_QUEUED ? "yes" : "no",
- ATA_QUEUE_LEN(parm->queue), ATA_QUEUE_LEN(parm->queue));
+ printf("Tagged Command Queuing (TCQ) %s %s %d/0x%02X\n",
+ parm->support.command2 & ATA_SUPPORT_QUEUED ? "yes" : "no",
+ parm->enabled.command2 & ATA_SUPPORT_QUEUED ? "yes" : "no",
+ ATA_QUEUE_LEN(parm->queue), ATA_QUEUE_LEN(parm->queue));
printf("SMART %s %s\n",
parm->support.command1 & ATA_SUPPORT_SMART ? "yes" : "no",
OpenPOWER on IntegriCloud