diff options
Diffstat (limited to 'src/ct_bank.c')
-rw-r--r-- | src/ct_bank.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ct_bank.c b/src/ct_bank.c index 1e478ee..3be2776 100644 --- a/src/ct_bank.c +++ b/src/ct_bank.c @@ -53,12 +53,15 @@ /* Driver specific headers */ #include "ct_driver.h" -#ifdef __arm32__ -/*#include <machine/sysarch.h>*/ +#if defined(__arm32__) && defined(__NetBSD__) +#include <machine/sysarch.h> #define arm32_drain_writebuf() sysarch(1, 0) -#define ChipsBank(pScreen) CHIPSPTR(xf86Screens[pScreen->myNum])->Bank +#elif defined(__arm32__) +#define arm32_drain_writebuf() #endif +#define ChipsBank(pScreen) CHIPSPTR(xf86Screens[pScreen->myNum])->Bank + #ifdef DIRECT_REGISTER_ACCESS int CHIPSSetRead(ScreenPtr pScreen, int bank) |