Deleted Added
full compact
mlxvar.h (60074) mlxvar.h (60833)
1/*-
2 * Copyright (c) 1999 Michael Smith
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1999 Michael Smith
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/mlx/mlxvar.h 60074 2000-05-06 08:54:33Z msmith $
26 * $FreeBSD: head/sys/dev/mlx/mlxvar.h 60833 2000-05-23 20:41:01Z jake $
27 */
28
29/*
30 * Debugging levels:
31 * 0 - quiet, only emit warnings
32 * 1 - noisy, emit major function points and things done
33 * 2 - extremely noisy, emit trace items in loops, etc.
34 */

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

72 device_t ms_disk;
73};
74
75/*
76 * Per-command control structure.
77 */
78struct mlx_command
79{
27 */
28
29/*
30 * Debugging levels:
31 * 0 - quiet, only emit warnings
32 * 1 - noisy, emit major function points and things done
33 * 2 - extremely noisy, emit trace items in loops, etc.
34 */

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

72 device_t ms_disk;
73};
74
75/*
76 * Per-command control structure.
77 */
78struct mlx_command
79{
80 TAILQ_ENTRY(mlx_command) mc_link; /* list linkage */
80 TAILQ_ENTRY(struct mlx_command) mc_link; /* list linkage */
81
82 struct mlx_softc *mc_sc; /* controller that owns us */
83 u_int8_t mc_slot; /* command slot we occupy */
84 u_int16_t mc_status; /* command completion status */
85 time_t mc_timeout; /* when this command expires */
86 u_int8_t mc_mailbox[16]; /* command mailbox */
87 u_int32_t mc_sgphys; /* physical address of s/g array in controller space */
88 int mc_nsgent; /* number of entries in s/g map */

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

123 bus_dmamap_t mlx_sg_dmamap; /* map for s/g buffers */
124
125 /* controller limits and features */
126 struct mlx_enquiry2 *mlx_enq2;
127 int mlx_feature; /* controller features/quirks */
128#define MLX_FEAT_PAUSEWORKS (1<<0) /* channel pause works as expected */
129
130 /* controller queues and arrays */
81
82 struct mlx_softc *mc_sc; /* controller that owns us */
83 u_int8_t mc_slot; /* command slot we occupy */
84 u_int16_t mc_status; /* command completion status */
85 time_t mc_timeout; /* when this command expires */
86 u_int8_t mc_mailbox[16]; /* command mailbox */
87 u_int32_t mc_sgphys; /* physical address of s/g array in controller space */
88 int mc_nsgent; /* number of entries in s/g map */

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

123 bus_dmamap_t mlx_sg_dmamap; /* map for s/g buffers */
124
125 /* controller limits and features */
126 struct mlx_enquiry2 *mlx_enq2;
127 int mlx_feature; /* controller features/quirks */
128#define MLX_FEAT_PAUSEWORKS (1<<0) /* channel pause works as expected */
129
130 /* controller queues and arrays */
131 TAILQ_HEAD(, mlx_command) mlx_freecmds; /* command structures available for reuse */
132 TAILQ_HEAD(, mlx_command) mlx_work; /* active commands */
131 TAILQ_HEAD(, struct mlx_command) mlx_freecmds; /* command structures available for reuse */
132 TAILQ_HEAD(, struct mlx_command) mlx_work; /* active commands */
133 struct mlx_command *mlx_busycmd[MLX_NSLOTS]; /* busy commands */
134 int mlx_busycmds; /* count of busy commands */
135 struct mlx_sysdrive mlx_sysdrive[MLX_MAXDRIVES]; /* system drives */
136 struct bio_queue_head mlx_bioq; /* outstanding I/O operations */
137 int mlx_waitbufs; /* number of bufs awaiting commands */
138
139 /* controller status */
140 int mlx_geom;

--- 105 unchanged lines hidden ---
133 struct mlx_command *mlx_busycmd[MLX_NSLOTS]; /* busy commands */
134 int mlx_busycmds; /* count of busy commands */
135 struct mlx_sysdrive mlx_sysdrive[MLX_MAXDRIVES]; /* system drives */
136 struct bio_queue_head mlx_bioq; /* outstanding I/O operations */
137 int mlx_waitbufs; /* number of bufs awaiting commands */
138
139 /* controller status */
140 int mlx_geom;

--- 105 unchanged lines hidden ---