hifn7751.c (b5ff185e19f6013ca565b2a15bc2d6abce933f46) | hifn7751.c (73a1170a8c41cb848f17cc0a8839e9dcee3d126e) |
---|---|
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 --- 1015 unchanged lines hidden (view full) --- 1024 * as enabling crypto twice will lock the board. 1025 */ 1026static int 1027hifn_enable_crypto(struct hifn_softc *sc) 1028{ 1029 u_int32_t dmacfg, ramcfg, encl, addr, i; 1030 char *offtbl = NULL; 1031 | 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 --- 1015 unchanged lines hidden (view full) --- 1024 * as enabling crypto twice will lock the board. 1025 */ 1026static int 1027hifn_enable_crypto(struct hifn_softc *sc) 1028{ 1029 u_int32_t dmacfg, ramcfg, encl, addr, i; 1030 char *offtbl = NULL; 1031 |
1032 for (i = 0; i < sizeof(pci2id)/sizeof(pci2id[0]); i++) { | 1032 for (i = 0; i < nitems(pci2id); i++) { |
1033 if (pci2id[i].pci_vendor == pci_get_vendor(sc->sc_dev) && 1034 pci2id[i].pci_prod == pci_get_device(sc->sc_dev)) { 1035 offtbl = pci2id[i].card_id; 1036 break; 1037 } 1038 } 1039 if (offtbl == NULL) { 1040 device_printf(sc->sc_dev, "Unknown card!\n"); --- 1890 unchanged lines hidden --- | 1033 if (pci2id[i].pci_vendor == pci_get_vendor(sc->sc_dev) && 1034 pci2id[i].pci_prod == pci_get_device(sc->sc_dev)) { 1035 offtbl = pci2id[i].card_id; 1036 break; 1037 } 1038 } 1039 if (offtbl == NULL) { 1040 device_printf(sc->sc_dev, "Unknown card!\n"); --- 1890 unchanged lines hidden --- |