From 6a4689e2b2adf8466d577557dc240a548bcea416 Mon Sep 17 00:00:00 2001 From: kettenis Date: Mon, 19 Apr 2021 17:03:49 +0000 Subject: [PATCH] Recognize BCM57762 A0 and A1. My diff for this only added the A0 revision, 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 | 4 +++- sys/dev/pci/if_bgereg.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 5c114d63774..95ed832ae5e 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.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" }, diff --git a/sys/dev/pci/if_bgereg.h b/sys/dev/pci/if_bgereg.h index b52286b8d22..a50f259febc 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.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 @@ -310,6 +310,8 @@ #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) -- 2.20.1