aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/zs/zs.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-02-20 20:54:45 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-02-20 20:54:45 +0000
commit263444cfbfe839364122db12047d90ffbde001f0 (patch)
treefe84e49e8fed83b0535fa5e72d7341488cc6b288 /sys/dev/zs/zs.c
parentf355124f7f1347e3f771c8d1d764ae4f387a4dfd (diff)
downloadsrc-263444cfbfe839364122db12047d90ffbde001f0.tar.gz
src-263444cfbfe839364122db12047d90ffbde001f0.zip
Change the console interface to pass a "struct consdev *" instead of a
dev_t to the method functions. The dev_t can still be found at struct consdev *->cn_dev. Add a void *cn_arg element to struct consdev which the drivers can use for retrieving their softc.
Notes
Notes: svn path=/head/; revision=111194
Diffstat (limited to 'sys/dev/zs/zs.c')
-rw-r--r--sys/dev/zs/zs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/zs/zs.c b/sys/dev/zs/zs.c
index 24e78d316533..4f54b413822f 100644
--- a/sys/dev/zs/zs.c
+++ b/sys/dev/zs/zs.c
@@ -890,7 +890,7 @@ zs_cnterm(struct consdev *cn)
}
static int
-zs_cngetc(dev_t dev)
+zs_cngetc(struct consdev *cn)
{
struct zstty_softc *sc = zstty_cons;
@@ -900,7 +900,7 @@ zs_cngetc(dev_t dev)
}
static int
-zs_cncheckc(dev_t dev)
+zs_cncheckc(struct consdev *cn)
{
struct zstty_softc *sc = zstty_cons;
@@ -910,7 +910,7 @@ zs_cncheckc(dev_t dev)
}
static void
-zs_cnputc(dev_t dev, int c)
+zs_cnputc(struct consdev *cn, int c)
{
struct zstty_softc *sc = zstty_cons;
@@ -920,7 +920,7 @@ zs_cnputc(dev_t dev, int c)
}
static void
-zs_cndbctl(dev_t dev, int c)
+zs_cndbctl(struct consdev *cn, int c)
{
}