Deleted Added
full compact
ubsec.c (139749) ubsec.c (142880)
1/* $OpenBSD: ubsec.c,v 1.115 2002/09/24 18:33:26 jason Exp $ */
2
3/*-
4 * Copyright (c) 2000 Jason L. Wright (jason@thought.net)
5 * Copyright (c) 2000 Theo de Raadt (deraadt@openbsd.org)
6 * Copyright (c) 2001 Patrik Lindergren (patrik@ipunplugged.com)
7 *
8 * All rights reserved.

--- 25 unchanged lines hidden (view full) ---

34 * POSSIBILITY OF SUCH DAMAGE.
35 *
36 * Effort sponsored in part by the Defense Advanced Research Projects
37 * Agency (DARPA) and Air Force Research Laboratory, Air Force
38 * Materiel Command, USAF, under agreement number F30602-01-2-0537.
39 */
40
41#include <sys/cdefs.h>
1/* $OpenBSD: ubsec.c,v 1.115 2002/09/24 18:33:26 jason Exp $ */
2
3/*-
4 * Copyright (c) 2000 Jason L. Wright (jason@thought.net)
5 * Copyright (c) 2000 Theo de Raadt (deraadt@openbsd.org)
6 * Copyright (c) 2001 Patrik Lindergren (patrik@ipunplugged.com)
7 *
8 * All rights reserved.

--- 25 unchanged lines hidden (view full) ---

34 * POSSIBILITY OF SUCH DAMAGE.
35 *
36 * Effort sponsored in part by the Defense Advanced Research Projects
37 * Agency (DARPA) and Air Force Research Laboratory, Air Force
38 * Materiel Command, USAF, under agreement number F30602-01-2-0537.
39 */
40
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: head/sys/dev/ubsec/ubsec.c 139749 2005-01-06 01:43:34Z imp $");
42__FBSDID("$FreeBSD: head/sys/dev/ubsec/ubsec.c 142880 2005-03-01 07:50:12Z imp $");
43
44/*
45 * uBsec 5[56]01, 58xx hardware crypto accelerator
46 */
47
48#include "opt_ubsec.h"
49
50#include <sys/param.h>

--- 143 unchanged lines hidden (view full) ---

194 ubsec_stats, "driver statistics");
195
196static int
197ubsec_probe(device_t dev)
198{
199 if (pci_get_vendor(dev) == PCI_VENDOR_SUN &&
200 (pci_get_device(dev) == PCI_PRODUCT_SUN_5821 ||
201 pci_get_device(dev) == PCI_PRODUCT_SUN_SCA1K))
43
44/*
45 * uBsec 5[56]01, 58xx hardware crypto accelerator
46 */
47
48#include "opt_ubsec.h"
49
50#include <sys/param.h>

--- 143 unchanged lines hidden (view full) ---

194 ubsec_stats, "driver statistics");
195
196static int
197ubsec_probe(device_t dev)
198{
199 if (pci_get_vendor(dev) == PCI_VENDOR_SUN &&
200 (pci_get_device(dev) == PCI_PRODUCT_SUN_5821 ||
201 pci_get_device(dev) == PCI_PRODUCT_SUN_SCA1K))
202 return (0);
202 return (BUS_PROBE_DEFAULT);
203 if (pci_get_vendor(dev) == PCI_VENDOR_BLUESTEEL &&
204 (pci_get_device(dev) == PCI_PRODUCT_BLUESTEEL_5501 ||
205 pci_get_device(dev) == PCI_PRODUCT_BLUESTEEL_5601))
203 if (pci_get_vendor(dev) == PCI_VENDOR_BLUESTEEL &&
204 (pci_get_device(dev) == PCI_PRODUCT_BLUESTEEL_5501 ||
205 pci_get_device(dev) == PCI_PRODUCT_BLUESTEEL_5601))
206 return (0);
206 return (BUS_PROBE_DEFAULT);
207 if (pci_get_vendor(dev) == PCI_VENDOR_BROADCOM &&
208 (pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5801 ||
209 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5802 ||
210 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5805 ||
211 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5820 ||
212 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5821 ||
213 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5822 ||
214 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823
215 ))
207 if (pci_get_vendor(dev) == PCI_VENDOR_BROADCOM &&
208 (pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5801 ||
209 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5802 ||
210 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5805 ||
211 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5820 ||
212 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5821 ||
213 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5822 ||
214 pci_get_device(dev) == PCI_PRODUCT_BROADCOM_5823
215 ))
216 return (0);
216 return (BUS_PROBE_DEFAULT);
217 return (ENXIO);
218}
219
220static const char*
221ubsec_partname(struct ubsec_softc *sc)
222{
223 /* XXX sprintf numbers when not decoded */
224 switch (pci_get_vendor(sc->sc_dev)) {

--- 2647 unchanged lines hidden ---
217 return (ENXIO);
218}
219
220static const char*
221ubsec_partname(struct ubsec_softc *sc)
222{
223 /* XXX sprintf numbers when not decoded */
224 switch (pci_get_vendor(sc->sc_dev)) {

--- 2647 unchanged lines hidden ---