mlxvar.h (59136) | mlxvar.h (59249) |
---|---|
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 59136 2000-04-11 02:52:46Z msmith $ | 26 * $FreeBSD: head/sys/dev/mlx/mlxvar.h 59249 2000-04-15 05:54:02Z phk $ |
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 */ --- 94 unchanged lines hidden (view full) --- 129#define MLX_FEAT_PAUSEWORKS (1<<0) /* channel pause works as expected */ 130 131 /* controller queues and arrays */ 132 TAILQ_HEAD(, mlx_command) mlx_freecmds; /* command structures available for reuse */ 133 TAILQ_HEAD(, mlx_command) mlx_work; /* active commands */ 134 struct mlx_command *mlx_busycmd[MLX_NSLOTS]; /* busy commands */ 135 int mlx_busycmds; /* count of busy commands */ 136 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 */ --- 94 unchanged lines hidden (view full) --- 129#define MLX_FEAT_PAUSEWORKS (1<<0) /* channel pause works as expected */ 130 131 /* controller queues and arrays */ 132 TAILQ_HEAD(, mlx_command) mlx_freecmds; /* command structures available for reuse */ 133 TAILQ_HEAD(, mlx_command) mlx_work; /* active commands */ 134 struct mlx_command *mlx_busycmd[MLX_NSLOTS]; /* busy commands */ 135 int mlx_busycmds; /* count of busy commands */ 136 struct mlx_sysdrive mlx_sysdrive[MLX_MAXDRIVES]; /* system drives */ |
137 struct buf_queue_head mlx_bufq; /* outstanding I/O operations */ | 137 struct bio_queue_head mlx_bioq; /* outstanding I/O operations */ |
138 int mlx_waitbufs; /* number of bufs awaiting commands */ 139 140 /* controller status */ 141 int mlx_geom; 142#define MLX_GEOM_128_32 0 /* geoemetry translation modes */ 143#define MLX_GEOM_256_63 1 144 int mlx_state; 145#define MLX_STATE_INTEN (1<<0) /* interrupts have been enabled */ --- 86 unchanged lines hidden (view full) --- 232 int mlxd_unit; 233 int mlxd_flags; 234#define MLXD_OPEN (1<<0) /* drive is open (can't shut down) */ 235}; 236 237/* 238 * Interface between driver core and disk driver (should be using a bus?) 239 */ | 138 int mlx_waitbufs; /* number of bufs awaiting commands */ 139 140 /* controller status */ 141 int mlx_geom; 142#define MLX_GEOM_128_32 0 /* geoemetry translation modes */ 143#define MLX_GEOM_256_63 1 144 int mlx_state; 145#define MLX_STATE_INTEN (1<<0) /* interrupts have been enabled */ --- 86 unchanged lines hidden (view full) --- 232 int mlxd_unit; 233 int mlxd_flags; 234#define MLXD_OPEN (1<<0) /* drive is open (can't shut down) */ 235}; 236 237/* 238 * Interface between driver core and disk driver (should be using a bus?) 239 */ |
240extern int mlx_submit_buf(struct mlx_softc *sc, struct buf *bp); | 240extern int mlx_submit_buf(struct mlx_softc *sc, struct bio *bp); |
241extern int mlx_submit_ioctl(struct mlx_softc *sc, struct mlx_sysdrive *drive, u_long cmd, 242 caddr_t addr, int32_t flag, struct proc *p); 243extern void mlxd_intr(void *data); 244 245 | 241extern int mlx_submit_ioctl(struct mlx_softc *sc, struct mlx_sysdrive *drive, u_long cmd, 242 caddr_t addr, int32_t flag, struct proc *p); 243extern void mlxd_intr(void *data); 244 245 |