1c30871e1SFrançois Tigeot /* 272c6c9b8SFrançois Tigeot * Copyright (c) 2010 Isilon Systems, Inc. 372c6c9b8SFrançois Tigeot * Copyright (c) 2010 iX Systems, Inc. 472c6c9b8SFrançois Tigeot * Copyright (c) 2010 Panasas, Inc. 572c6c9b8SFrançois Tigeot * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 61dedbd3bSFrançois Tigeot * Copyright (c) 2016-2019 François Tigeot <ftigeot@wolfpond.org> 772c6c9b8SFrançois Tigeot * All rights reserved. 872c6c9b8SFrançois Tigeot * 972c6c9b8SFrançois Tigeot * Redistribution and use in source and binary forms, with or without 1072c6c9b8SFrançois Tigeot * modification, are permitted provided that the following conditions 1172c6c9b8SFrançois Tigeot * are met: 1272c6c9b8SFrançois Tigeot * 1. Redistributions of source code must retain the above copyright 1372c6c9b8SFrançois Tigeot * notice unmodified, this list of conditions, and the following 1472c6c9b8SFrançois Tigeot * disclaimer. 1572c6c9b8SFrançois Tigeot * 2. Redistributions in binary form must reproduce the above copyright 1672c6c9b8SFrançois Tigeot * notice, this list of conditions and the following disclaimer in the 1772c6c9b8SFrançois Tigeot * documentation and/or other materials provided with the distribution. 1872c6c9b8SFrançois Tigeot * 1972c6c9b8SFrançois Tigeot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2072c6c9b8SFrançois Tigeot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2172c6c9b8SFrançois Tigeot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2272c6c9b8SFrançois Tigeot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2372c6c9b8SFrançois Tigeot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2472c6c9b8SFrançois Tigeot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2572c6c9b8SFrançois Tigeot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2672c6c9b8SFrançois Tigeot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2772c6c9b8SFrançois Tigeot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2872c6c9b8SFrançois Tigeot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2972c6c9b8SFrançois Tigeot */ 3072c6c9b8SFrançois Tigeot #ifndef _LINUX_MODULE_H_ 3172c6c9b8SFrançois Tigeot #define _LINUX_MODULE_H_ 3272c6c9b8SFrançois Tigeot 3372c6c9b8SFrançois Tigeot #include <linux/list.h> 3415dba7a9SFrançois Tigeot #include <linux/stat.h> 3572c6c9b8SFrançois Tigeot #include <linux/compiler.h> 36d998b496SFrançois Tigeot #include <linux/cache.h> 37d6aa1cc5SFrançois Tigeot #include <linux/kmod.h> 38c30871e1SFrançois Tigeot #include <linux/kobject.h> 3972c6c9b8SFrançois Tigeot #include <linux/moduleparam.h> 4019c468b4SFrançois Tigeot #include <linux/jump_label.h> 41058cb5deSFrançois Tigeot #include <linux/export.h> 4272c6c9b8SFrançois Tigeot 4372c6c9b8SFrançois Tigeot #define MODULE_AUTHOR(name) 4472c6c9b8SFrançois Tigeot #define MODULE_DESCRIPTION(name) 4572c6c9b8SFrançois Tigeot 4672c6c9b8SFrançois Tigeot #ifndef MODULE_VERSION 4772c6c9b8SFrançois Tigeot #define MODULE_VERSION(name) 4872c6c9b8SFrançois Tigeot #endif 4972c6c9b8SFrançois Tigeot 50*78973132SSergey Zigachev #ifndef MODULE_LICENSE 51*78973132SSergey Zigachev #define MODULE_LICENSE(name) 52*78973132SSergey Zigachev #endif 53*78973132SSergey Zigachev 5472c6c9b8SFrançois Tigeot #define THIS_MODULE ((struct module *)0) 5572c6c9b8SFrançois Tigeot 56e3d653d5SFrançois Tigeot #define MODULE_FIRMWARE(name) 57e3d653d5SFrançois Tigeot 5839cfddd2SFrançois Tigeot #define module_init(fname) \ 5939cfddd2SFrançois Tigeot SYSINIT(fname, SI_SUB_DRIVERS, SI_ORDER_FIRST, fname, NULL); 6015dba7a9SFrançois Tigeot #define module_exit(fname) \ 6115dba7a9SFrançois Tigeot SYSUNINIT(fname, SI_SUB_DRIVERS, SI_ORDER_SECOND, fname, NULL); 6239cfddd2SFrançois Tigeot 631dedbd3bSFrançois Tigeot #define MODULE_DEVICE_TABLE(type, name) 641dedbd3bSFrançois Tigeot 6572c6c9b8SFrançois Tigeot #endif /* _LINUX_MODULE_H_ */ 66