diff options
author | Robert Noland <rnoland@FreeBSD.org> | 2009-12-29 21:51:28 +0000 |
---|---|---|
committer | Robert Noland <rnoland@FreeBSD.org> | 2009-12-29 21:51:28 +0000 |
commit | cfd7bacef28efb62a65a679e3e879078e7932b36 (patch) | |
tree | ffed01a3f1f97aa245caf60848edab318a53aef9 /sys/dev/fb/vga.c | |
parent | 723bd8c6b5225ae6ebc947e365194fa75dde548b (diff) | |
download | src-cfd7bacef28efb62a65a679e3e879078e7932b36.tar.gz src-cfd7bacef28efb62a65a679e3e879078e7932b36.zip |
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
Notes:
svn path=/head/; revision=201223
Diffstat (limited to 'sys/dev/fb/vga.c')
-rw-r--r-- | sys/dev/fb/vga.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/fb/vga.c b/sys/dev/fb/vga.c index 0cae0ae50598..7d702ad2b8e9 100644 --- a/sys/dev/fb/vga.c +++ b/sys/dev/fb/vga.c @@ -144,10 +144,10 @@ vga_ioctl(struct cdev *dev, vga_softc_t *sc, u_long cmd, caddr_t arg, int flag, } int -vga_mmap(struct cdev *dev, vga_softc_t *sc, vm_offset_t offset, vm_offset_t *paddr, - int prot) +vga_mmap(struct cdev *dev, vga_softc_t *sc, vm_ooffset_t offset, + vm_offset_t *paddr, int prot, vm_memattr_t *memattr) { - return genfbmmap(&sc->gensc, sc->adp, offset, paddr, prot); + return genfbmmap(&sc->gensc, sc->adp, offset, paddr, prot, memattr); } #endif /* FB_INSTALL_CDEV */ @@ -2465,8 +2465,8 @@ vga_blank_display(video_adapter_t *adp, int mode) * all adapters */ static int -vga_mmap_buf(video_adapter_t *adp, vm_offset_t offset, vm_paddr_t *paddr, - int prot) +vga_mmap_buf(video_adapter_t *adp, vm_ooffset_t offset, vm_paddr_t *paddr, + int prot, vm_memattr_t *memattr) { if (adp->va_info.vi_flags & V_INFO_LINEAR) return -1; |