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
--- 14 unchanged lines hidden (view full) ---
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
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/aac/aac.c 125574 2004-02-07 17:40:38Z scottl $");
32
33/*
34 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters.
35 */
36
37#include "opt_aac.h"
38
39/* #include <stddef.h> */
--- 2830 unchanged lines hidden (view full) ---
2870 query_disk.Locked =
2871 (disk->ad_flags & AAC_DISK_OPEN) ? 1 : 0;
2872 query_disk.Deleted = 0;
2873 query_disk.Bus = device_get_unit(sc->aac_dev);
2874 query_disk.Target = disk->unit;
2875 query_disk.Lun = 0;
2876 query_disk.UnMapped = 0;
2877 sprintf(&query_disk.diskDeviceName[0], "%s%d",
2878 disk->ad_disk.d_name, disk->ad_disk.d_unit);
2879 }
2880 AAC_LOCK_RELEASE(&sc->aac_container_lock);
2881
2882 error = copyout((caddr_t)&query_disk, uptr,
2883 sizeof(struct aac_query_disk));
2884
2885 return (error);
2886}
--- 104 unchanged lines hidden ---
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
--- 14 unchanged lines hidden (view full) ---
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
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/aac/aac.c 125574 2004-02-07 17:40:38Z scottl $");
32
33/*
34 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters.
35 */
36
37#include "opt_aac.h"
38
39/* #include <stddef.h> */
--- 2830 unchanged lines hidden (view full) ---
2870 query_disk.Locked =
2871 (disk->ad_flags & AAC_DISK_OPEN) ? 1 : 0;
2872 query_disk.Deleted = 0;
2873 query_disk.Bus = device_get_unit(sc->aac_dev);
2874 query_disk.Target = disk->unit;
2875 query_disk.Lun = 0;
2876 query_disk.UnMapped = 0;
2877 sprintf(&query_disk.diskDeviceName[0], "%s%d",
2878 disk->ad_disk.d_name, disk->ad_disk.d_unit);
2879 }
2880 AAC_LOCK_RELEASE(&sc->aac_container_lock);
2881
2882 error = copyout((caddr_t)&query_disk, uptr,
2883 sizeof(struct aac_query_disk));
2884
2885 return (error);
2886}
--- 104 unchanged lines hidden ---