Module Name:    src
Committed By:   dyoung
Date:           Tue Apr  5 23:25:00 UTC 2011

Modified Files:
        src/sys/dev/pci: chipsfb.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/pci/chipsfb.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/chipsfb.c
diff -u src/sys/dev/pci/chipsfb.c:1.27 src/sys/dev/pci/chipsfb.c:1.28
--- src/sys/dev/pci/chipsfb.c:1.27	Wed Mar 23 04:02:43 2011
+++ src/sys/dev/pci/chipsfb.c	Tue Apr  5 23:25:00 2011
@@ -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);
 

Reply via email to