diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-09-27 16:12:29 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-09-27 16:47:32 -0700 |
commit | 62a9fb4cda988a896909a5620a68c51e46d0e403 (patch) | |
tree | a2170211c04e2049f9bcd8ac8457f83867c63292 /hw/xfree86/os-support | |
parent | cfe549d1ba28396c44af94133d8c1d323e3c7086 (diff) |
Fix PCI rework build on Solaris (copy what BSD does)
Diffstat (limited to 'hw/xfree86/os-support')
-rw-r--r-- | hw/xfree86/os-support/bus/ix86Pci.c | 14 | ||||
-rw-r--r-- | hw/xfree86/os-support/shared/stdResource.c | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/hw/xfree86/os-support/bus/ix86Pci.c b/hw/xfree86/os-support/bus/ix86Pci.c index bbc4847e0..e54246355 100644 --- a/hw/xfree86/os-support/bus/ix86Pci.c +++ b/hw/xfree86/os-support/bus/ix86Pci.c @@ -223,6 +223,20 @@ static pciBusInfo_t ix86Pci0 = { /* bridge */ NULL }; +_X_EXPORT pointer +xf86MapDomainMemory(int ScreenNum, int Flags, struct pci_device *dev, + ADDRESS Base, unsigned long Size) +{ + return xf86MapVidMem(ScreenNum, Flags, Base, Size); +} + +IOADDRESS +xf86MapLegacyIO(struct pci_device *dev) +{ + (void)dev; + return 0; +} + static Bool ix86PciBusCheck(void) { diff --git a/hw/xfree86/os-support/shared/stdResource.c b/hw/xfree86/os-support/shared/stdResource.c index 7229d55b5..c144211f0 100644 --- a/hw/xfree86/os-support/shared/stdResource.c +++ b/hw/xfree86/os-support/shared/stdResource.c @@ -44,7 +44,7 @@ #include "bus/Pci.h" #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ - defined(__DragonFly__) + defined(__DragonFly__) || defined(__sun) #define xf86StdAccResFromOS xf86AccResFromOS #endif |