Recognize BCM57762 A0 and A1. My diff for this only added the A0 revision,
authorkettenis <kettenis@openbsd.org>
Mon, 19 Apr 2021 17:03:49 +0000 (17:03 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 19 Apr 2021 17:03:49 +0000 (17:03 +0000)
but the A1 revision has been seen in the wild and Brad Smith provided
a diff that adds both.

ok jsg@

sys/dev/pci/if_bge.c
sys/dev/pci/if_bgereg.h

index 5c114d6..95ed832 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_bge.c,v 1.393 2020/12/12 11:48:52 jan Exp $        */
+/*     $OpenBSD: if_bge.c,v 1.394 2021/04/19 17:03:49 kettenis Exp $   */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -403,6 +403,8 @@ static const struct bge_revision {
        { BGE_CHIPID_BCM5906_A2, "BCM5906 A2" },
        { BGE_CHIPID_BCM57765_A0, "BCM57765 A0" },
        { BGE_CHIPID_BCM57765_B0, "BCM57765 B0" },
+       { BGE_CHIPID_BCM57766_A0, "BCM57766 A0" },
+       { BGE_CHIPID_BCM57766_A1, "BCM57766 A1" },
        { BGE_CHIPID_BCM57780_A0, "BCM57780 A0" },
        { BGE_CHIPID_BCM57780_A1, "BCM57780 A1" },
 
index b52286b..a50f259 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_bgereg.h,v 1.131 2020/06/18 17:13:32 kettenis Exp $        */
+/*     $OpenBSD: if_bgereg.h,v 1.132 2021/04/19 17:03:49 kettenis Exp $        */
 
 /*
  * Copyright (c) 2001 Wind River Systems
 #define        BGE_CHIPID_BCM5762_A0           0x05762000
 #define        BGE_CHIPID_BCM57765_A0          0x57785000
 #define        BGE_CHIPID_BCM57765_B0          0x57785100
+#define        BGE_CHIPID_BCM57766_A0          0x57766000
+#define        BGE_CHIPID_BCM57766_A1          0x57766001
 
 /* shorthand one */
 #define        BGE_ASICREV(x)                  ((x) >> 12)