diff options
author | dfr <dfr@FreeBSD.org> | 1998-11-08 12:39:07 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-11-08 12:39:07 +0000 |
commit | b6d9e06815177a68a4c04bd91f2c72a3d8f38085 (patch) | |
tree | 054790d6c046f4847a676be168ee932453415ed2 /sys/pci/xrpu.c | |
parent | 2a9cd5605117404c74854f0e4b7b5ea54d7c8671 (diff) | |
download | FreeBSD-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/pci/xrpu.c')
-rw-r--r-- | sys/pci/xrpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/xrpu.c b/sys/pci/xrpu.c index c34a73d..6603315 100644 --- a/sys/pci/xrpu.c +++ b/sys/pci/xrpu.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: xrpu.c,v 1.2 1998/08/18 00:32:48 bde Exp $ + * $Id: xrpu.c,v 1.3 1998/10/24 19:47:42 phk Exp $ * * A very simple device driver for PCI cards based on Xilinx 6200 series * FPGA/RPU devices. Current Functionality is to allow you to open and @@ -146,7 +146,7 @@ xrpu_close(dev_t dev, int flag, int mode, struct proc *p) } static int -xrpu_mmap(dev_t dev, int offset, int nprot) +xrpu_mmap(dev_t dev, vm_offset_t offset, int nprot) { struct softc *sc = softc[dev2unit(dev)]; if (offset >= 0x1000000) |