kernel - Report AHCI rev programmatically
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 14 Jan 2016 03:10:40 +0000 (19:10 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 14 Jan 2016 03:10:40 +0000 (19:10 -0800)
commite20b81f066892752da2822a78792fa9c6597e182
tree8ffa6574e948bd0465a8273af3b007d1459e85b5
parentf95769d250511419731d255c79b3be89a878753d
kernel - Report AHCI rev programmatically

* Remove the switch() and generate the AHCI rev from the register contents.

* Fixes reporting of some AHCI chipsets as an unknown version of AHCI
  (Skylake reports AHCI 1.3.1, our switch only had 1.3.0).
sys/dev/disk/ahci/ahci_attach.c