xref: /freebsd/sys/dev/cxgbe/if_cxl.c (revision fdafd315ad0d0f28a11b9fb4476a9ab059c62b92)
1*85dc4777SNavdeep Parhar /*-
2*85dc4777SNavdeep Parhar  * Copyright (c) 2015 Chelsio Communications, Inc.
3*85dc4777SNavdeep Parhar  * All rights reserved.
4*85dc4777SNavdeep Parhar  * Written by: Navdeep Parhar <np@FreeBSD.org>
5*85dc4777SNavdeep Parhar  *
6*85dc4777SNavdeep Parhar  * Redistribution and use in source and binary forms, with or without
7*85dc4777SNavdeep Parhar  * modification, are permitted provided that the following conditions
8*85dc4777SNavdeep Parhar  * are met:
9*85dc4777SNavdeep Parhar  * 1. Redistributions of source code must retain the above copyright
10*85dc4777SNavdeep Parhar  *    notice, this list of conditions and the following disclaimer.
11*85dc4777SNavdeep Parhar  * 2. Redistributions in binary form must reproduce the above copyright
12*85dc4777SNavdeep Parhar  *    notice, this list of conditions and the following disclaimer in the
13*85dc4777SNavdeep Parhar  *    documentation and/or other materials provided with the distribution.
14*85dc4777SNavdeep Parhar  *
15*85dc4777SNavdeep Parhar  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16*85dc4777SNavdeep Parhar  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17*85dc4777SNavdeep Parhar  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18*85dc4777SNavdeep Parhar  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19*85dc4777SNavdeep Parhar  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*85dc4777SNavdeep Parhar  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*85dc4777SNavdeep Parhar  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*85dc4777SNavdeep Parhar  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*85dc4777SNavdeep Parhar  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*85dc4777SNavdeep Parhar  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25*85dc4777SNavdeep Parhar  * SUCH DAMAGE.
26*85dc4777SNavdeep Parhar  */
27*85dc4777SNavdeep Parhar 
28*85dc4777SNavdeep Parhar #include <sys/param.h>
29*85dc4777SNavdeep Parhar #include <sys/kernel.h>
30*85dc4777SNavdeep Parhar #include <sys/module.h>
31*85dc4777SNavdeep Parhar 
32*85dc4777SNavdeep Parhar static int
mod_event(module_t mod,int cmd,void * arg)33*85dc4777SNavdeep Parhar mod_event(module_t mod, int cmd, void *arg)
34*85dc4777SNavdeep Parhar {
35*85dc4777SNavdeep Parhar 
36*85dc4777SNavdeep Parhar 	return (0);
37*85dc4777SNavdeep Parhar }
38*85dc4777SNavdeep Parhar static moduledata_t if_cxl_mod = {"if_cxl", mod_event};
39*85dc4777SNavdeep Parhar DECLARE_MODULE(if_cxl, if_cxl_mod, SI_SUB_EXEC, SI_ORDER_ANY);
40*85dc4777SNavdeep Parhar MODULE_VERSION(if_cxl, 1);
41*85dc4777SNavdeep Parhar MODULE_DEPEND(if_cxl, cxl, 1, 1, 1);
42