diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-16 09:47:26 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-16 09:47:26 +0000 |
commit | 89c9c53da05197f657dfe8e0bdda6941a2e9a0d4 (patch) | |
tree | 624c885995e84df6decddd3291c60a15e50e3c85 /sys/i386/bios | |
parent | d420fcda27350a7e2d3d8f3b2c9de6aa74df2e30 (diff) | |
download | src-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/i386/bios')
-rw-r--r-- | sys/i386/bios/apm.c | 10 | ||||
-rw-r--r-- | sys/i386/bios/smapi.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index 4f3adca4da2b..768bd06fa0e7 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/apm.c @@ -1229,7 +1229,7 @@ apm_attach(device_t dev) } static int -apmopen(dev_t dev, int flag, int fmt, struct thread *td) +apmopen(struct cdev *dev, int flag, int fmt, struct thread *td) { struct apm_softc *sc = &apm_softc; int ctl = APMDEV(dev); @@ -1257,7 +1257,7 @@ apmopen(dev_t dev, int flag, int fmt, struct thread *td) } static int -apmclose(dev_t dev, int flag, int fmt, struct thread *td) +apmclose(struct cdev *dev, int flag, int fmt, struct thread *td) { struct apm_softc *sc = &apm_softc; int ctl = APMDEV(dev); @@ -1280,7 +1280,7 @@ apmclose(dev_t dev, int flag, int fmt, struct thread *td) } static int -apmioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) +apmioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td) { struct apm_softc *sc = &apm_softc; struct apm_bios_arg *args; @@ -1434,7 +1434,7 @@ apmioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) } static int -apmwrite(dev_t dev, struct uio *uio, int ioflag) +apmwrite(struct cdev *dev, struct uio *uio, int ioflag) { struct apm_softc *sc = &apm_softc; u_int event_type; @@ -1464,7 +1464,7 @@ apmwrite(dev_t dev, struct uio *uio, int ioflag) } static int -apmpoll(dev_t dev, int events, struct thread *td) +apmpoll(struct cdev *dev, int events, struct thread *td) { struct apm_softc *sc = &apm_softc; int revents = 0; diff --git a/sys/i386/bios/smapi.c b/sys/i386/bios/smapi.c index 883676cc3a6e..9879c90334de 100644 --- a/sys/i386/bios/smapi.c +++ b/sys/i386/bios/smapi.c @@ -58,7 +58,7 @@ __FBSDID("$FreeBSD$"); #define ADDR2HDR(addr) ((struct smapi_bios_header *)BIOS_PADDRTOVADDR(addr)) struct smapi_softc { - dev_t cdev; + struct cdev *cdev; device_t dev; struct resource * res; int rid; @@ -98,7 +98,7 @@ extern int smapi32_new (u_long, u_short, static int smapi_ioctl (dev, cmd, data, fflag, td) - dev_t dev; + struct cdev *dev; u_long cmd; caddr_t data; int fflag; |