summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-03-25 00:07:06 +0000
committerjake <jake@FreeBSD.org>2003-03-25 00:07:06 +0000
commit783ae539c3e44d35afb500b405ff986b3033bc4a (patch)
tree553401a4d58eb98b1e208a82c3ba2c32b848a225 /sys/pci
parent0079e3d786d0b0a2647229d3498a426a039a5016 (diff)
downloadFreeBSD-src-783ae539c3e44d35afb500b405ff986b3033bc4a.zip
FreeBSD-src-783ae539c3e44d35afb500b405ff986b3033bc4a.tar.gz
- Add vm_paddr_t, a physical address type. This is required for systems
where physical addresses larger than virtual addresses, such as i386s with PAE. - Use this to represent physical addresses in the MI vm system and in the i386 pmap code. This also changes the paddr parameter to d_mmap_t. - Fix printf formats to handle physical addresses >4G in the i386 memory detection code, and due to kvtop returning vm_paddr_t instead of u_long. Note that this is a name change only; vm_paddr_t is still the same as vm_offset_t on all currently supported platforms. Sponsored by: DARPA, Network Associates Laboratories Discussed with: re, phk (cdevsw change)
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/agp.c2
-rw-r--r--sys/pci/meteor.c2
-rw-r--r--sys/pci/xrpu.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/agp.c b/sys/pci/agp.c
index 8c59946..5ff2446 100644
--- a/sys/pci/agp.c
+++ b/sys/pci/agp.c
@@ -716,7 +716,7 @@ agp_ioctl(dev_t kdev, u_long cmd, caddr_t data, int fflag, struct thread *td)
}
static int
-agp_mmap(dev_t kdev, vm_offset_t offset, vm_offset_t *paddr, int prot)
+agp_mmap(dev_t kdev, vm_offset_t offset, vm_paddr_t *paddr, int prot)
{
device_t dev = KDEV2DEV(kdev);
struct agp_softc *sc = device_get_softc(dev);
diff --git a/sys/pci/meteor.c b/sys/pci/meteor.c
index 96bc7d5..71f49a0 100644
--- a/sys/pci/meteor.c
+++ b/sys/pci/meteor.c
@@ -2102,7 +2102,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, vm_offset_t *paddr, int nprot)
+meteor_mmap(dev_t dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot)
{
int unit;
diff --git a/sys/pci/xrpu.c b/sys/pci/xrpu.c
index 0c269d4..eca1a11 100644
--- a/sys/pci/xrpu.c
+++ b/sys/pci/xrpu.c
@@ -129,7 +129,7 @@ xrpu_close(dev_t dev, int flag, int mode, struct thread *td)
}
static int
-xrpu_mmap(dev_t dev, vm_offset_t offset, vm_offset_t *paddr, int nprot)
+xrpu_mmap(dev_t dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot)
{
struct softc *sc = dev->si_drv1;
if (offset >= 0x1000000)
OpenPOWER on IntegriCloud