Deleted Added
full compact
cam_xpt.h (224806) cam_xpt.h (236712)
1/*-
2 * Data structures and definitions for dealing with the
3 * Common Access Method Transport (xpt) layer.
4 *
5 * Copyright (c) 1997 Justin T. Gibbs.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

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

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

21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/cam/cam_xpt.h 224806 2011-08-12 20:09:38Z mjacob $
29 * $FreeBSD: head/sys/cam/cam_xpt.h 236712 2012-06-07 10:05:51Z mav $
30 */
31
32#ifndef _CAM_CAM_XPT_H
33#define _CAM_CAM_XPT_H 1
34
35/* Forward Declarations */
36union ccb;
37struct cam_periph;

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

58 void (*callback)(void *arg, u_int32_t code,
59 struct cam_path *path, void *args);
60 void *callback_arg;
61};
62
63SLIST_HEAD(async_list, async_node);
64SLIST_HEAD(periph_list, cam_periph);
65
30 */
31
32#ifndef _CAM_CAM_XPT_H
33#define _CAM_CAM_XPT_H 1
34
35/* Forward Declarations */
36union ccb;
37struct cam_periph;

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

58 void (*callback)(void *arg, u_int32_t code,
59 struct cam_path *path, void *args);
60 void *callback_arg;
61};
62
63SLIST_HEAD(async_list, async_node);
64SLIST_HEAD(periph_list, cam_periph);
65
66#if defined(CAM_DEBUG_FLAGS) && !defined(CAMDEBUG)
67#error "You must have options CAMDEBUG to use options CAM_DEBUG_FLAGS"
68#endif
69
70/*
71 * In order to enable the CAM_DEBUG_* options, the user must have CAMDEBUG
72 * enabled. Also, the user must have either none, or all of CAM_DEBUG_BUS,
73 * CAM_DEBUG_TARGET, and CAM_DEBUG_LUN specified.
74 */
75#if defined(CAM_DEBUG_BUS) || defined(CAM_DEBUG_TARGET) \
76 || defined(CAM_DEBUG_LUN)
77#ifdef CAMDEBUG
78#if !defined(CAM_DEBUG_BUS) || !defined(CAM_DEBUG_TARGET) \
79 || !defined(CAM_DEBUG_LUN)
80#error "You must define all or none of CAM_DEBUG_BUS, CAM_DEBUG_TARGET \
81 and CAM_DEBUG_LUN"
82#endif /* !CAM_DEBUG_BUS || !CAM_DEBUG_TARGET || !CAM_DEBUG_LUN */
83#else /* !CAMDEBUG */
84#error "You must use options CAMDEBUG if you use the CAM_DEBUG_* options"
85#endif /* CAMDEBUG */
86#endif /* CAM_DEBUG_BUS || CAM_DEBUG_TARGET || CAM_DEBUG_LUN */
87
88void xpt_action(union ccb *new_ccb);
89void xpt_action_default(union ccb *new_ccb);
90union ccb *xpt_alloc_ccb(void);
91union ccb *xpt_alloc_ccb_nowait(void);
92void xpt_free_ccb(union ccb *free_ccb);
93void xpt_setup_ccb(struct ccb_hdr *ccb_h,
94 struct cam_path *path,
95 u_int32_t priority);

--- 48 unchanged lines hidden ---
66void xpt_action(union ccb *new_ccb);
67void xpt_action_default(union ccb *new_ccb);
68union ccb *xpt_alloc_ccb(void);
69union ccb *xpt_alloc_ccb_nowait(void);
70void xpt_free_ccb(union ccb *free_ccb);
71void xpt_setup_ccb(struct ccb_hdr *ccb_h,
72 struct cam_path *path,
73 u_int32_t priority);

--- 48 unchanged lines hidden ---