1*ac88567aSHyon Kim /*
2*ac88567aSHyon Kim  * CDDL HEADER START
3*ac88567aSHyon Kim  *
4*ac88567aSHyon Kim  * The contents of this file are subject to the terms of the
5*ac88567aSHyon Kim  * Common Development and Distribution License (the "License").
6*ac88567aSHyon Kim  * You may not use this file except in compliance with the License.
7*ac88567aSHyon Kim  *
8*ac88567aSHyon Kim  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*ac88567aSHyon Kim  * or http://www.opensolaris.org/os/licensing.
10*ac88567aSHyon Kim  * See the License for the specific language governing permissions
11*ac88567aSHyon Kim  * and limitations under the License.
12*ac88567aSHyon Kim  *
13*ac88567aSHyon Kim  * When distributing Covered Code, include this CDDL HEADER in each
14*ac88567aSHyon Kim  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*ac88567aSHyon Kim  * If applicable, add the following below this CDDL HEADER, with the
16*ac88567aSHyon Kim  * fields enclosed by brackets "[]" replaced with your own identifying
17*ac88567aSHyon Kim  * information: Portions Copyright [yyyy] [name of copyright owner]
18*ac88567aSHyon Kim  *
19*ac88567aSHyon Kim  * CDDL HEADER END
20*ac88567aSHyon Kim  */
21*ac88567aSHyon Kim 
22*ac88567aSHyon Kim /*
23*ac88567aSHyon Kim  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24*ac88567aSHyon Kim  */
25*ac88567aSHyon Kim 
26*ac88567aSHyon Kim #include <scsi/libsmp.h>
27*ac88567aSHyon Kim #include <scsi/libsmp_plugin.h>
28*ac88567aSHyon Kim #include "sas2.h"
29*ac88567aSHyon Kim 
30*ac88567aSHyon Kim int
_smp_init(smp_plugin_t * pp)31*ac88567aSHyon Kim _smp_init(smp_plugin_t *pp)
32*ac88567aSHyon Kim {
33*ac88567aSHyon Kim 	smp_plugin_config_t config = {
34*ac88567aSHyon Kim 		.spc_name = "SAS-2",
35*ac88567aSHyon Kim 		.spc_functions = sas2_functions
36*ac88567aSHyon Kim 	};
37*ac88567aSHyon Kim 
38*ac88567aSHyon Kim 	return (smp_plugin_register(pp, LIBSMP_PLUGIN_VERSION, &config));
39*ac88567aSHyon Kim }
40