summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2009-06-19 21:31:55 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2009-06-19 21:31:55 +0000
commite599c76f1fdad5235141cad7a97f825a3038a985 (patch)
tree460561ac4f47d607e46f607e7f12d2cc10a844e4
parent728b24c6f35e09a7e8885e4a670f2a134d82b9e7 (diff)
Allow bge(4) to recognize the revisions of the 57780 ASICs. From Brad.
-rw-r--r--sys/dev/pci/if_bge.c4
-rw-r--r--sys/dev/pci/if_bgereg.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index d7177f3af99..4cfefcb64f4 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.275 2009/06/11 23:11:27 sthen Exp $ */
+/* $OpenBSD: if_bge.c,v 1.276 2009/06/19 21:31:54 naddy Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -362,6 +362,8 @@ static const struct bge_revision {
{ BGE_CHIPID_BCM5787_A2, "BCM5754/5787 A2" },
{ BGE_CHIPID_BCM5906_A1, "BCM5906 A1" },
{ BGE_CHIPID_BCM5906_A2, "BCM5906 A2" },
+ { BGE_CHIPID_BCM57780_A0, "BCM57780 A0" },
+ { BGE_CHIPID_BCM57780_A1, "BCM57780 A1" },
{ 0, NULL }
};
diff --git a/sys/dev/pci/if_bgereg.h b/sys/dev/pci/if_bgereg.h
index f564d2d4de8..939ddfbd5ca 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.96 2009/06/19 14:31:51 naddy Exp $ */
+/* $OpenBSD: if_bgereg.h,v 1.97 2009/06/19 21:31:54 naddy Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -301,6 +301,8 @@
#define BGE_CHIPID_BCM5787_A2 0xb002
#define BGE_CHIPID_BCM5906_A1 0xc001
#define BGE_CHIPID_BCM5906_A2 0xc002
+#define BGE_CHIPID_BCM57780_A0 0x57780000
+#define BGE_CHIPID_BCM57780_A1 0x57780001
/* shorthand one */
#define BGE_ASICREV(x) ((x) >> 12)