Deleted Added
full compact
ctl_private.h (274732) ctl_private.h (275493)
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 274732 2014-11-20 01:55:12Z mav $
31 * $FreeBSD: stable/10/sys/cam/ctl/ctl_private.h 275493 2014-12-05 07:23:25Z 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_

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

437 uint8_t res_type;
438 uint8_t *write_buffer;
439 struct ctl_devid *lun_devid;
440 TAILQ_HEAD(tpc_lists, tpc_list) tpc_lists;
441};
442
443typedef enum {
444 CTL_FLAG_REAL_SYNC = 0x02,
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_

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

437 uint8_t res_type;
438 uint8_t *write_buffer;
439 struct ctl_devid *lun_devid;
440 TAILQ_HEAD(tpc_lists, tpc_list) tpc_lists;
441};
442
443typedef enum {
444 CTL_FLAG_REAL_SYNC = 0x02,
445 CTL_FLAG_MASTER_SHELF = 0x04
445 CTL_FLAG_ACTIVE_SHELF = 0x04
446} ctl_gen_flags;
447
448#define CTL_MAX_THREADS 16
449
450struct ctl_thread {
451 struct mtx_padalign queue_lock;
452 struct ctl_softc *ctl_softc;
453 struct thread *thread;

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

462 struct mtx ctl_lock;
463 struct cdev *dev;
464 int open_count;
465 struct ctl_id target;
466 int num_disks;
467 int num_luns;
468 ctl_gen_flags flags;
469 ctl_ha_mode ha_mode;
446} ctl_gen_flags;
447
448#define CTL_MAX_THREADS 16
449
450struct ctl_thread {
451 struct mtx_padalign queue_lock;
452 struct ctl_softc *ctl_softc;
453 struct thread *thread;

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

462 struct mtx ctl_lock;
463 struct cdev *dev;
464 int open_count;
465 struct ctl_id target;
466 int num_disks;
467 int num_luns;
468 ctl_gen_flags flags;
469 ctl_ha_mode ha_mode;
470 int ha_id;
471 int ha_state;
472 int is_single;
473 int port_offset;
470 int inquiry_pq_no_lun;
471 struct sysctl_ctx_list sysctl_ctx;
472 struct sysctl_oid *sysctl_tree;
473 struct ctl_ioctl_info ioctl_info;
474 struct ctl_io_pool *internal_pool;
475 struct ctl_io_pool *emergency_pool;
476 struct ctl_io_pool *othersc_pool;
477 struct proc *ctl_proc;

--- 86 unchanged lines hidden ---
474 int inquiry_pq_no_lun;
475 struct sysctl_ctx_list sysctl_ctx;
476 struct sysctl_oid *sysctl_tree;
477 struct ctl_ioctl_info ioctl_info;
478 struct ctl_io_pool *internal_pool;
479 struct ctl_io_pool *emergency_pool;
480 struct ctl_io_pool *othersc_pool;
481 struct proc *ctl_proc;

--- 86 unchanged lines hidden ---