Bring SATA revision reporting into conformance with SATA-IO guidelines.
This commit is contained in:
parent
9738772d4e
commit
18d7e39ee7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188959
@ -132,11 +132,11 @@ param_print(struct ata_params *parm)
|
||||
printf("<%.40s/%.8s> ", parm->model, parm->revision);
|
||||
if (parm->satacapabilities && parm->satacapabilities != 0xffff) {
|
||||
if (parm->satacapabilities & ATA_SATA_GEN2)
|
||||
printf("Serial ATA II\n");
|
||||
printf("SATA revision 2.x\n");
|
||||
else if (parm->satacapabilities & ATA_SATA_GEN1)
|
||||
printf("Serial ATA v1.0\n");
|
||||
printf("SATA revision 1.x\n");
|
||||
else
|
||||
printf("Unknown serial ATA version\n");
|
||||
printf("Unknown SATA revision\n");
|
||||
}
|
||||
else
|
||||
printf("ATA/ATAPI revision %d\n", version(parm->version_major));
|
||||
@ -157,11 +157,11 @@ cap_print(struct ata_params *parm)
|
||||
printf("Protocol ");
|
||||
if (parm->satacapabilities && parm->satacapabilities != 0xffff) {
|
||||
if (parm->satacapabilities & ATA_SATA_GEN2)
|
||||
printf("Serial ATA II\n");
|
||||
printf("SATA revision 2.x\n");
|
||||
else if (parm->satacapabilities & ATA_SATA_GEN1)
|
||||
printf("Serial ATA v1.0\n");
|
||||
printf("SATA revision 1.x\n");
|
||||
else
|
||||
printf("Unknown serial ATA version\n");
|
||||
printf("Unknown SATA revision\n");
|
||||
}
|
||||
else
|
||||
printf("ATA/ATAPI revision %d\n", version(parm->version_major));
|
||||
|
Loading…
Reference in New Issue
Block a user