b60f2a0b921611326383e4789e0874e9e8a2e708fr/*
b60f2a0b921611326383e4789e0874e9e8a2e708fr * CDDL HEADER START
b60f2a0b921611326383e4789e0874e9e8a2e708fr *
b60f2a0b921611326383e4789e0874e9e8a2e708fr * The contents of this file are subject to the terms of the
b60f2a0b921611326383e4789e0874e9e8a2e708fr * Common Development and Distribution License (the "License").
b60f2a0b921611326383e4789e0874e9e8a2e708fr * You may not use this file except in compliance with the License.
b60f2a0b921611326383e4789e0874e9e8a2e708fr *
b60f2a0b921611326383e4789e0874e9e8a2e708fr * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b60f2a0b921611326383e4789e0874e9e8a2e708fr * or http://www.opensolaris.org/os/licensing.
b60f2a0b921611326383e4789e0874e9e8a2e708fr * See the License for the specific language governing permissions
b60f2a0b921611326383e4789e0874e9e8a2e708fr * and limitations under the License.
b60f2a0b921611326383e4789e0874e9e8a2e708fr *
b60f2a0b921611326383e4789e0874e9e8a2e708fr * When distributing Covered Code, include this CDDL HEADER in each
b60f2a0b921611326383e4789e0874e9e8a2e708fr * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b60f2a0b921611326383e4789e0874e9e8a2e708fr * If applicable, add the following below this CDDL HEADER, with the
b60f2a0b921611326383e4789e0874e9e8a2e708fr * fields enclosed by brackets "[]" replaced with your own identifying
b60f2a0b921611326383e4789e0874e9e8a2e708fr * information: Portions Copyright [yyyy] [name of copyright owner]
b60f2a0b921611326383e4789e0874e9e8a2e708fr *
b60f2a0b921611326383e4789e0874e9e8a2e708fr * CDDL HEADER END
b60f2a0b921611326383e4789e0874e9e8a2e708fr */
b60f2a0b921611326383e4789e0874e9e8a2e708fr/*
32e0ab73531b6e6e8957e9ecdbbd42603865f2d0Misaki Miyashita * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
b60f2a0b921611326383e4789e0874e9e8a2e708fr */
b60f2a0b921611326383e4789e0874e9e8a2e708fr
b60f2a0b921611326383e4789e0874e9e8a2e708fr
b60f2a0b921611326383e4789e0874e9e8a2e708fr#include <sys/types.h>
b60f2a0b921611326383e4789e0874e9e8a2e708fr#include <sys/systm.h>
b60f2a0b921611326383e4789e0874e9e8a2e708fr#include <sys/modctl.h>
b60f2a0b921611326383e4789e0874e9e8a2e708fr#include <sys/cmn_err.h>
b60f2a0b921611326383e4789e0874e9e8a2e708fr#include <sys/ddi.h>
b60f2a0b921611326383e4789e0874e9e8a2e708fr
b60f2a0b921611326383e4789e0874e9e8a2e708frextern struct mod_ops mod_cryptoops;
b60f2a0b921611326383e4789e0874e9e8a2e708fr
b60f2a0b921611326383e4789e0874e9e8a2e708fr/*
b60f2a0b921611326383e4789e0874e9e8a2e708fr * Module linkage information for the kernel.
b60f2a0b921611326383e4789e0874e9e8a2e708fr */
b60f2a0b921611326383e4789e0874e9e8a2e708frstatic struct modlmisc modlmisc = {
b60f2a0b921611326383e4789e0874e9e8a2e708fr &mod_miscops, "bignum utility module"
b60f2a0b921611326383e4789e0874e9e8a2e708fr};
b60f2a0b921611326383e4789e0874e9e8a2e708fr
b60f2a0b921611326383e4789e0874e9e8a2e708frstatic struct modlinkage modlinkage = {
b60f2a0b921611326383e4789e0874e9e8a2e708fr MODREV_1, (void *)&modlmisc, NULL
b60f2a0b921611326383e4789e0874e9e8a2e708fr};
b60f2a0b921611326383e4789e0874e9e8a2e708fr
b60f2a0b921611326383e4789e0874e9e8a2e708fr
b60f2a0b921611326383e4789e0874e9e8a2e708frint
b60f2a0b921611326383e4789e0874e9e8a2e708fr_init(void)
b60f2a0b921611326383e4789e0874e9e8a2e708fr{
b60f2a0b921611326383e4789e0874e9e8a2e708fr return (mod_install(&modlinkage));
b60f2a0b921611326383e4789e0874e9e8a2e708fr}
b60f2a0b921611326383e4789e0874e9e8a2e708fr
b60f2a0b921611326383e4789e0874e9e8a2e708frint
b60f2a0b921611326383e4789e0874e9e8a2e708fr_fini(void)
b60f2a0b921611326383e4789e0874e9e8a2e708fr{
b60f2a0b921611326383e4789e0874e9e8a2e708fr return (mod_remove(&modlinkage));
b60f2a0b921611326383e4789e0874e9e8a2e708fr}
b60f2a0b921611326383e4789e0874e9e8a2e708fr
b60f2a0b921611326383e4789e0874e9e8a2e708frint
b60f2a0b921611326383e4789e0874e9e8a2e708fr_info(struct modinfo *modinfop)
b60f2a0b921611326383e4789e0874e9e8a2e708fr{
b60f2a0b921611326383e4789e0874e9e8a2e708fr return (mod_info(&modlinkage, modinfop));
b60f2a0b921611326383e4789e0874e9e8a2e708fr}