Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Refer to bits in the PCI CSR with using PCI_COMM...



details:   https://anonhg.NetBSD.org/src/rev/8208dd856748
branches:  trunk
changeset: 764316:8208dd856748
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Fri Apr 15 21:47:39 2011 +0000

description:
Refer to bits in the PCI CSR with using PCI_COMMAND_* instead of
PCI_FLAGS_*: change PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED to
PCI_COMMAND_IO_ENABLE and PCI_COMMAND_MEM_ENABLE, respectively.

diffstat:

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

diffs (27 lines):

diff -r 958a10666f98 -r 8208dd856748 sys/dev/pci/radeonfb.c
--- a/sys/dev/pci/radeonfb.c    Fri Apr 15 21:25:05 2011 +0000
+++ b/sys/dev/pci/radeonfb.c    Fri Apr 15 21:47:39 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeonfb.c,v 1.42 2011/02/06 23:25:17 jmcneill Exp $ */
+/*     $NetBSD: radeonfb.c,v 1.43 2011/04/15 21:47:39 dyoung Exp $ */
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.42 2011/02/06 23:25:17 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.43 2011/04/15 21:47:39 dyoung Exp $");
 
 #define RADEONFB_DEFAULT_DEPTH 8
 
@@ -464,7 +464,7 @@
 
        /* enable memory and IO access */
        screg = pci_conf_read(sc->sc_pc, sc->sc_pt, 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(sc->sc_pc, sc->sc_pt, PCI_COMMAND_STATUS_REG, screg);
 
        /*



Home | Main Index | Thread Index | Old Index