aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/zs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-06-16 09:47:26 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-06-16 09:47:26 +0000
commit89c9c53da05197f657dfe8e0bdda6941a2e9a0d4 (patch)
tree624c885995e84df6decddd3291c60a15e50e3c85 /sys/dev/zs
parentd420fcda27350a7e2d3d8f3b2c9de6aa74df2e30 (diff)
downloadsrc-89c9c53da05197f657dfe8e0bdda6941a2e9a0d4.tar.gz
src-89c9c53da05197f657dfe8e0bdda6941a2e9a0d4.zip
Do the dreaded s/dev_t/struct cdev */
Bump __FreeBSD_version accordingly.
Notes
Notes: svn path=/head/; revision=130585
Diffstat (limited to 'sys/dev/zs')
-rw-r--r--sys/dev/zs/z8530var.h2
-rw-r--r--sys/dev/zs/zs.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/zs/z8530var.h b/sys/dev/zs/z8530var.h
index 89a246a80c90..1e5fef7d3282 100644
--- a/sys/dev/zs/z8530var.h
+++ b/sys/dev/zs/z8530var.h
@@ -43,7 +43,7 @@ struct zstty_softc {
bus_space_tag_t sc_bt;
bus_space_handle_t sc_csr;
bus_space_handle_t sc_data;
- dev_t sc_si;
+ struct cdev *sc_si;
struct tty *sc_tty;
int sc_icnt;
uint8_t *sc_iput;
diff --git a/sys/dev/zs/zs.c b/sys/dev/zs/zs.c
index 46955261771b..bc848fb369bd 100644
--- a/sys/dev/zs/zs.c
+++ b/sys/dev/zs/zs.c
@@ -447,7 +447,7 @@ zstty_softintr(struct zstty_softc *sc)
}
static int
-zsttyopen(dev_t dev, int flags, int mode, struct thread *td)
+zsttyopen(struct cdev *dev, int flags, int mode, struct thread *td)
{
struct zstty_softc *sc;
struct tty *tp;
@@ -503,7 +503,7 @@ zsttyopen(dev_t dev, int flags, int mode, struct thread *td)
}
static int
-zsttyclose(dev_t dev, int flags, int mode, struct thread *td)
+zsttyclose(struct cdev *dev, int flags, int mode, struct thread *td)
{
struct tty *tp;
@@ -519,7 +519,7 @@ zsttyclose(dev_t dev, int flags, int mode, struct thread *td)
}
static int
-zsttyioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td)
+zsttyioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *td)
{
struct zstty_softc *sc;
struct tty *tp;