mlxvar.h (69292) | mlxvar.h (78752) |
---|---|
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 69292 2000-11-28 06:17:32Z mdodd $ | 26 * $FreeBSD: head/sys/dev/mlx/mlxvar.h 78752 2001-06-25 04:32:31Z msmith $ |
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 struct bio_queue_head mlx_bioq; /* outstanding I/O operations */ | 138 mlx_bioq 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 */ --- 87 unchanged lines hidden (view full) --- 234 int mlxd_unit; 235 int mlxd_flags; 236#define MLXD_OPEN (1<<0) /* drive is open (can't shut down) */ 237}; 238 239/* 240 * Interface between driver core and disk driver (should be using a bus?) 241 */ | 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 */ --- 87 unchanged lines hidden (view full) --- 234 int mlxd_unit; 235 int mlxd_flags; 236#define MLXD_OPEN (1<<0) /* drive is open (can't shut down) */ 237}; 238 239/* 240 * Interface between driver core and disk driver (should be using a bus?) 241 */ |
242extern int mlx_submit_buf(struct mlx_softc *sc, struct bio *bp); | 242extern int mlx_submit_buf(struct mlx_softc *sc, mlx_bio *bp); |
243extern int mlx_submit_ioctl(struct mlx_softc *sc, struct mlx_sysdrive *drive, u_long cmd, 244 caddr_t addr, int32_t flag, struct proc *p); 245extern void mlxd_intr(void *data); 246 247 | 243extern int mlx_submit_ioctl(struct mlx_softc *sc, struct mlx_sysdrive *drive, u_long cmd, 244 caddr_t addr, int32_t flag, struct proc *p); 245extern void mlxd_intr(void *data); 246 247 |