summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2009-12-29 21:51:28 +0000
committerrnoland <rnoland@FreeBSD.org>2009-12-29 21:51:28 +0000
commit3dc3ad8568aae78c6c3ebad44e859a0feac05c38 (patch)
treeffed01a3f1f97aa245caf60848edab318a53aef9 /sys/pc98/cbus
parentb8a003ef1beea7446e2328791d40c81ee37e8bb0 (diff)
downloadFreeBSD-src-3dc3ad8568aae78c6c3ebad44e859a0feac05c38.zip
FreeBSD-src-3dc3ad8568aae78c6c3ebad44e859a0feac05c38.tar.gz
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...
Diffstat (limited to 'sys/pc98/cbus')
-rw-r--r--sys/pc98/cbus/gdc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/pc98/cbus/gdc.c b/sys/pc98/cbus/gdc.c
index 3fb6c82..b048dad 100644
--- a/sys/pc98/cbus/gdc.c
+++ b/sys/pc98/cbus/gdc.c
@@ -395,12 +395,13 @@ gdcioctl(struct cdev *dev, u_long cmd, caddr_t arg, int flag, struct thread *td)
}
static int
-gdcmmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int prot)
+gdcmmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
+ int prot, vm_memattr_t *memattr)
{
gdc_softc_t *sc;
sc = GDC_SOFTC(GDC_UNIT(dev));
- return genfbmmap(&sc->gensc, sc->adp, offset, paddr, prot);
+ return genfbmmap(&sc->gensc, sc->adp, offset, paddr, prot, memattr);
}
#endif /* FB_INSTALL_CDEV */
@@ -1337,8 +1338,8 @@ gdc_blank_display(video_adapter_t *adp, int mode)
* Mmap frame buffer.
*/
static int
-gdc_mmap_buf(video_adapter_t *adp, vm_offset_t offset, vm_offset_t *paddr,
- int prot)
+gdc_mmap_buf(video_adapter_t *adp, vm_ooffset_t offset, vm_offset_t *paddr,
+ int prot, vm_memattr_t *memattr)
{
/* FIXME: is this correct? XXX */
if (offset > VIDEO_BUF_SIZE - PAGE_SIZE)
OpenPOWER on IntegriCloud