diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-10-07 23:08:51 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-10-07 23:08:51 +0000 |
commit | 3dabbc85753d59433925bc3aac8ca0b6bc702b30 (patch) | |
tree | dfdc08778315177c798d134afaa4c79ef5cd2b59 /sys/dev/pci/if_bge.c | |
parent | 0de9d691c8f06957047f34597d548083cc3c43b7 (diff) |
add a no Ethernet@Wirespeed flag.
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r-- | sys/dev/pci/if_bge.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 5c57eb935a7..ab8f3236432 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.185 2006/10/07 20:28:48 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.186 2006/10/07 23:08:50 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -1805,6 +1805,13 @@ bge_attach(struct device *parent, struct device *self, void *aux) BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5906) sc->bge_flags |= BGE_10_100_ONLY; + if (BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5700 || + (BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5705 && + (sc->bge_chipid != BGE_CHIPID_BCM5705_A0 && + sc->bge_chipid != BGE_CHIPID_BCM5705_A1)) || + BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5906) + sc->bge_flags |= BGE_NO_ETH_WIRE_SPEED; + if (BGE_CHIPREV(sc->bge_chipid) == BGE_CHIPREV_5703_AX || BGE_CHIPREV(sc->bge_chipid) == BGE_CHIPREV_5704_AX) sc->bge_flags |= BGE_PHY_ADC_BUG; |