Use system defined PCIR_EXPRESS_DEVICE_CTL instead of using magic
number.
This commit is contained in:
parent
cd33cef723
commit
4d9ab34335
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216550
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user