cryptodev.c (111297) | cryptodev.c (111815) |
---|---|
1/* $FreeBSD: head/sys/opencrypto/cryptodev.c 111297 2003-02-23 07:25:48Z sam $ */ | 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 = { | 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 /* open */ cryptoopen, 751 /* close */ nullclose, 752 /* read */ cryptoread, 753 /* write */ cryptowrite, 754 /* ioctl */ cryptoioctl, 755 /* poll */ nopoll, 756 /* mmap */ nommap, 757 /* strategy */ nostrategy, 758 /* dev name */ "crypto", 759 /* dev major */ CRYPTO_MAJOR, 760 /* dump */ nodump, 761 /* psize */ nopsize, 762 /* flags */ 0, 763 /* kqfilter */ NULL | 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, |
764}; 765static dev_t crypto_dev; 766 767/* 768 * Initialization code, both for static and dynamic loading. 769 */ 770static int 771cryptodev_modevent(module_t mod, int type, void *unused) --- 25 unchanged lines hidden --- | 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 --- |