svn commit: r210015 - head/sys/dev/bge
Pyun YongHyeon
yongari at FreeBSD.org
Tue Jul 13 19:45:41 UTC 2010
Author: yongari
Date: Tue Jul 13 19:45:40 2010
New Revision: 210015
URL: http://svn.freebsd.org/changeset/base/210015
Log:
Prefer PCIR_BAR macro over BGE_PCI_BAR0.
Modified:
head/sys/dev/bge/if_bge.c
Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c Tue Jul 13 19:42:55 2010 (r210014)
+++ head/sys/dev/bge/if_bge.c Tue Jul 13 19:45:40 2010 (r210015)
@@ -2533,7 +2533,7 @@ bge_attach(device_t dev)
*/
pci_enable_busmaster(dev);
- rid = BGE_PCI_BAR0;
+ rid = PCIR_BAR(0);
sc->bge_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
RF_ACTIVE);
@@ -3044,7 +3044,7 @@ bge_release_resources(struct bge_softc *
if (sc->bge_res != NULL)
bus_release_resource(dev, SYS_RES_MEMORY,
- BGE_PCI_BAR0, sc->bge_res);
+ PCIR_BAR(0), sc->bge_res);
if (sc->bge_ifp != NULL)
if_free(sc->bge_ifp);
More information about the svn-src-all
mailing list