diff options
author | smh <smh@FreeBSD.org> | 2013-05-18 23:36:21 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2013-05-18 23:36:21 +0000 |
commit | 99516daae550194c4659ff0f4c31cb515b63ee88 (patch) | |
tree | 5e94763c709f06d7bbb8507ed710a1dc505213a0 /sys/dev/ahci | |
parent | 8987b328e8f40bef2aaf5a2de0ea4d5a0aab8c62 (diff) | |
download | FreeBSD-src-99516daae550194c4659ff0f4c31cb515b63ee88.zip FreeBSD-src-99516daae550194c4659ff0f4c31cb515b63ee88.tar.gz |
Added output of device QUIRKS for CAM and AHCI devices during boot.
Reviewed by: mav
Approved by: pjd (mentor)
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/ahci')
-rw-r--r-- | sys/dev/ahci/ahci.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/dev/ahci/ahci.c b/sys/dev/ahci/ahci.c index 88069eb..56fa668 100644 --- a/sys/dev/ahci/ahci.c +++ b/sys/dev/ahci/ahci.c @@ -115,6 +115,22 @@ static struct { #define AHCI_Q_NOCOUNT 1024 #define AHCI_Q_ALTSIG 2048 #define AHCI_Q_NOMSI 4096 + +#define AHCI_Q_BIT_STRING \ + "\020" \ + "\001NOFORCE" \ + "\002NOPMP" \ + "\003NONCQ" \ + "\0041CH" \ + "\0052CH" \ + "\0064CH" \ + "\007EDGEIS" \ + "\010SATA2" \ + "\011NOBSYRES" \ + "\012NOAA" \ + "\013NOCOUNT" \ + "\014ALTSIG" \ + "\015NOMSI" } ahci_ids[] = { {0x43801002, 0x00, "ATI IXP600", AHCI_Q_NOMSI}, {0x43901002, 0x00, "ATI IXP700", 0}, @@ -489,6 +505,10 @@ ahci_attach(device_t dev) "supported" : "not supported", (ctlr->caps & AHCI_CAP_FBSS) ? " with FBS" : ""); + if (ctlr->quirks != 0) { + device_printf(dev, "quirks=0x%b\n", ctlr->quirks, + AHCI_Q_BIT_STRING); + } if (bootverbose) { device_printf(dev, "Caps:%s%s%s%s%s%s%s%s %sGbps", (ctlr->caps & AHCI_CAP_64BIT) ? " 64bit":"", |