Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Bitwise-OR PCI_COMMAND_IO_ENABLE | PCI_COMMAND_M...



details:   https://anonhg.NetBSD.org/src/rev/0553b7b885f3
branches:  trunk
changeset: 763860:0553b7b885f3
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Tue Apr 05 23:25:00 2011 +0000

description:
Bitwise-OR PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE into
the PCI Command Register instead of PCI_FLAGS_IO_ENABLED |
PCI_FLAGS_MEM_ENABLED.  The latter amounts to the same value, but the
names are in the pa_flags namespace instead of the PCI Command Register
bits namespace.

diffstat:

 sys/dev/pci/chipsfb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d884b18f8b0b -r 0553b7b885f3 sys/dev/pci/chipsfb.c
--- a/sys/dev/pci/chipsfb.c     Tue Apr 05 23:10:52 2011 +0000
+++ b/sys/dev/pci/chipsfb.c     Tue Apr 05 23:25:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chipsfb.c,v 1.27 2011/03/23 04:02:43 macallan Exp $    */
+/*     $NetBSD: chipsfb.c,v 1.28 2011/04/05 23:25:00 dyoung Exp $      */
 
 /*
  * Copyright (c) 2006 Michael Lorenz
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: chipsfb.c,v 1.27 2011/03/23 04:02:43 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: chipsfb.c,v 1.28 2011/04/05 23:25:00 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -98,7 +98,7 @@
 
        screg = pci_conf_read(scp->sc_pc, scp->sc_pcitag,
            PCI_COMMAND_STATUS_REG);
-       screg |= PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED;
+       screg |= PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE;
        pci_conf_write(scp->sc_pc, scp->sc_pcitag, PCI_COMMAND_STATUS_REG, 
            screg);
 



Home | Main Index | Thread Index | Old Index