diff options
author | 2013-03-07 01:03:57 +0000 | |
---|---|---|
committer | 2013-03-07 01:03:57 +0000 | |
commit | 931a39d92d9cd090764d6c351f9d4221c44a171b (patch) | |
tree | a9cf1af4cf9d90d46e3ef9ef50cd95b5b3e11f42 /sys/dev/pci/if_rl_pci.c | |
parent | repeat test with a style appended to the username (diff) | |
download | wireguard-openbsd-931a39d92d9cd090764d6c351f9d4221c44a171b.tar.xz wireguard-openbsd-931a39d92d9cd090764d6c351f9d4221c44a171b.zip |
Fix and simplify determining whether we're using a 8129 or 8139 chipset. Only
the 8129 PCI id is a 8129, everything else is a 8139.
Allows the D-Link DFE-520TX board to work and would ensure proper determination
of the chipset for at least the 8138 based boards (PCI/CardBus).
Tested by kirby@
Ok kirby@ sthen@ chris@
Diffstat (limited to 'sys/dev/pci/if_rl_pci.c')
-rw-r--r-- | sys/dev/pci/if_rl_pci.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/if_rl_pci.c b/sys/dev/pci/if_rl_pci.c index d7063a9bc8b..01488d7c81a 100644 --- a/sys/dev/pci/if_rl_pci.c +++ b/sys/dev/pci/if_rl_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rl_pci.c,v 1.25 2013/02/08 08:00:34 jasper Exp $ */ +/* $OpenBSD: if_rl_pci.c,v 1.26 2013/03/07 01:03:57 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -183,6 +183,11 @@ rl_pci_attach(struct device *parent, struct device *self, void *aux) sc->sc_dmat = pa->pa_dmat; + if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RT8129) + sc->rl_type = RL_8129; + else + sc->rl_type = RL_8139; + rl_attach(sc); } |