Deleted Added
full compact
mlxcontrol.h (60833) mlxcontrol.h (60938)
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/usr.sbin/mlxcontrol/mlxcontrol.h 60833 2000-05-23 20:41:01Z jake $
26 * $FreeBSD: head/usr.sbin/mlxcontrol/mlxcontrol.h 60938 2000-05-26 02:09:24Z jake $
27 */
28
29#include <sys/queue.h>
30
31#define debug(fmt, args...) printf("%s: " fmt "\n", __FUNCTION__ , ##args)
32
33struct mlxd_foreach_action
34{

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

53extern char *drivename(int unit);
54extern int ctrlrunit(char *str);
55extern int driveunit(char *str);
56
57extern void mlx_print_phys_drv(struct mlx_phys_drv *drv, int channel, int target, char *prefix, int verbose);
58
59struct conf_phys_drv
60{
27 */
28
29#include <sys/queue.h>
30
31#define debug(fmt, args...) printf("%s: " fmt "\n", __FUNCTION__ , ##args)
32
33struct mlxd_foreach_action
34{

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

53extern char *drivename(int unit);
54extern int ctrlrunit(char *str);
55extern int driveunit(char *str);
56
57extern void mlx_print_phys_drv(struct mlx_phys_drv *drv, int channel, int target, char *prefix, int verbose);
58
59struct conf_phys_drv
60{
61 TAILQ_ENTRY(struct conf_phys_drv) pd_link;
61 TAILQ_ENTRY(conf_phys_drv) pd_link;
62 int pd_bus;
63 int pd_target;
64 struct mlx_phys_drv pd_drv;
65};
66
67struct conf_span
68{
62 int pd_bus;
63 int pd_target;
64 struct mlx_phys_drv pd_drv;
65};
66
67struct conf_span
68{
69 TAILQ_ENTRY(struct conf_span) s_link;
69 TAILQ_ENTRY(conf_span) s_link;
70 struct conf_phys_drv *s_drvs[8];
71 struct mlx_sys_drv_span s_span;
72};
73
74struct conf_sys_drv
75{
70 struct conf_phys_drv *s_drvs[8];
71 struct mlx_sys_drv_span s_span;
72};
73
74struct conf_sys_drv
75{
76 TAILQ_ENTRY(struct conf_sys_drv) sd_link;
76 TAILQ_ENTRY(conf_sys_drv) sd_link;
77 struct conf_span *sd_spans[4];
78 struct mlx_sys_drv sd_drv;
79};
80
81struct conf_config
82{
77 struct conf_span *sd_spans[4];
78 struct mlx_sys_drv sd_drv;
79};
80
81struct conf_config
82{
83 TAILQ_HEAD(, struct conf_phys_drv) cc_phys_drvs;
84 TAILQ_HEAD(, struct conf_span) cc_spans;
85 TAILQ_HEAD(, struct conf_sys_drv) cc_sys_drvs;
83 TAILQ_HEAD(,conf_phys_drv) cc_phys_drvs;
84 TAILQ_HEAD(,conf_span) cc_spans;
85 TAILQ_HEAD(,conf_sys_drv) cc_sys_drvs;
86 struct conf_sys_drv *cc_drives[32];
87 struct mlx_core_cfg cc_cfg;
88};
89
86 struct conf_sys_drv *cc_drives[32];
87 struct mlx_core_cfg cc_cfg;
88};
89