aac.c (89112) | aac.c (89306) |
---|---|
1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/dev/aac/aac.c 89112 2002-01-09 03:32:40Z msmith $ | 29 * $FreeBSD: head/sys/dev/aac/aac.c 89306 2002-01-13 11:58:06Z alfred $ |
30 */ 31 32/* 33 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters. 34 */ 35 36#include "opt_aac.h" 37 --- 2533 unchanged lines hidden (view full) --- 2571 2572MODULE_DEPEND(aac, linux, 1, 1, 1); 2573 2574static int 2575aac_linux_ioctl(struct thread *td, struct linux_ioctl_args *args) 2576{ 2577 struct file *fp; 2578 u_long cmd; | 30 */ 31 32/* 33 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters. 34 */ 35 36#include "opt_aac.h" 37 --- 2533 unchanged lines hidden (view full) --- 2571 2572MODULE_DEPEND(aac, linux, 1, 1, 1); 2573 2574static int 2575aac_linux_ioctl(struct thread *td, struct linux_ioctl_args *args) 2576{ 2577 struct file *fp; 2578 u_long cmd; |
2579 int error; |
|
2579 2580 debug_called(2); 2581 | 2580 2581 debug_called(2); 2582 |
2582 fp = td->td_proc->p_fd->fd_ofiles[args->fd]; | 2583 fp = ffind_hold(td, args->fd); 2584 if (fp == NULL) 2585 return (EBADF); |
2583 cmd = args->cmd; 2584 2585 /* 2586 * Pass the ioctl off to our standard handler. 2587 */ | 2586 cmd = args->cmd; 2587 2588 /* 2589 * Pass the ioctl off to our standard handler. 2590 */ |
2588 return(fo_ioctl(fp, cmd, (caddr_t)args->arg, td)); | 2591 error = (fo_ioctl(fp, cmd, (caddr_t)args->arg, td)); 2592 fdrop(fp, td); 2593 return (error); |
2589} 2590 2591#endif 2592 2593/* 2594 * Return the Revision of the driver to userspace and check to see if the 2595 * userspace app is possibly compatible. This is extremely bogus since 2596 * our driver doesn't follow Adaptec's versioning system. Cheat by just --- 158 unchanged lines hidden --- | 2594} 2595 2596#endif 2597 2598/* 2599 * Return the Revision of the driver to userspace and check to see if the 2600 * userspace app is possibly compatible. This is extremely bogus since 2601 * our driver doesn't follow Adaptec's versioning system. Cheat by just --- 158 unchanged lines hidden --- |