summaryrefslogtreecommitdiffstats
path: root/sys/dev/bktr
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-11-08 12:39:07 +0000
committerdfr <dfr@FreeBSD.org>1998-11-08 12:39:07 +0000
commitb6d9e06815177a68a4c04bd91f2c72a3d8f38085 (patch)
tree054790d6c046f4847a676be168ee932453415ed2 /sys/dev/bktr
parent2a9cd5605117404c74854f0e4b7b5ea54d7c8671 (diff)
downloadFreeBSD-src-b6d9e06815177a68a4c04bd91f2c72a3d8f38085.zip
FreeBSD-src-b6d9e06815177a68a4c04bd91f2c72a3d8f38085.tar.gz
* Fix a couple of places in the device pager where an address was
truncated to 32 bits. * Change the calling convention of the device mmap entry point to pass a vm_offset_t instead of an int for the offset allowing devices with a larger memory map than (1<<32) to be supported on the alpha (/dev/mem is one such). These changes are required to allow the X server to mmap the various I/O regions used for device port and memory access on the alpha.
Diffstat (limited to 'sys/dev/bktr')
-rw-r--r--sys/dev/bktr/bktr_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c
index 30a9dab..677303e 100644
--- a/sys/dev/bktr/bktr_core.c
+++ b/sys/dev/bktr/bktr_core.c
@@ -1,4 +1,4 @@
-/* $Id: brooktree848.c,v 1.57 1998/10/31 11:26:38 nsouch Exp $ */
+/* $Id: brooktree848.c,v 1.58 1998/11/07 14:30:48 nsouch Exp $ */
/* BT848 Driver for Brooktree's Bt848 based cards.
The Brooktree BT848 Driver driver is based upon Mark Tinguely and
Jim Lowe's driver for the Matrox Meteor PCI card . The
@@ -3000,7 +3000,7 @@ common_ioctl( bktr_ptr_t bktr, bt848_ptr_t bt848, int cmd, caddr_t arg )
*
*/
int
-bktr_mmap( dev_t dev, int offset, int nprot )
+bktr_mmap( dev_t dev, vm_offset_t offset, int nprot )
{
int unit;
bktr_ptr_t bktr;
OpenPOWER on IntegriCloud