Deleted Added
full compact
ubsec.c (191894) ubsec.c (194023)
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 191894 2009-05-07 18:03:47Z philip $");
42__FBSDID("$FreeBSD: head/sys/dev/ubsec/ubsec.c 194023 2009-06-11 17:14:28Z avg $");
43
44/*
45 * uBsec 5[56]01, 58xx hardware crypto accelerator
46 */
47
48#include "opt_ubsec.h"
49
50#include <sys/param.h>

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

102/*
103 * Prototypes and count for the pci_device structure
104 */
105static int ubsec_probe(device_t);
106static int ubsec_attach(device_t);
107static int ubsec_detach(device_t);
108static int ubsec_suspend(device_t);
109static int ubsec_resume(device_t);
43
44/*
45 * uBsec 5[56]01, 58xx hardware crypto accelerator
46 */
47
48#include "opt_ubsec.h"
49
50#include <sys/param.h>

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

102/*
103 * Prototypes and count for the pci_device structure
104 */
105static int ubsec_probe(device_t);
106static int ubsec_attach(device_t);
107static int ubsec_detach(device_t);
108static int ubsec_suspend(device_t);
109static int ubsec_resume(device_t);
110static void ubsec_shutdown(device_t);
110static int ubsec_shutdown(device_t);
111
112static int ubsec_newsession(device_t, u_int32_t *, struct cryptoini *);
113static int ubsec_freesession(device_t, u_int64_t);
114static int ubsec_process(device_t, struct cryptop *, int);
115static int ubsec_kprocess(device_t, struct cryptkop *, int);
116
117static device_method_t ubsec_methods[] = {
118 /* Device interface */

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

553
554 return (0);
555}
556
557/*
558 * Stop all chip i/o so that the kernel's probe routines don't
559 * get confused by errant DMAs when rebooting.
560 */
111
112static int ubsec_newsession(device_t, u_int32_t *, struct cryptoini *);
113static int ubsec_freesession(device_t, u_int64_t);
114static int ubsec_process(device_t, struct cryptop *, int);
115static int ubsec_kprocess(device_t, struct cryptkop *, int);
116
117static device_method_t ubsec_methods[] = {
118 /* Device interface */

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

553
554 return (0);
555}
556
557/*
558 * Stop all chip i/o so that the kernel's probe routines don't
559 * get confused by errant DMAs when rebooting.
560 */
561static void
561static int
562ubsec_shutdown(device_t dev)
563{
564#ifdef notyet
565 ubsec_stop(device_get_softc(dev));
566#endif
562ubsec_shutdown(device_t dev)
563{
564#ifdef notyet
565 ubsec_stop(device_get_softc(dev));
566#endif
567 return (0);
567}
568
569/*
570 * Device suspend routine.
571 */
572static int
573ubsec_suspend(device_t dev)
574{

--- 2310 unchanged lines hidden ---
568}
569
570/*
571 * Device suspend routine.
572 */
573static int
574ubsec_suspend(device_t dev)
575{

--- 2310 unchanged lines hidden ---