diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-01-05 21:32:26 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-01-05 21:32:26 +0000 |
commit | 7bd5169b82f3de1e173581bfde0c6e22c6084885 (patch) | |
tree | 019aaf32f2cedb5a20534457114b2abcb92dad6e /sys/dev/pci | |
parent | d849f0456272ac64cd840d78fb48c8d2e6e0acf2 (diff) |
For Yukon-based cards, pass MIIF_DOPAUSE to mii_attach().
From brad@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_sk.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index d3c188a531d..a728013b477 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.134 2007/01/03 23:04:28 kettenis Exp $ */ +/* $OpenBSD: if_sk.c,v 1.135 2007/01/05 21:32:25 kettenis Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -1230,8 +1230,13 @@ sk_attach(struct device *parent, struct device *self, void *aux) ifmedia_init(&sc_if->sk_mii.mii_media, 0, sk_ifmedia_upd, sk_ifmedia_sts); - mii_attach(self, &sc_if->sk_mii, 0xffffffff, MII_PHY_ANY, - MII_OFFSET_ANY, 0); + if (SK_IS_GENESIS(sc)) { + mii_attach(self, &sc_if->sk_mii, 0xffffffff, MII_PHY_ANY, + MII_OFFSET_ANY, 0); + } else { + mii_attach(self, &sc_if->sk_mii, 0xffffffff, MII_PHY_ANY, + MII_OFFSET_ANY, MIIF_DOPAUSE); + } if (LIST_FIRST(&sc_if->sk_mii.mii_phys) == NULL) { printf("%s: no PHY found!\n", sc_if->sk_dev.dv_xname); ifmedia_add(&sc_if->sk_mii.mii_media, IFM_ETHER|IFM_MANUAL, |