Deleted Added
full compact
mlxvar.h (240608) mlxvar.h (240963)
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 240608 2012-09-17 15:27:30Z jhb $
26 * $FreeBSD: head/sys/dev/mlx/mlxvar.h 240963 2012-09-26 14:17:14Z jhb $
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 */

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

130#define MLX_FEAT_PAUSEWORKS (1<<0) /* channel pause works as expected */
131
132 /* controller queues and arrays */
133 TAILQ_HEAD(, mlx_command) mlx_freecmds; /* command structures available for reuse */
134 TAILQ_HEAD(, mlx_command) mlx_work; /* active commands */
135 struct mlx_command *mlx_busycmd[MLX_NSLOTS]; /* busy commands */
136 int mlx_busycmds; /* count of busy commands */
137 struct mlx_sysdrive mlx_sysdrive[MLX_MAXDRIVES]; /* system drives */
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 */

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

130#define MLX_FEAT_PAUSEWORKS (1<<0) /* channel pause works as expected */
131
132 /* controller queues and arrays */
133 TAILQ_HEAD(, mlx_command) mlx_freecmds; /* command structures available for reuse */
134 TAILQ_HEAD(, mlx_command) mlx_work; /* active commands */
135 struct mlx_command *mlx_busycmd[MLX_NSLOTS]; /* busy commands */
136 int mlx_busycmds; /* count of busy commands */
137 struct mlx_sysdrive mlx_sysdrive[MLX_MAXDRIVES]; /* system drives */
138 mlx_bioq mlx_bioq; /* outstanding I/O operations */
138 struct bio_queue_head mlx_bioq; /* outstanding I/O operations */
139 int mlx_waitbufs; /* number of bufs awaiting commands */
140
141 /* controller status */
142 int mlx_geom;
143#define MLX_GEOM_128_32 0 /* geoemetry translation modes */
144#define MLX_GEOM_256_63 1
145 int mlx_state;
146#define MLX_STATE_INTEN (1<<0) /* interrupts have been enabled */

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

216 int mlxd_unit;
217 int mlxd_flags;
218#define MLXD_OPEN (1<<0) /* drive is open (can't shut down) */
219};
220
221/*
222 * Interface between driver core and disk driver (should be using a bus?)
223 */
139 int mlx_waitbufs; /* number of bufs awaiting commands */
140
141 /* controller status */
142 int mlx_geom;
143#define MLX_GEOM_128_32 0 /* geoemetry translation modes */
144#define MLX_GEOM_256_63 1
145 int mlx_state;
146#define MLX_STATE_INTEN (1<<0) /* interrupts have been enabled */

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

216 int mlxd_unit;
217 int mlxd_flags;
218#define MLXD_OPEN (1<<0) /* drive is open (can't shut down) */
219};
220
221/*
222 * Interface between driver core and disk driver (should be using a bus?)
223 */
224extern int mlx_submit_buf(struct mlx_softc *sc, mlx_bio *bp);
224extern int mlx_submit_buf(struct mlx_softc *sc, struct bio *bp);
225extern int mlx_submit_ioctl(struct mlx_softc *sc,
226 struct mlx_sysdrive *drive, u_long cmd,
227 caddr_t addr, int32_t flag, struct thread *td);
225extern int mlx_submit_ioctl(struct mlx_softc *sc,
226 struct mlx_sysdrive *drive, u_long cmd,
227 caddr_t addr, int32_t flag, struct thread *td);
228extern void mlxd_intr(void *data);
228extern void mlxd_intr(struct bio *bp);
229
230
229
230