summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_bcw_pci.c
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2007-02-26 14:14:02 +0000
committermglocker <mglocker@openbsd.org>2007-02-26 14:14:02 +0000
commit5f3cf0dfadbf5e239014382ae52406bd1348508e (patch)
tree5aa880825ebdaf8177e07b012138a7c7d8cdbb9f /sys/dev/pci/if_bcw_pci.c
parentadd an relay example (diff)
downloadwireguard-openbsd-5f3cf0dfadbf5e239014382ae52406bd1348508e.tar.xz
wireguard-openbsd-5f3cf0dfadbf5e239014382ae52406bd1348508e.zip
We need to save some PCI infos in our softc struct for further decisions
in the driver code.
Diffstat (limited to 'sys/dev/pci/if_bcw_pci.c')
-rw-r--r--sys/dev/pci/if_bcw_pci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_bcw_pci.c b/sys/dev/pci/if_bcw_pci.c
index 86071e6284b..f007a1d475f 100644
--- a/sys/dev/pci/if_bcw_pci.c
+++ b/sys/dev/pci/if_bcw_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bcw_pci.c,v 1.9 2007/02/24 23:05:04 mglocker Exp $ */
+/* $OpenBSD: if_bcw_pci.c,v 1.10 2007/02/26 14:14:02 mglocker Exp $ */
/*
* Copyright (c) 2006 Jon Simola <jsimola@gmail.com>
@@ -223,6 +223,9 @@ bcw_pci_attach(struct device *parent, struct device *self, void *aux)
/*
* Get some PCI based info into the softc
*/
+ sc->sc_board_vendor = PCI_VENDOR(pa->pa_id);
+ sc->sc_board_type = sc->sc_conf_read(sc, 0x2e); /* XXX right one? */
+ sc->sc_board_rev = PCI_REVISION(pa->pa_class); /* XXX right one? */
sc->sc_prodid = PCI_PRODUCT(pa->pa_id);
/*