summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1999-02-27 18:44:59 +0000
committerJason Wright <jason@cvs.openbsd.org>1999-02-27 18:44:59 +0000
commit2d225193541d1fb8e9d44c5c0be8ea734bf0dd34 (patch)
tree4b2c62e1ef1770f72b969dfd7396ba919fac22db /sys/dev
parent78d7e1843d2489a6696dd134094ee311d22b7d5e (diff)
Sync with FreeBSD:
o match pnic-ii o make sure that ifp->if_snd.ifq_maxlen is initialized
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_pn.c11
-rw-r--r--sys/dev/pci/if_pnreg.h5
2 files changed, 11 insertions, 5 deletions
diff --git a/sys/dev/pci/if_pn.c b/sys/dev/pci/if_pn.c
index e7a957c3108..e772778120e 100644
--- a/sys/dev/pci/if_pn.c
+++ b/sys/dev/pci/if_pn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pn.c,v 1.2 1999/02/26 17:05:54 jason Exp $ */
+/* $OpenBSD: if_pn.c,v 1.3 1999/02/27 18:44:58 jason Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -31,7 +31,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $FreeBSD: if_pn.c,v 1.6 1999/01/05 00:59:08 wpaul Exp $
+ * $FreeBSD: if_pn.c,v 1.8 1999/02/26 07:50:53 wpaul Exp $
*/
/*
@@ -132,7 +132,7 @@
#if !defined(lint) && defined(__FreeBSD__)
static const char rcsid[] =
- "$Id: if_pn.c,v 1.2 1999/02/26 17:05:54 jason Exp $";
+ "$FreeBSD: if_pn.c,v 1.8 1999/02/26 07:50:53 wpaul Exp $";
#endif
#if defined(__FreeBSD__)
@@ -142,6 +142,8 @@ static const char rcsid[] =
static struct pn_type pn_devs[] = {
{ PN_VENDORID, PN_DEVICEID_PNIC,
"82c168/82c169 PNIC 10/100BaseTX" },
+ { PN_VENDORID, PN_DEVICEID_PNIC_II,
+ "82c115 PNIC II 10/100BaseTX" },
{ 0, 0, NULL }
};
#endif
@@ -999,6 +1001,7 @@ pn_attach(config_id, unit)
ifp->if_watchdog = pn_watchdog;
ifp->if_init = pn_init;
ifp->if_baudrate = 10000000;
+ ifp->if_snd.ifq_maxlen = PN_TX_LIST_CNT - 1;
if (bootverbose)
printf("pn%d: probing for a PHY\n", sc->pn_unit);
@@ -2106,6 +2109,7 @@ pn_probe(parent, match, aux)
if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_LITEON) {
switch (PCI_PRODUCT(pa->pa_id)) {
case PCI_PRODUCT_LITEON_PNIC:
+ case PCI_PRODUCT_LITEON_PNICII:
return (1);
}
}
@@ -2226,6 +2230,7 @@ pn_attach(parent, self, aux)
ifp->if_start = pn_start;
ifp->if_watchdog = pn_watchdog;
ifp->if_baudrate = 10000000;
+ ifp->if_snd.ifq_maxlen = PN_TX_LIST_CNT - 1;
bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);
for (i = PN_PHYADDR_MIN; i < PN_PHYADDR_MAX + 1; i++) {
diff --git a/sys/dev/pci/if_pnreg.h b/sys/dev/pci/if_pnreg.h
index 9bb1c1d32a4..d3218e46c65 100644
--- a/sys/dev/pci/if_pnreg.h
+++ b/sys/dev/pci/if_pnreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pnreg.h,v 1.1 1999/01/11 04:28:25 jason Exp $ */
+/* $OpenBSD: if_pnreg.h,v 1.2 1999/02/27 18:44:58 jason Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -31,7 +31,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $FreeBSD: if_pnreg.h,v 1.4 1999/01/05 00:59:08 wpaul Exp $
+ * $FreeBSD: if_pnreg.h,v 1.5 1999/02/26 07:50:53 wpaul Exp $
*/
/*
@@ -488,6 +488,7 @@ struct pn_softc {
* Lite-On PNIC PCI device ID.
*/
#define PN_DEVICEID_PNIC 0x0002
+#define PN_DEVICEID_PNIC_II 0xc115
/*
* Texas Instruments PHY identifiers