Deleted Added
sdiff udiff text old ( 111297 ) new ( 111815 )
full compact
1/* $FreeBSD: head/sys/opencrypto/cryptodev.c 111815 2003-03-03 12:15:54Z phk $ */
2/* $OpenBSD: cryptodev.c,v 1.52 2002/06/19 07:22:46 deraadt Exp $ */
3
4/*
5 * Copyright (c) 2001 Theo de Raadt
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

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

742 error = EINVAL;
743 break;
744 }
745 return (error);
746}
747
748#define CRYPTO_MAJOR 70 /* from openbsd */
749static struct cdevsw crypto_cdevsw = {
750 .d_open = cryptoopen,
751 .d_close = nullclose,
752 .d_read = cryptoread,
753 .d_write = cryptowrite,
754 .d_ioctl = cryptoioctl,
755 .d_name = "crypto",
756 .d_maj = CRYPTO_MAJOR,
757};
758static dev_t crypto_dev;
759
760/*
761 * Initialization code, both for static and dynamic loading.
762 */
763static int
764cryptodev_modevent(module_t mod, int type, void *unused)

--- 25 unchanged lines hidden ---