Date: Sat, 18 Dec 2010 23:26:38 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r216550 - head/sys/dev/jme Message-ID: <201012182326.oBINQcqF037128@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012182326.oBINQcqF037128>