Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Less magic. 0x00000c00 is equal to PCIE_LCAP_ASPM.



details:   https://anonhg.NetBSD.org/src/rev/1b3ed5ec513d
branches:  trunk
changeset: 349740:1b3ed5ec513d
user:      maya <maya%NetBSD.org@localhost>
date:      Wed Dec 21 11:56:55 2016 +0000

description:
Less magic. 0x00000c00 is equal to PCIE_LCAP_ASPM.

diffstat:

 sys/dev/pci/if_alc.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r dc8478d1d05f -r 1b3ed5ec513d sys/dev/pci/if_alc.c
--- a/sys/dev/pci/if_alc.c      Wed Dec 21 09:46:39 2016 +0000
+++ b/sys/dev/pci/if_alc.c      Wed Dec 21 11:56:55 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_alc.c,v 1.23 2016/12/15 09:28:05 ozaki-r Exp $      */
+/*     $NetBSD: if_alc.c,v 1.24 2016/12/21 11:56:55 maya Exp $ */
 /*     $OpenBSD: if_alc.c,v 1.1 2009/08/08 09:31:13 kevlo Exp $        */
 /*-
  * Copyright (c) 2009, Pyun YongHyeon <yongari%FreeBSD.org@localhost>
@@ -1272,7 +1272,7 @@
                        /* Disable ASPM L0S and L1. */
                        cap = pci_conf_read(sc->sc_pct, sc->sc_pcitag,
                            base + PCIE_LCAP) >> 16;
-                       if ((cap & 0x00000c00) != 0) {
+                       if ((cap & PCIE_LCAP_ASPM) != 0) {
                                ctl = pci_conf_read(sc->sc_pct, sc->sc_pcitag,
                                    base + PCIE_LCSR) >> 16;
                                if ((ctl & 0x08) != 0)



Home | Main Index | Thread Index | Old Index