Deleted Added
full compact
cam_sim.h (168752) cam_sim.h (168864)
1/*-
2 * Data structures and definitions for SCSI Interface Modules (SIMs).
3 *
4 * Copyright (c) 1997 Justin T. Gibbs.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/*-
2 * Data structures and definitions for SCSI Interface Modules (SIMs).
3 *
4 * Copyright (c) 1997 Justin T. Gibbs.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/cam/cam_sim.h 168752 2007-04-15 08:49:19Z scottl $
28 * $FreeBSD: head/sys/cam/cam_sim.h 168864 2007-04-19 14:28:43Z scottl $
29 */
30
31#ifndef _CAM_CAM_SIM_H
32#define _CAM_CAM_SIM_H 1
33
34#ifdef _KERNEL
35
36/*

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

87 * structure.
88 */
89struct cam_sim {
90 sim_action_func sim_action;
91 sim_poll_func sim_poll;
92 const char *sim_name;
93 void *softc;
94 struct mtx *mtx;
29 */
30
31#ifndef _CAM_CAM_SIM_H
32#define _CAM_CAM_SIM_H 1
33
34#ifdef _KERNEL
35
36/*

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

87 * structure.
88 */
89struct cam_sim {
90 sim_action_func sim_action;
91 sim_poll_func sim_poll;
92 const char *sim_name;
93 void *softc;
94 struct mtx *mtx;
95 TAILQ_HEAD(, ccb_hdr) sim_doneq;
96 TAILQ_ENTRY(cam_sim) links;
95 u_int32_t path_id;/* The Boot device may set this to 0? */
96 u_int32_t unit_number;
97 u_int32_t bus_id;
98 int max_tagged_dev_openings;
99 int max_dev_openings;
100 u_int32_t flags;
101#define CAM_SIM_REL_TIMEOUT_PENDING 0x01
102#define CAM_SIM_MPSAFE 0x02
97 u_int32_t path_id;/* The Boot device may set this to 0? */
98 u_int32_t unit_number;
99 u_int32_t bus_id;
100 int max_tagged_dev_openings;
101 int max_dev_openings;
102 u_int32_t flags;
103#define CAM_SIM_REL_TIMEOUT_PENDING 0x01
104#define CAM_SIM_MPSAFE 0x02
105#define CAM_SIM_ON_DONEQ 0x04
103 struct callout callout;
104 struct cam_devq *devq; /* Device Queue to use for this SIM */
105
106 /* "Pool" of inactive ccbs managed by xpt_alloc_ccb and xpt_free_ccb */
107 SLIST_HEAD(,ccb_hdr) ccb_freeq;
108 /*
109 * Maximum size of ccb pool. Modified as devices are added/removed
110 * or have their * opening counts changed.

--- 42 unchanged lines hidden ---
106 struct callout callout;
107 struct cam_devq *devq; /* Device Queue to use for this SIM */
108
109 /* "Pool" of inactive ccbs managed by xpt_alloc_ccb and xpt_free_ccb */
110 SLIST_HEAD(,ccb_hdr) ccb_freeq;
111 /*
112 * Maximum size of ccb pool. Modified as devices are added/removed
113 * or have their * opening counts changed.

--- 42 unchanged lines hidden ---