summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-08-28 01:12:18 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-08-28 01:12:18 +0000
commit077b4449a19372c784119f2bb4f6935904dad3ea (patch)
tree2eb876ee899f69e46fa6d964116354311c517113 /sys/dev
parentdfe9fe2afb08264b7be7deb2615a95062e0a75f1 (diff)
add a BGE_JUMBO flag.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_bge.c6
-rw-r--r--sys/dev/pci/if_bgereg.h3
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index 69b723acc15..64195d6b8a3 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.170 2006/08/28 00:49:47 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.171 2006/08/28 01:12:17 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -1860,8 +1860,10 @@ bge_attach(struct device *parent, struct device *self, void *aux)
ifp->if_capabilities = IFCAP_VLAN_MTU;
- if (BGE_IS_JUMBO_CAPABLE(sc))
+ if (BGE_IS_JUMBO_CAPABLE(sc)) {
ifp->if_hardmtu = BGE_JUMBO_MTU;
+ sc->bge_flags |= BGE_JUMBO;
+ }
/*
* Do MII setup.
diff --git a/sys/dev/pci/if_bgereg.h b/sys/dev/pci/if_bgereg.h
index 24569b3c482..257a66da0d5 100644
--- a/sys/dev/pci/if_bgereg.h
+++ b/sys/dev/pci/if_bgereg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bgereg.h,v 1.54 2006/08/28 00:52:16 brad Exp $ */
+/* $OpenBSD: if_bgereg.h,v 1.55 2006/08/28 01:12:17 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -2355,6 +2355,7 @@ struct bge_softc {
#define BGE_PCIX 0x00000080
#define BGE_PCIE 0x00000100
#define BGE_ASF_MODE 0x00000200
+#define BGE_JUMBO 0x00000400
bus_dma_tag_t bge_dmatag;
u_int32_t bge_chipid;