summaryrefslogtreecommitdiffstats
path: root/sys/dev/msk/if_mskreg.h
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2010-02-26 19:18:29 +0000
committeryongari <yongari@FreeBSD.org>2010-02-26 19:18:29 +0000
commitd0041b3e1cf74930f4ef2b33ddf1b3407201272a (patch)
tree30055fee8cf361d090294b1678493de83fca7fcb /sys/dev/msk/if_mskreg.h
parent2d905c940ccc2b41cf1710d829eb70890f0b05ae (diff)
downloadFreeBSD-src-d0041b3e1cf74930f4ef2b33ddf1b3407201272a.zip
FreeBSD-src-d0041b3e1cf74930f4ef2b33ddf1b3407201272a.tar.gz
Don't hardcod register offset to set PCIe max read request size.
The register offset is not valid on 88E8072 controller. Also don't blindly increase max read request size to 4096, instead, use 2048 which seems to be more sane value and only change the value if the hardware default size(512) was used on that register. For PCIX controllers, use system defined constant rather than using magic value. While I'm here stop showing negotiated link width.
Diffstat (limited to 'sys/dev/msk/if_mskreg.h')
-rw-r--r--sys/dev/msk/if_mskreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/msk/if_mskreg.h b/sys/dev/msk/if_mskreg.h
index 75056b6..e528e33 100644
--- a/sys/dev/msk/if_mskreg.h
+++ b/sys/dev/msk/if_mskreg.h
@@ -2476,6 +2476,8 @@ struct msk_softc {
uint8_t msk_hw_rev;
uint8_t msk_bustype;
uint8_t msk_num_port;
+ int msk_expcap;
+ int msk_pcixcap;
int msk_ramsize; /* amount of SRAM on NIC */
uint32_t msk_pmd; /* physical media type */
uint32_t msk_intrmask;
OpenPOWER on IntegriCloud