Deleted Added
full compact
ctl_private.h (268686) ctl_private.h (268692)
1/*-
2 * Copyright (c) 2003, 2004, 2005, 2008 Silicon Graphics International Corp.
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

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

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGES.
29 *
30 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_private.h#7 $
1/*-
2 * Copyright (c) 2003, 2004, 2005, 2008 Silicon Graphics International Corp.
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

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

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGES.
29 *
30 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_private.h#7 $
31 * $FreeBSD: stable/10/sys/cam/ctl/ctl_private.h 268686 2014-07-15 17:09:02Z mav $
31 * $FreeBSD: stable/10/sys/cam/ctl/ctl_private.h 268692 2014-07-15 17:14:53Z mav $
32 */
33/*
34 * CAM Target Layer driver private data structures/definitions.
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38
39#ifndef _CTL_PRIVATE_H_

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

409 struct ctl_devid *lun_devid;
410};
411
412typedef enum {
413 CTL_FLAG_REAL_SYNC = 0x02,
414 CTL_FLAG_MASTER_SHELF = 0x04
415} ctl_gen_flags;
416
32 */
33/*
34 * CAM Target Layer driver private data structures/definitions.
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38
39#ifndef _CTL_PRIVATE_H_

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

409 struct ctl_devid *lun_devid;
410};
411
412typedef enum {
413 CTL_FLAG_REAL_SYNC = 0x02,
414 CTL_FLAG_MASTER_SHELF = 0x04
415} ctl_gen_flags;
416
417struct ctl_wwpn_iid {
418 int in_use;
419 uint64_t wwpn;
420 uint32_t iid;
421 int32_t port;
422};
423
424#define CTL_MAX_THREADS 16
425
426struct ctl_thread {
427 struct mtx_padalign queue_lock;
428 struct ctl_softc *ctl_softc;
429 struct thread *thread;
430 STAILQ_HEAD(, ctl_io_hdr) incoming_queue;
431 STAILQ_HEAD(, ctl_io_hdr) rtr_queue;

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

448 struct ctl_ioctl_info ioctl_info;
449 struct ctl_io_pool *internal_pool;
450 struct ctl_io_pool *emergency_pool;
451 struct ctl_io_pool *othersc_pool;
452 struct proc *ctl_proc;
453 int targ_online;
454 uint32_t ctl_lun_mask[CTL_MAX_LUNS >> 5];
455 struct ctl_lun *ctl_luns[CTL_MAX_LUNS];
417#define CTL_MAX_THREADS 16
418
419struct ctl_thread {
420 struct mtx_padalign queue_lock;
421 struct ctl_softc *ctl_softc;
422 struct thread *thread;
423 STAILQ_HEAD(, ctl_io_hdr) incoming_queue;
424 STAILQ_HEAD(, ctl_io_hdr) rtr_queue;

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

441 struct ctl_ioctl_info ioctl_info;
442 struct ctl_io_pool *internal_pool;
443 struct ctl_io_pool *emergency_pool;
444 struct ctl_io_pool *othersc_pool;
445 struct proc *ctl_proc;
446 int targ_online;
447 uint32_t ctl_lun_mask[CTL_MAX_LUNS >> 5];
448 struct ctl_lun *ctl_luns[CTL_MAX_LUNS];
456 struct ctl_wwpn_iid wwpn_iid[CTL_MAX_PORTS][CTL_MAX_INIT_PER_PORT];
457 uint32_t ctl_port_mask;
458 uint64_t aps_locked_lun;
459 STAILQ_HEAD(, ctl_lun) lun_list;
460 STAILQ_HEAD(, ctl_be_lun) pending_lun_queue;
461 uint32_t num_frontends;
462 STAILQ_HEAD(, ctl_frontend) fe_list;
463 uint32_t num_ports;
464 STAILQ_HEAD(, ctl_port) port_list;

--- 55 unchanged lines hidden ---
449 uint32_t ctl_port_mask;
450 uint64_t aps_locked_lun;
451 STAILQ_HEAD(, ctl_lun) lun_list;
452 STAILQ_HEAD(, ctl_be_lun) pending_lun_queue;
453 uint32_t num_frontends;
454 STAILQ_HEAD(, ctl_frontend) fe_list;
455 uint32_t num_ports;
456 STAILQ_HEAD(, ctl_port) port_list;

--- 55 unchanged lines hidden ---