diff options
author | phk <phk@FreeBSD.org> | 2003-02-20 20:54:45 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-20 20:54:45 +0000 |
commit | 72688ad7fe6ac65cbfc2c4d260ba7d901bf1bcc2 (patch) | |
tree | fe84e49e8fed83b0535fa5e72d7341488cc6b288 /sys/dev/sab | |
parent | f5440b21c3c89d9d1d989bbed1147a6d7e678e41 (diff) | |
download | FreeBSD-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/sab')
-rw-r--r-- | sys/dev/sab/sab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sab/sab.c b/sys/dev/sab/sab.c index 0540dcf..9218bee 100644 --- a/sys/dev/sab/sab.c +++ b/sys/dev/sab/sab.c @@ -1132,7 +1132,7 @@ sab_cnterm(struct consdev *cn) } static int -sab_cngetc(dev_t dev) +sab_cngetc(struct consdev *cn) { struct sabtty_softc *sc = sabtty_cons; @@ -1142,7 +1142,7 @@ sab_cngetc(dev_t dev) } static int -sab_cncheckc(dev_t dev) +sab_cncheckc(struct consdev *cn) { struct sabtty_softc *sc = sabtty_cons; @@ -1152,7 +1152,7 @@ sab_cncheckc(dev_t dev) } static void -sab_cnputc(dev_t dev, int c) +sab_cnputc(struct consdev *cn, int c) { struct sabtty_softc *sc = sabtty_cons; @@ -1162,7 +1162,7 @@ sab_cnputc(dev_t dev, int c) } static void -sab_cndbctl(dev_t dev, int c) +sab_cndbctl(struct consdev *cn, int c) { } |