Deleted Added
full compact
mlxvar.h (87599) mlxvar.h (103675)
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 87599 2001-12-10 08:09:49Z obrien $
26 * $FreeBSD: head/sys/dev/mlx/mlxvar.h 103675 2002-09-20 12:52:03Z 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 */

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

225struct mlxd_softc
226{
227 device_t mlxd_dev;
228 dev_t mlxd_dev_t;
229 struct mlx_softc *mlxd_controller;
230 struct mlx_sysdrive *mlxd_drive;
231 struct disk mlxd_disk;
232 struct devstat mlxd_stats;
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 */

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

225struct mlxd_softc
226{
227 device_t mlxd_dev;
228 dev_t mlxd_dev_t;
229 struct mlx_softc *mlxd_controller;
230 struct mlx_sysdrive *mlxd_drive;
231 struct disk mlxd_disk;
232 struct devstat mlxd_stats;
233 struct disklabel mlxd_label;
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, mlx_bio *bp);
243extern int mlx_submit_ioctl(struct mlx_softc *sc,
244 struct mlx_sysdrive *drive, u_long cmd,
245 caddr_t addr, int32_t flag, struct thread *td);
246extern void mlxd_intr(void *data);
247
248
233 int mlxd_unit;
234 int mlxd_flags;
235#define MLXD_OPEN (1<<0) /* drive is open (can't shut down) */
236};
237
238/*
239 * Interface between driver core and disk driver (should be using a bus?)
240 */
241extern int mlx_submit_buf(struct mlx_softc *sc, mlx_bio *bp);
242extern int mlx_submit_ioctl(struct mlx_softc *sc,
243 struct mlx_sysdrive *drive, u_long cmd,
244 caddr_t addr, int32_t flag, struct thread *td);
245extern void mlxd_intr(void *data);
246
247