diff options
author | mav <mav@FreeBSD.org> | 2012-09-12 09:20:37 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2012-09-12 09:20:37 +0000 |
commit | 9428c312c85831539a93248f10813cf842ae1525 (patch) | |
tree | 9b4a43ecf2323b8077722429f2d63ecb7d3fbdb1 /sys | |
parent | 34c8ec034ca378e7e0d21a50c7878d4e81958d3a (diff) | |
download | FreeBSD-src-9428c312c85831539a93248f10813cf842ae1525.zip FreeBSD-src-9428c312c85831539a93248f10813cf842ae1525.tar.gz |
Fix AHCI 1.2 version checks. This should be mostly cosmetic.
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ahci/ahci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ahci/ahci.c b/sys/dev/ahci/ahci.c index f41539b..d661416 100644 --- a/sys/dev/ahci/ahci.c +++ b/sys/dev/ahci/ahci.c @@ -403,7 +403,7 @@ ahci_attach(device_t dev) /* Get the HW capabilities */ version = ATA_INL(ctlr->r_mem, AHCI_VS); ctlr->caps = ATA_INL(ctlr->r_mem, AHCI_CAP); - if (version >= 0x00010020) + if (version >= 0x00010200) ctlr->caps2 = ATA_INL(ctlr->r_mem, AHCI_CAP2); if (ctlr->caps & AHCI_CAP_EMS) ctlr->capsem = ATA_INL(ctlr->r_mem, AHCI_EM_CTL); @@ -483,7 +483,7 @@ ahci_attach(device_t dev) (ctlr->caps & AHCI_CAP_SXS) ? " eSATA":"", (ctlr->caps & AHCI_CAP_NPMASK) + 1); } - if (bootverbose && version >= 0x00010020) { + if (bootverbose && version >= 0x00010200) { device_printf(dev, "Caps2:%s%s%s\n", (ctlr->caps2 & AHCI_CAP2_APST) ? " APST":"", (ctlr->caps2 & AHCI_CAP2_NVMP) ? " NVMP":"", @@ -982,7 +982,7 @@ ahci_ch_attach(device_t dev) } ch->chcaps = ATA_INL(ch->r_mem, AHCI_P_CMD); version = ATA_INL(ctlr->r_mem, AHCI_VS); - if (version < 0x00010020 && (ctlr->caps & AHCI_CAP_FBSS)) + if (version < 0x00010200 && (ctlr->caps & AHCI_CAP_FBSS)) ch->chcaps |= AHCI_P_CMD_FBSCP; if (bootverbose) { device_printf(dev, "Caps:%s%s%s%s%s\n", |