mlx5_main.c (347835) | mlx5_main.c (347839) |
---|---|
1/*- 2 * Copyright (c) 2013-2019, Mellanox Technologies, Ltd. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/*- 2 * Copyright (c) 2013-2019, Mellanox Technologies, Ltd. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c 347835 2019-05-16 17:38:59Z hselasky $ | 25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c 347839 2019-05-16 17:49:29Z hselasky $ |
26 */ 27 28#include <linux/kmod.h> 29#include <linux/module.h> 30#include <linux/errno.h> 31#include <linux/pci.h> 32#include <linux/dma-mapping.h> 33#include <linux/slab.h> --- 11 unchanged lines hidden (view full) --- 45#include "mlx5_core.h" 46#include "fs_core.h" 47 48static const char mlx5_version[] = "Mellanox Core driver " 49 DRIVER_VERSION " (" DRIVER_RELDATE ")"; 50MODULE_AUTHOR("Eli Cohen <eli@mellanox.com>"); 51MODULE_DESCRIPTION("Mellanox Connect-IB, ConnectX-4 core driver"); 52MODULE_LICENSE("Dual BSD/GPL"); | 26 */ 27 28#include <linux/kmod.h> 29#include <linux/module.h> 30#include <linux/errno.h> 31#include <linux/pci.h> 32#include <linux/dma-mapping.h> 33#include <linux/slab.h> --- 11 unchanged lines hidden (view full) --- 45#include "mlx5_core.h" 46#include "fs_core.h" 47 48static const char mlx5_version[] = "Mellanox Core driver " 49 DRIVER_VERSION " (" DRIVER_RELDATE ")"; 50MODULE_AUTHOR("Eli Cohen <eli@mellanox.com>"); 51MODULE_DESCRIPTION("Mellanox Connect-IB, ConnectX-4 core driver"); 52MODULE_LICENSE("Dual BSD/GPL"); |
53#if (__FreeBSD_version >= 1100000) | |
54MODULE_DEPEND(mlx5, linuxkpi, 1, 1, 1); | 53MODULE_DEPEND(mlx5, linuxkpi, 1, 1, 1); |
55#endif | 54MODULE_DEPEND(mlx5, mlxfw, 1, 1, 1); |
56MODULE_VERSION(mlx5, 1); 57 58SYSCTL_NODE(_hw, OID_AUTO, mlx5, CTLFLAG_RW, 0, "mlx5 hardware controls"); 59 60int mlx5_core_debug_mask; 61SYSCTL_INT(_hw_mlx5, OID_AUTO, debug_mask, CTLFLAG_RWTUN, 62 &mlx5_core_debug_mask, 0, 63 "debug mask: 1 = dump cmd data, 2 = dump cmd exec time, 3 = both. Default=0"); --- 1503 unchanged lines hidden --- | 55MODULE_VERSION(mlx5, 1); 56 57SYSCTL_NODE(_hw, OID_AUTO, mlx5, CTLFLAG_RW, 0, "mlx5 hardware controls"); 58 59int mlx5_core_debug_mask; 60SYSCTL_INT(_hw_mlx5, OID_AUTO, debug_mask, CTLFLAG_RWTUN, 61 &mlx5_core_debug_mask, 0, 62 "debug mask: 1 = dump cmd data, 2 = dump cmd exec time, 3 = both. Default=0"); --- 1503 unchanged lines hidden --- |