path: root/sys/sys/ttydevsw.h
diff options
authorRobert Noland <rnoland@FreeBSD.org>2009-12-29 21:51:28 +0000
committerRobert Noland <rnoland@FreeBSD.org>2009-12-29 21:51:28 +0000
commitcfd7bacef28efb62a65a679e3e879078e7932b36 (patch)
treeffed01a3f1f97aa245caf60848edab318a53aef9 /sys/sys/ttydevsw.h
parent723bd8c6b5225ae6ebc947e365194fa75dde548b (diff)
Update d_mmap() to accept vm_ooffset_t and vm_memattr_t.
This replaces d_mmap() with the d_mmap2() implementation and also changes the type of offset to vm_ooffset_t. Purge d_mmap2(). All driver modules will need to be rebuilt since D_VERSION is also bumped. Reviewed by: jhb@ MFC after: Not in this lifetime...
Notes: svn path=/head/; revision=201223
Diffstat (limited to 'sys/sys/ttydevsw.h')
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/sys/ttydevsw.h b/sys/sys/ttydevsw.h
index e2278c3ab432..4506919832f9 100644
--- a/sys/sys/ttydevsw.h
+++ b/sys/sys/ttydevsw.h
@@ -48,8 +48,8 @@ typedef int tsw_ioctl_t(struct tty *tp, u_long cmd, caddr_t data,
struct thread *td);
typedef int tsw_param_t(struct tty *tp, struct termios *t);
typedef int tsw_modem_t(struct tty *tp, int sigon, int sigoff);
-typedef int tsw_mmap_t(struct tty *tp, vm_offset_t offset,
- vm_paddr_t * paddr, int nprot);
+typedef int tsw_mmap_t(struct tty *tp, vm_ooffset_t offset,
+ vm_paddr_t * paddr, int nprot, vm_memattr_t *memattr);
typedef void tsw_pktnotify_t(struct tty *tp, char event);
typedef void tsw_free_t(void *softc);
@@ -142,11 +142,12 @@ ttydevsw_modem(struct tty *tp, int sigon, int sigoff)
static __inline int
-ttydevsw_mmap(struct tty *tp, vm_offset_t offset, vm_paddr_t *paddr, int nprot)
+ttydevsw_mmap(struct tty *tp, vm_ooffset_t offset, vm_paddr_t *paddr,
+ int nprot, vm_memattr_t *memattr)
- return tp->t_devsw->tsw_mmap(tp, offset, paddr, nprot);
+ return tp->t_devsw->tsw_mmap(tp, offset, paddr, nprot, memattr);
static __inline void