mirror of
https://github.com/X11Libre/xf86-video-savage.git
synced 2026-04-14 11:14:16 +00:00
fix the build for the non-pci-rework case (compile tested only)
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "xf86RAC.h"
|
||||
#include "shadowfb.h"
|
||||
@@ -3080,9 +3081,9 @@ static Bool SavageMapMem(ScrnInfoPtr pScrn)
|
||||
+ psav->PciInfo->regions[0].base_addr;
|
||||
psav->FbRegion.base = psav->PciInfo->regions[1].base_addr;
|
||||
#else
|
||||
psav->MmioBase = SAVAGE_NEWMMIO_REGBASE_S4
|
||||
psav->MmioRegion.base = SAVAGE_NEWMMIO_REGBASE_S4
|
||||
+ psav->PciInfo->memBase[0];
|
||||
psav->FrameBufferBase = psav->PciInfo->memBase[1];
|
||||
psav->FbRegion.base = psav->PciInfo->memBase[1];
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -280,8 +280,13 @@ typedef struct _StatInfo {
|
||||
} StatInfoRec,*StatInfoPtr;
|
||||
|
||||
struct savage_region {
|
||||
#ifdef XSERVER_LIBPCIACCESS
|
||||
pciaddr_t base;
|
||||
pciaddr_t size;
|
||||
#else
|
||||
unsigned long base;
|
||||
unsigned long size;
|
||||
#endif
|
||||
void * memory;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user