diff options
author | mux <mux@FreeBSD.org> | 2003-02-25 13:30:50 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-02-25 13:30:50 +0000 |
commit | a46ff80dc4a784cc6a3b5bd4f93458ff1de6d1df (patch) | |
tree | 49fabeaee7c55156e4e34fa2816d7e1cc3f46b36 | |
parent | 855a905ec2a217490e4babe36983a424d2a91c43 (diff) | |
download | FreeBSD-src-a46ff80dc4a784cc6a3b5bd4f93458ff1de6d1df.zip FreeBSD-src-a46ff80dc4a784cc6a3b5bd4f93458ff1de6d1df.tar.gz |
Convert one more d_mmap_t consumer I missed in my previous commit.
-rw-r--r-- | sys/pc98/cbus/gdc.c | 6 | ||||
-rw-r--r-- | sys/pc98/pc98/pc98gdc.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/pc98/cbus/gdc.c b/sys/pc98/cbus/gdc.c index e5d0788..6525c5b 100644 --- a/sys/pc98/cbus/gdc.c +++ b/sys/pc98/cbus/gdc.c @@ -1353,12 +1353,14 @@ 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, int prot) +gdc_mmap_buf(video_adapter_t *adp, vm_offset_t offset, vm_offset_t *paddr, + int prot) { /* FIXME: is this correct? XXX */ if (offset > VIDEO_BUF_SIZE - PAGE_SIZE) return -1; - return i386_btop(adp->va_info.vi_window + offset); + *paddr = adp->va_info.vi_window + offset; + return 0; } static int diff --git a/sys/pc98/pc98/pc98gdc.c b/sys/pc98/pc98/pc98gdc.c index e5d0788..6525c5b 100644 --- a/sys/pc98/pc98/pc98gdc.c +++ b/sys/pc98/pc98/pc98gdc.c @@ -1353,12 +1353,14 @@ 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, int prot) +gdc_mmap_buf(video_adapter_t *adp, vm_offset_t offset, vm_offset_t *paddr, + int prot) { /* FIXME: is this correct? XXX */ if (offset > VIDEO_BUF_SIZE - PAGE_SIZE) return -1; - return i386_btop(adp->va_info.vi_window + offset); + *paddr = adp->va_info.vi_window + offset; + return 0; } static int |