mlxvar.h (119665) | mlxvar.h (125975) |
---|---|
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 119665 2003-09-02 08:30:31Z scottl $ | 26 * $FreeBSD: head/sys/dev/mlx/mlxvar.h 125975 2004-02-18 21:36:53Z 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 */ --- 188 unchanged lines hidden (view full) --- 223/* 224 * Mylex System Disk driver 225 */ 226struct mlxd_softc 227{ 228 device_t mlxd_dev; 229 struct mlx_softc *mlxd_controller; 230 struct mlx_sysdrive *mlxd_drive; | 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 */ --- 188 unchanged lines hidden (view full) --- 223/* 224 * Mylex System Disk driver 225 */ 226struct mlxd_softc 227{ 228 device_t mlxd_dev; 229 struct mlx_softc *mlxd_controller; 230 struct mlx_sysdrive *mlxd_drive; |
231 struct disk mlxd_disk; | 231 struct disk *mlxd_disk; |
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, mlx_bio *bp); 241extern int mlx_submit_ioctl(struct mlx_softc *sc, 242 struct mlx_sysdrive *drive, u_long cmd, 243 caddr_t addr, int32_t flag, struct thread *td); 244extern void mlxd_intr(void *data); 245 246 | 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, mlx_bio *bp); 241extern int mlx_submit_ioctl(struct mlx_softc *sc, 242 struct mlx_sysdrive *drive, u_long cmd, 243 caddr_t addr, int32_t flag, struct thread *td); 244extern void mlxd_intr(void *data); 245 246 |