ctl_private.h (284796) | ctl_private.h (284798) |
---|---|
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 284796 2015-06-25 07:09:39Z mav $ | 31 * $FreeBSD: stable/10/sys/cam/ctl/ctl_private.h 284798 2015-06-25 07:11:48Z 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_ --- 352 unchanged lines hidden (view full) --- 392 */ 393#define NUM_TARGET_PORT_GROUPS 2 394 395#define CTL_WRITE_BUFFER_SIZE 262144 396 397struct tpc_list; 398struct ctl_lun { 399 struct mtx lun_lock; | 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_ --- 352 unchanged lines hidden (view full) --- 392 */ 393#define NUM_TARGET_PORT_GROUPS 2 394 395#define CTL_WRITE_BUFFER_SIZE 262144 396 397struct tpc_list; 398struct ctl_lun { 399 struct mtx lun_lock; |
400 struct ctl_id target; | |
401 uint64_t lun; 402 ctl_lun_flags flags; 403 ctl_lun_serseq serseq; 404 STAILQ_HEAD(,ctl_error_desc) error_list; 405 uint64_t error_serial; 406 struct ctl_softc *ctl_softc; 407 struct ctl_be_lun *be_lun; 408 struct ctl_backend_driver *backend; --- 46 unchanged lines hidden (view full) --- 455 STAILQ_HEAD(, ctl_io_hdr) isc_queue; 456}; 457 458struct tpc_token; 459struct ctl_softc { 460 struct mtx ctl_lock; 461 struct cdev *dev; 462 int open_count; | 400 uint64_t lun; 401 ctl_lun_flags flags; 402 ctl_lun_serseq serseq; 403 STAILQ_HEAD(,ctl_error_desc) error_list; 404 uint64_t error_serial; 405 struct ctl_softc *ctl_softc; 406 struct ctl_be_lun *be_lun; 407 struct ctl_backend_driver *backend; --- 46 unchanged lines hidden (view full) --- 454 STAILQ_HEAD(, ctl_io_hdr) isc_queue; 455}; 456 457struct tpc_token; 458struct ctl_softc { 459 struct mtx ctl_lock; 460 struct cdev *dev; 461 int open_count; |
463 struct ctl_id target; | |
464 int num_disks; 465 int num_luns; 466 ctl_gen_flags flags; 467 ctl_ha_mode ha_mode; 468 int ha_id; 469 int ha_state; 470 int is_single; 471 int port_offset; --- 31 unchanged lines hidden (view full) --- 503 504uint32_t ctl_get_initindex(struct ctl_nexus *nexus); 505uint32_t ctl_get_resindex(struct ctl_nexus *nexus); 506uint32_t ctl_port_idx(int port_num); 507int ctl_lun_map_init(struct ctl_port *port); 508int ctl_lun_map_deinit(struct ctl_port *port); 509int ctl_lun_map_set(struct ctl_port *port, uint32_t plun, uint32_t glun); 510int ctl_lun_map_unset(struct ctl_port *port, uint32_t plun); | 462 int num_disks; 463 int num_luns; 464 ctl_gen_flags flags; 465 ctl_ha_mode ha_mode; 466 int ha_id; 467 int ha_state; 468 int is_single; 469 int port_offset; --- 31 unchanged lines hidden (view full) --- 501 502uint32_t ctl_get_initindex(struct ctl_nexus *nexus); 503uint32_t ctl_get_resindex(struct ctl_nexus *nexus); 504uint32_t ctl_port_idx(int port_num); 505int ctl_lun_map_init(struct ctl_port *port); 506int ctl_lun_map_deinit(struct ctl_port *port); 507int ctl_lun_map_set(struct ctl_port *port, uint32_t plun, uint32_t glun); 508int ctl_lun_map_unset(struct ctl_port *port, uint32_t plun); |
511int ctl_lun_map_unsetg(struct ctl_port *port, uint32_t glun); | |
512uint32_t ctl_lun_map_from_port(struct ctl_port *port, uint32_t plun); 513uint32_t ctl_lun_map_to_port(struct ctl_port *port, uint32_t glun); 514int ctl_pool_create(struct ctl_softc *ctl_softc, const char *pool_name, 515 uint32_t total_ctl_io, void **npool); 516void ctl_pool_free(struct ctl_io_pool *pool); 517int ctl_scsi_release(struct ctl_scsiio *ctsio); 518int ctl_scsi_reserve(struct ctl_scsiio *ctsio); 519int ctl_start_stop(struct ctl_scsiio *ctsio); --- 52 unchanged lines hidden --- | 509uint32_t ctl_lun_map_from_port(struct ctl_port *port, uint32_t plun); 510uint32_t ctl_lun_map_to_port(struct ctl_port *port, uint32_t glun); 511int ctl_pool_create(struct ctl_softc *ctl_softc, const char *pool_name, 512 uint32_t total_ctl_io, void **npool); 513void ctl_pool_free(struct ctl_io_pool *pool); 514int ctl_scsi_release(struct ctl_scsiio *ctsio); 515int ctl_scsi_reserve(struct ctl_scsiio *ctsio); 516int ctl_start_stop(struct ctl_scsiio *ctsio); --- 52 unchanged lines hidden --- |