Deleted Added
full compact
mfi_linux.c (164281) mfi_linux.c (192450)
1/*-
2 * Copyright (c) 2006 IronPort Systems
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 IronPort Systems
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/mfi/mfi_linux.c 164281 2006-11-14 16:48:00Z ambrisko $");
28__FBSDID("$FreeBSD: head/sys/dev/mfi/mfi_linux.c 192450 2009-05-20 17:29:21Z imp $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/conf.h>
33#include <sys/kernel.h>
34#include <sys/module.h>
35#include <sys/file.h>
36#include <sys/proc.h>

--- 38 unchanged lines hidden (view full) ---

75{
76 return (0);
77}
78
79DEV_MODULE(mfi_linux, mfi_linux_modevent, NULL);
80MODULE_DEPEND(mfi, linux, 1, 1, 1);
81
82static int
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/conf.h>
33#include <sys/kernel.h>
34#include <sys/module.h>
35#include <sys/file.h>
36#include <sys/proc.h>

--- 38 unchanged lines hidden (view full) ---

75{
76 return (0);
77}
78
79DEV_MODULE(mfi_linux, mfi_linux_modevent, NULL);
80MODULE_DEPEND(mfi, linux, 1, 1, 1);
81
82static int
83mfi_linux_ioctl(d_thread_t *p, struct linux_ioctl_args *args)
83mfi_linux_ioctl(struct thread *p, struct linux_ioctl_args *args)
84{
85 struct file *fp;
86 int error;
87 u_long cmd = args->cmd;
88
89 switch (cmd) {
90 case MFI_LINUX_CMD:
91 cmd = MFI_LINUX_CMD_2;

--- 12 unchanged lines hidden ---
84{
85 struct file *fp;
86 int error;
87 u_long cmd = args->cmd;
88
89 switch (cmd) {
90 case MFI_LINUX_CMD:
91 cmd = MFI_LINUX_CMD_2;

--- 12 unchanged lines hidden ---