svn commit: r216550 - head/sys/dev/jme
Pyun YongHyeon
yongari at FreeBSD.org
Sat Dec 18 23:26:38 UTC 2010
Author: yongari
Date: Sat Dec 18 23:26:38 2010
New Revision: 216550
URL: http://svn.freebsd.org/changeset/base/216550
Log:
Use system defined PCIR_EXPRESS_DEVICE_CTL instead of using magic
number.
Modified:
head/sys/dev/jme/if_jme.c
Modified: head/sys/dev/jme/if_jme.c
==============================================================================
--- head/sys/dev/jme/if_jme.c Sat Dec 18 23:24:59 2010 (r216549)
+++ head/sys/dev/jme/if_jme.c Sat Dec 18 23:26:38 2010 (r216550)
@@ -675,7 +675,7 @@ jme_attach(device_t dev)
/* Set max allowable DMA size. */
if (pci_find_extcap(dev, PCIY_EXPRESS, &i) == 0) {
sc->jme_flags |= JME_FLAG_PCIE;
- burst = pci_read_config(dev, i + 0x08, 2);
+ burst = pci_read_config(dev, i + PCIR_EXPRESS_DEVICE_CTL, 2);
if (bootverbose) {
device_printf(dev, "Read request size : %d bytes.\n",
128 << ((burst >> 12) & 0x07));
More information about the svn-src-head
mailing list