1*f45c6e8aSpgoyette /* $NetBSD: bf_module.c,v 1.1 2014/01/01 15:18:57 pgoyette Exp $ */
2*f45c6e8aSpgoyette
3*f45c6e8aSpgoyette /*-
4*f45c6e8aSpgoyette * Copyright (c) 2014 The NetBSD Foundation, Inc.
5*f45c6e8aSpgoyette * All rights reserved.
6*f45c6e8aSpgoyette *
7*f45c6e8aSpgoyette * This code is derived from software contributed to The NetBSD Foundation
8*f45c6e8aSpgoyette * by Paul Goyette
9*f45c6e8aSpgoyette *
10*f45c6e8aSpgoyette * Redistribution and use in source and binary forms, with or without
11*f45c6e8aSpgoyette * modification, are permitted provided that the following conditions
12*f45c6e8aSpgoyette * are met:
13*f45c6e8aSpgoyette * 1. Redistributions of source code must retain the above copyright
14*f45c6e8aSpgoyette * notice, this list of conditions and the following disclaimer.
15*f45c6e8aSpgoyette * 2. Redistributions in binary form must reproduce the above copyright
16*f45c6e8aSpgoyette * notice, this list of conditions and the following disclaimer in the
17*f45c6e8aSpgoyette * documentation and/or other materials provided with the distribution.
18*f45c6e8aSpgoyette *
19*f45c6e8aSpgoyette * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20*f45c6e8aSpgoyette * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21*f45c6e8aSpgoyette * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22*f45c6e8aSpgoyette * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23*f45c6e8aSpgoyette * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*f45c6e8aSpgoyette * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*f45c6e8aSpgoyette * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*f45c6e8aSpgoyette * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*f45c6e8aSpgoyette * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28*f45c6e8aSpgoyette * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*f45c6e8aSpgoyette * POSSIBILITY OF SUCH DAMAGE.
30*f45c6e8aSpgoyette */
31*f45c6e8aSpgoyette #include <sys/cdefs.h>
32*f45c6e8aSpgoyette __KERNEL_RCSID(0, "$NetBSD: bf_module.c,v 1.1 2014/01/01 15:18:57 pgoyette Exp $");
33*f45c6e8aSpgoyette
34*f45c6e8aSpgoyette #include <sys/errno.h>
35*f45c6e8aSpgoyette #include <sys/module.h>
36*f45c6e8aSpgoyette
37*f45c6e8aSpgoyette MODULE(MODULE_CLASS_MISC, blowfish, NULL);
38*f45c6e8aSpgoyette
39*f45c6e8aSpgoyette static int
blowfish_modcmd(modcmd_t cmd,void * opaque)40*f45c6e8aSpgoyette blowfish_modcmd(modcmd_t cmd, void *opaque)
41*f45c6e8aSpgoyette {
42*f45c6e8aSpgoyette
43*f45c6e8aSpgoyette switch (cmd) {
44*f45c6e8aSpgoyette case MODULE_CMD_INIT:
45*f45c6e8aSpgoyette return 0;
46*f45c6e8aSpgoyette case MODULE_CMD_FINI:
47*f45c6e8aSpgoyette return 0;
48*f45c6e8aSpgoyette default:
49*f45c6e8aSpgoyette return ENOTTY;
50*f45c6e8aSpgoyette }
51*f45c6e8aSpgoyette }
52