Module Name: src
Committed By: pgoyette
Date: Mon Jun 12 07:10:07 UTC 2017
Modified Files:
src/sys/dev/wscons: wsmuxvar.h
Log Message:
Always include declarations/definitions for NWSMUX and NWSDISPLAY even
if they aren't needed. This enables us to have structures of a fixed
size regardless of which child devices are configured, which enables
better modularization.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/wscons/wsmuxvar.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/wscons/wsmuxvar.h
diff -u src/sys/dev/wscons/wsmuxvar.h:1.16 src/sys/dev/wscons/wsmuxvar.h:1.17
--- src/sys/dev/wscons/wsmuxvar.h:1.16 Sun Jun 11 03:55:56 2017
+++ src/sys/dev/wscons/wsmuxvar.h Mon Jun 12 07:10:07 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: wsmuxvar.h,v 1.16 2017/06/11 03:55:56 nat Exp $ */
+/* $NetBSD: wsmuxvar.h,v 1.17 2017/06/12 07:10:07 pgoyette Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,13 +37,9 @@ struct wsevsrc {
const struct wssrcops *me_ops; /* method pointers */
struct wseventvar me_evar; /* wseventvar opened directly */
struct wseventvar *me_evp; /* our wseventvar when open */
-#if NWSDISPLAY > 0
device_t me_dispdv; /* our display if part of one */
-#endif
-#if NWSMUX > 0
struct wsmux_softc *me_parent; /* parent mux device */
TAILQ_ENTRY(wsevsrc) me_next; /* sibling pointers */
-#endif
};
/*
@@ -70,7 +66,6 @@ struct wssrcops {
#define wsevsrc_set_display(me, arg) \
((me)->me_ops->dsetdisplay((me)->me_dv, arg))
-#if NWSMUX > 0
struct wsmux_softc {
struct wsevsrc sc_base;
struct proc *sc_p; /* open proc */
@@ -90,5 +85,3 @@ int wsmux_set_display(struct wsmux_softc
int wskbd_add_mux(int, struct wsmux_softc *);
int wsmouse_add_mux(int, struct wsmux_softc *);
int wsbell_add_mux(int, struct wsmux_softc *);
-
-#endif /* NWSMUX > 0 */