hifn7751.c (140480) | hifn7751.c (143161) |
---|---|
1/* $OpenBSD: hifn7751.c,v 1.120 2002/05/17 00:33:34 deraadt Exp $ */ 2 3/*- 4 * Invertex AEON / Hifn 7751 driver 5 * Copyright (c) 1999 Invertex Inc. All rights reserved. 6 * Copyright (c) 1999 Theo de Raadt 7 * Copyright (c) 2000-2001 Network Security Technologies, Inc. 8 * http://www.netsec.net --- 27 unchanged lines hidden (view full) --- 36 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 * 38 * Effort sponsored in part by the Defense Advanced Research Projects 39 * Agency (DARPA) and Air Force Research Laboratory, Air Force 40 * Materiel Command, USAF, under agreement number F30602-01-2-0537. 41 */ 42 43#include <sys/cdefs.h> | 1/* $OpenBSD: hifn7751.c,v 1.120 2002/05/17 00:33:34 deraadt Exp $ */ 2 3/*- 4 * Invertex AEON / Hifn 7751 driver 5 * Copyright (c) 1999 Invertex Inc. All rights reserved. 6 * Copyright (c) 1999 Theo de Raadt 7 * Copyright (c) 2000-2001 Network Security Technologies, Inc. 8 * http://www.netsec.net --- 27 unchanged lines hidden (view full) --- 36 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 * 38 * Effort sponsored in part by the Defense Advanced Research Projects 39 * Agency (DARPA) and Air Force Research Laboratory, Air Force 40 * Materiel Command, USAF, under agreement number F30602-01-2-0537. 41 */ 42 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/sys/dev/hifn/hifn7751.c 140480 2005-01-19 17:03:35Z sam $"); | 44__FBSDID("$FreeBSD: head/sys/dev/hifn/hifn7751.c 143161 2005-03-05 18:30:12Z imp $"); |
45 46/* 47 * Driver for various Hifn encryption processors. 48 */ 49#include "opt_hifn.h" 50 51#include <sys/param.h> 52#include <sys/systm.h> --- 135 unchanged lines hidden (view full) --- 188 * Probe for a supported device. The PCI vendor and device 189 * IDs are used to detect devices we know how to handle. 190 */ 191static int 192hifn_probe(device_t dev) 193{ 194 if (pci_get_vendor(dev) == PCI_VENDOR_INVERTEX && 195 pci_get_device(dev) == PCI_PRODUCT_INVERTEX_AEON) | 45 46/* 47 * Driver for various Hifn encryption processors. 48 */ 49#include "opt_hifn.h" 50 51#include <sys/param.h> 52#include <sys/systm.h> --- 135 unchanged lines hidden (view full) --- 188 * Probe for a supported device. The PCI vendor and device 189 * IDs are used to detect devices we know how to handle. 190 */ 191static int 192hifn_probe(device_t dev) 193{ 194 if (pci_get_vendor(dev) == PCI_VENDOR_INVERTEX && 195 pci_get_device(dev) == PCI_PRODUCT_INVERTEX_AEON) |
196 return (0); | 196 return (BUS_PROBE_DEFAULT); |
197 if (pci_get_vendor(dev) == PCI_VENDOR_HIFN && 198 (pci_get_device(dev) == PCI_PRODUCT_HIFN_7751 || 199 pci_get_device(dev) == PCI_PRODUCT_HIFN_7951 || 200 pci_get_device(dev) == PCI_PRODUCT_HIFN_7955 || 201 pci_get_device(dev) == PCI_PRODUCT_HIFN_7956 || 202 pci_get_device(dev) == PCI_PRODUCT_HIFN_7811)) | 197 if (pci_get_vendor(dev) == PCI_VENDOR_HIFN && 198 (pci_get_device(dev) == PCI_PRODUCT_HIFN_7751 || 199 pci_get_device(dev) == PCI_PRODUCT_HIFN_7951 || 200 pci_get_device(dev) == PCI_PRODUCT_HIFN_7955 || 201 pci_get_device(dev) == PCI_PRODUCT_HIFN_7956 || 202 pci_get_device(dev) == PCI_PRODUCT_HIFN_7811)) |
203 return (0); | 203 return (BUS_PROBE_DEFAULT); |
204 if (pci_get_vendor(dev) == PCI_VENDOR_NETSEC && 205 pci_get_device(dev) == PCI_PRODUCT_NETSEC_7751) | 204 if (pci_get_vendor(dev) == PCI_VENDOR_NETSEC && 205 pci_get_device(dev) == PCI_PRODUCT_NETSEC_7751) |
206 return (0); | 206 return (BUS_PROBE_DEFAULT); |
207 return (ENXIO); 208} 209 210static void 211hifn_dmamap_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) 212{ 213 bus_addr_t *paddr = (bus_addr_t*) arg; 214 *paddr = segs->ds_addr; --- 2675 unchanged lines hidden --- | 207 return (ENXIO); 208} 209 210static void 211hifn_dmamap_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) 212{ 213 bus_addr_t *paddr = (bus_addr_t*) arg; 214 *paddr = segs->ds_addr; --- 2675 unchanged lines hidden --- |