summaryrefslogtreecommitdiffstats
path: root/sys/dev/zs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-02-20 20:54:45 +0000
committerphk <phk@FreeBSD.org>2003-02-20 20:54:45 +0000
commit72688ad7fe6ac65cbfc2c4d260ba7d901bf1bcc2 (patch)
treefe84e49e8fed83b0535fa5e72d7341488cc6b288 /sys/dev/zs
parentf5440b21c3c89d9d1d989bbed1147a6d7e678e41 (diff)
downloadFreeBSD-src-72688ad7fe6ac65cbfc2c4d260ba7d901bf1bcc2.zip
FreeBSD-src-72688ad7fe6ac65cbfc2c4d260ba7d901bf1bcc2.tar.gz
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.
Diffstat (limited to 'sys/dev/zs')
-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 24e78d3..4f54b41 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)
{
}
OpenPOWER on IntegriCloud