Module Name: src Committed By: msaitoh Date: Tue Mar 28 10:29:00 UTC 2017
Modified Files: src/sys/dev/pci: pci_subr.c Log Message: Use correct macro "PCI_SATA_REV" instead of PCI_MSIX_CTL for SATA revision register. This is not a real bug because PCI_SATA_REV and PCI_MSIX_CTL have the same value. To generate a diff of this commit: cvs rdiff -u -r1.168 -r1.169 src/sys/dev/pci/pci_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/pci_subr.c diff -u src/sys/dev/pci/pci_subr.c:1.168 src/sys/dev/pci/pci_subr.c:1.169 --- src/sys/dev/pci/pci_subr.c:1.168 Fri Mar 17 11:20:16 2017 +++ src/sys/dev/pci/pci_subr.c Tue Mar 28 10:28:59 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_subr.c,v 1.168 2017/03/17 11:20:16 msaitoh Exp $ */ +/* $NetBSD: pci_subr.c,v 1.169 2017/03/28 10:28:59 msaitoh Exp $ */ /* * Copyright (c) 1997 Zubin D. Dittia. All rights reserved. @@ -40,7 +40,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.168 2017/03/17 11:20:16 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.169 2017/03/28 10:28:59 msaitoh Exp $"); #ifdef _KERNEL_OPT #include "opt_pci.h" @@ -2239,7 +2239,7 @@ pci_conf_print_sata_cap(const pcireg_t * printf("\n Serial ATA Capability Register\n"); - reg = regs[o2i(capoff + PCI_MSIX_CTL)]; + reg = regs[o2i(capoff + PCI_SATA_REV)]; printf(" Revision register: 0x%04x\n", (reg >> 16) & 0xff); printf(" Revision: %u.%u\n", (unsigned int)__SHIFTOUT(reg, PCI_SATA_REV_MAJOR),