From dfd1f7fd50fffaf75541921fcf86454cd8eb3614 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 16 Jun 2004 09:47:26 +0000 Subject: Do the dreaded s/dev_t/struct cdev */ Bump __FreeBSD_version accordingly. --- sys/dev/adlink/adlink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/adlink') diff --git a/sys/dev/adlink/adlink.c b/sys/dev/adlink/adlink.c index 1d6b8611..b32ef3d 100644 --- a/sys/dev/adlink/adlink.c +++ b/sys/dev/adlink/adlink.c @@ -104,7 +104,7 @@ struct softc { struct resource *r0, *r1, *ri; bus_space_tag_t t0, t1; bus_space_handle_t h0, h1; - dev_t dev; + struct cdev *dev; off_t mapvir; struct proc *procp; @@ -241,7 +241,7 @@ adlink_loran(void *arg) } static int -adlink_open(dev_t dev, int oflags, int devtype, struct thread *td) +adlink_open(struct cdev *dev, int oflags, int devtype, struct thread *td) { static int once; struct softc *sc; @@ -307,7 +307,7 @@ adlink_open(dev_t dev, int oflags, int devtype, struct thread *td) } static int -adlink_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td) +adlink_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td) { struct softc *sc; struct wave *wp; @@ -341,7 +341,7 @@ adlink_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td) } static int -adlink_mmap(dev_t dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot) +adlink_mmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot) { struct softc *sc; struct wave *wp; -- cgit v1.1