From 96fda1ea0570af073eb2e9ef0770fe54766ff42b Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Fri, 7 Feb 2003 23:02:02 +0000 Subject: [PATCH] add 5823 device id's; this allows 5823 parts to function but you cannot use the AES functionality Submitted by: Jonathan Stone MFC after: 1 day --- sys/dev/ubsec/ubsec.c | 8 ++++++-- sys/dev/ubsec/ubsecreg.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/dev/ubsec/ubsec.c b/sys/dev/ubsec/ubsec.c index b18acfd915bc..de1566eb47c4 100644 --- a/sys/dev/ubsec/ubsec.c +++ b/sys/dev/ubsec/ubsec.c @@ -216,7 +216,9 @@ ubsec_probe(device_t dev) (pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5805 || pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5820 || pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5821 || - pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5822)) + pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5822 || + pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823 + )) return (0); return (ENXIO); } @@ -232,6 +234,7 @@ ubsec_partname(struct ubsec_softc *sc) case PCI_PRODUCT_BROADCOM_5820: return "Broadcom 5820"; case PCI_PRODUCT_BROADCOM_5821: return "Broadcom 5821"; case PCI_PRODUCT_BROADCOM_5822: return "Broadcom 5822"; + case PCI_PRODUCT_BROADCOM_5823: return "Broadcom 5823"; } return "Broadcom unknown-part"; case PCI_VENDOR_BLUESTEEL: @@ -282,7 +285,8 @@ ubsec_attach(device_t dev) if (pci_get_vendor(dev) == PCI_VENDOR_BROADCOM && (pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5821 || - pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5822)) { + pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5822 || + pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823 )) { /* NB: the 5821/5822 defines some additional status bits */ sc->sc_statmask |= BS_STAT_MCR1_ALLEMPTY | BS_STAT_MCR2_ALLEMPTY; diff --git a/sys/dev/ubsec/ubsecreg.h b/sys/dev/ubsec/ubsecreg.h index bd2335223155..0140988d0e36 100644 --- a/sys/dev/ubsec/ubsecreg.h +++ b/sys/dev/ubsec/ubsecreg.h @@ -58,6 +58,7 @@ #define PCI_PRODUCT_BROADCOM_5820 0x5820 /* 5820 */ #define PCI_PRODUCT_BROADCOM_5821 0x5821 /* 5821 */ #define PCI_PRODUCT_BROADCOM_5822 0x5822 /* 5822 */ +#define PCI_PRODUCT_BROADCOM_5823 0x5823 /* 5823 */ #define UBS_PCI_RTY_SHIFT 8 #define UBS_PCI_RTY_MASK 0xff