Deleted Added
full compact
mlxio.h (51973) mlxio.h (58188)
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/mlxio.h 51973 1999-10-07 02:20:32Z msmith $
26 * $FreeBSD: head/sys/dev/mlx/mlxio.h 58188 2000-03-18 02:01:37Z msmith $
27 */
28
29#include <sys/ioccom.h>
30
31/*
32 * System Disk ioctls
33 */
34struct mlxd_rebuild

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

74 /* data buffer */
75 size_t mu_datasize; /* size of databuffer */
76 void *mu_buf; /* address in userspace of databuffer */
77 int mu_bufptr; /* offset into command mailbox to place databuffer address */
78
79 /* command */
80 u_int16_t mu_status; /* command status returned */
81 u_int8_t mu_command[16]; /* command mailbox contents */
27 */
28
29#include <sys/ioccom.h>
30
31/*
32 * System Disk ioctls
33 */
34struct mlxd_rebuild

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

74 /* data buffer */
75 size_t mu_datasize; /* size of databuffer */
76 void *mu_buf; /* address in userspace of databuffer */
77 int mu_bufptr; /* offset into command mailbox to place databuffer address */
78
79 /* command */
80 u_int16_t mu_status; /* command status returned */
81 u_int8_t mu_command[16]; /* command mailbox contents */
82
83 /* wrapper */
84 int mu_error; /* result of submission to driver */
85
82};
83
84#define MLX_NEXT_CHILD _IOWR('M', 0, int)
85#define MLX_RESCAN_DRIVES _IO ('M', 1)
86#define MLX_DETACH_DRIVE _IOW ('M', 2, int)
87#define MLX_PAUSE_CHANNEL _IOW ('M', 3, struct mlx_pause)
88#define MLX_COMMAND _IOWR('M', 4, struct mlx_usercommand)
86};
87
88#define MLX_NEXT_CHILD _IOWR('M', 0, int)
89#define MLX_RESCAN_DRIVES _IO ('M', 1)
90#define MLX_DETACH_DRIVE _IOW ('M', 2, int)
91#define MLX_PAUSE_CHANNEL _IOW ('M', 3, struct mlx_pause)
92#define MLX_COMMAND _IOWR('M', 4, struct mlx_usercommand)
93