Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Use correct macro "PCI_SATA_REV" instead of PCI_...
details: https://anonhg.NetBSD.org/src/rev/d6b63c4bb066
branches: trunk
changeset: 352368:d6b63c4bb066
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Mar 28 10:28:59 2017 +0000
description:
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.
diffstat:
sys/dev/pci/pci_subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d734917cd1ad -r d6b63c4bb066 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c Tue Mar 28 10:25:11 2017 +0000
+++ b/sys/dev/pci/pci_subr.c Tue Mar 28 10:28:59 2017 +0000
@@ -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 @@
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),
Home |
Main Index |
Thread Index |
Old Index