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