summaryrefslogtreecommitdiffstats
path: root/sys/pci/meteor.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/meteor.c')
-rw-r--r--sys/pci/meteor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/pci/meteor.c b/sys/pci/meteor.c
index 340c709..fd1f7f6 100644
--- a/sys/pci/meteor.c
+++ b/sys/pci/meteor.c
@@ -2107,7 +2107,7 @@ meteor_ioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct thread *td)
}
int
-meteor_mmap(dev_t dev, vm_offset_t offset, int nprot)
+meteor_mmap(dev_t dev, vm_offset_t offset, vm_offset_t *paddr, int nprot)
{
int unit;
@@ -2126,6 +2126,7 @@ meteor_mmap(dev_t dev, vm_offset_t offset, int nprot)
if(offset >= mtr->alloc_pages * PAGE_SIZE)
return -1;
- return i386_btop(vtophys(mtr->bigbuf) + offset);
+ *paddr = vtophys(mtr->bigbuf) + offset;
+ return 0;
}
#endif
OpenPOWER on IntegriCloud