summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-10-10 17:46:36 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-10-10 17:46:36 +0000
commit7263c9099b90d4c63befb24e4d244f38490c6573 (patch)
treee45252bd20c172c3255da02bb1e29037d8d91cfe
parent5b7a10c42adea7642d59ad10d3c1d0f11c40f15d (diff)
Match the Sun Crypto Adapter 1000, it appears to be a broadcom 5821.
-rw-r--r--sys/dev/pci/ubsec.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c
index 936bf52f819..0cad2752ee6 100644
--- a/sys/dev/pci/ubsec.c
+++ b/sys/dev/pci/ubsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsec.c,v 1.116 2002/10/05 00:21:02 jason Exp $ */
+/* $OpenBSD: ubsec.c,v 1.117 2002/10/10 17:46:35 jason Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -152,6 +152,9 @@ ubsec_probe(parent, match, aux)
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_BROADCOM_5821 ||
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_BROADCOM_5822))
return (1);
+ if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_SUN &&
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_SUN_SCA1K)
+ return (1);
return (0);
}
@@ -192,8 +195,10 @@ ubsec_attach(parent, self, aux)
sc->sc_flags |= UBS_FLAGS_KEY | UBS_FLAGS_RNG |
UBS_FLAGS_LONGCTX | UBS_FLAGS_HWNORM | UBS_FLAGS_BIGKEY;
- if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_BROADCOM &&
- (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_BROADCOM_5821)) {
+ if ((PCI_VENDOR(pa->pa_id) == PCI_VENDOR_BROADCOM &&
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_BROADCOM_5821) ||
+ (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_SUN &&
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_SUN_SCA1K)) {
sc->sc_statmask |= BS_STAT_MCR1_ALLEMPTY |
BS_STAT_MCR2_ALLEMPTY;
sc->sc_flags |= UBS_FLAGS_KEY | UBS_FLAGS_RNG |