ctl_private.h (345114) | ctl_private.h (361256) |
---|---|
1/*- 2 * Copyright (c) 2003, 2004, 2005, 2008 Silicon Graphics International Corp. 3 * Copyright (c) 2014-2017 Alexander Motin <mav@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 15 unchanged lines hidden (view full) --- 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGES. 30 * 31 * $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 * Copyright (c) 2014-2017 Alexander Motin <mav@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 15 unchanged lines hidden (view full) --- 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGES. 30 * 31 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_private.h#7 $ |
32 * $FreeBSD: stable/11/sys/cam/ctl/ctl_private.h 345114 2019-03-13 20:28:07Z mav $ | 32 * $FreeBSD: stable/11/sys/cam/ctl/ctl_private.h 361256 2020-05-19 14:42:09Z mav $ |
33 */ 34/* 35 * CAM Target Layer driver private data structures/definitions. 36 * 37 * Author: Ken Merry <ken@FreeBSD.org> 38 */ 39 40#ifndef _CTL_PRIVATE_H_ --- 99 unchanged lines hidden (view full) --- 140}; 141 142typedef enum { 143 CTL_LUN_NONE = 0x000, 144 CTL_LUN_CONTROL = 0x001, 145 CTL_LUN_RESERVED = 0x002, 146 CTL_LUN_INVALID = 0x004, 147 CTL_LUN_DISABLED = 0x008, | 33 */ 34/* 35 * CAM Target Layer driver private data structures/definitions. 36 * 37 * Author: Ken Merry <ken@FreeBSD.org> 38 */ 39 40#ifndef _CTL_PRIVATE_H_ --- 99 unchanged lines hidden (view full) --- 140}; 141 142typedef enum { 143 CTL_LUN_NONE = 0x000, 144 CTL_LUN_CONTROL = 0x001, 145 CTL_LUN_RESERVED = 0x002, 146 CTL_LUN_INVALID = 0x004, 147 CTL_LUN_DISABLED = 0x008, |
148 CTL_LUN_MALLOCED = 0x010, | |
149 CTL_LUN_STOPPED = 0x020, 150 CTL_LUN_NO_MEDIA = 0x040, 151 CTL_LUN_EJECTED = 0x080, 152 CTL_LUN_PR_RESERVED = 0x100, 153 CTL_LUN_PRIMARY_SC = 0x200, 154 CTL_LUN_READONLY = 0x800, 155 CTL_LUN_PEER_SC_PRIMARY = 0x1000, 156 CTL_LUN_REMOVABLE = 0x2000 --- 294 unchanged lines hidden (view full) --- 451 struct sysctl_ctx_list sysctl_ctx; 452 struct sysctl_oid *sysctl_tree; 453 void *othersc_pool; 454 struct proc *ctl_proc; 455 uint32_t *ctl_lun_mask; 456 struct ctl_lun **ctl_luns; 457 uint32_t *ctl_port_mask; 458 STAILQ_HEAD(, ctl_lun) lun_list; | 148 CTL_LUN_STOPPED = 0x020, 149 CTL_LUN_NO_MEDIA = 0x040, 150 CTL_LUN_EJECTED = 0x080, 151 CTL_LUN_PR_RESERVED = 0x100, 152 CTL_LUN_PRIMARY_SC = 0x200, 153 CTL_LUN_READONLY = 0x800, 154 CTL_LUN_PEER_SC_PRIMARY = 0x1000, 155 CTL_LUN_REMOVABLE = 0x2000 --- 294 unchanged lines hidden (view full) --- 450 struct sysctl_ctx_list sysctl_ctx; 451 struct sysctl_oid *sysctl_tree; 452 void *othersc_pool; 453 struct proc *ctl_proc; 454 uint32_t *ctl_lun_mask; 455 struct ctl_lun **ctl_luns; 456 uint32_t *ctl_port_mask; 457 STAILQ_HEAD(, ctl_lun) lun_list; |
459 STAILQ_HEAD(, ctl_be_lun) pending_lun_queue; | |
460 uint32_t num_frontends; 461 STAILQ_HEAD(, ctl_frontend) fe_list; 462 uint32_t num_ports; 463 STAILQ_HEAD(, ctl_port) port_list; 464 struct ctl_port **ctl_ports; 465 uint32_t num_backends; 466 STAILQ_HEAD(, ctl_backend_driver) be_list; 467 struct uma_zone *io_zone; 468 uint32_t cur_pool_id; 469 int shutdown; 470 struct ctl_thread threads[CTL_MAX_THREADS]; | 458 uint32_t num_frontends; 459 STAILQ_HEAD(, ctl_frontend) fe_list; 460 uint32_t num_ports; 461 STAILQ_HEAD(, ctl_port) port_list; 462 struct ctl_port **ctl_ports; 463 uint32_t num_backends; 464 STAILQ_HEAD(, ctl_backend_driver) be_list; 465 struct uma_zone *io_zone; 466 uint32_t cur_pool_id; 467 int shutdown; 468 struct ctl_thread threads[CTL_MAX_THREADS]; |
471 struct thread *lun_thread; | |
472 struct thread *thresh_thread; 473 TAILQ_HEAD(tpc_tokens, tpc_token) tpc_tokens; 474 struct callout tpc_timeout; 475 struct mtx tpc_lock; 476}; 477 478#ifdef _KERNEL 479 --- 72 unchanged lines hidden --- | 469 struct thread *thresh_thread; 470 TAILQ_HEAD(tpc_tokens, tpc_token) tpc_tokens; 471 struct callout tpc_timeout; 472 struct mtx tpc_lock; 473}; 474 475#ifdef _KERNEL 476 --- 72 unchanged lines hidden --- |