diff options
author | Dave Airlie <airlied@ppcg5.localdomain> | 2006-11-05 19:46:53 +1100 |
---|---|---|
committer | Dave Airlie <airlied@ppcg5.localdomain> | 2006-11-05 19:46:53 +1100 |
commit | 665c8385c7865dcc4f92b9c212d6e2b35d7fa9f0 (patch) | |
tree | 439994a1979ac1b75d9ca36c6516dcbbec345eaa | |
parent | 1e118aeb39076a103c6581640b04a9b7e2a8209a (diff) |
add powerpc mmio swapper to NV_READ/WRITE macros
-rw-r--r-- | shared-core/nouveau_drv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shared-core/nouveau_drv.h b/shared-core/nouveau_drv.h index 94b46efd..4b35e6d1 100644 --- a/shared-core/nouveau_drv.h +++ b/shared-core/nouveau_drv.h @@ -171,8 +171,13 @@ extern void nouveau_irq_preinstall(drm_device_t*); extern void nouveau_irq_postinstall(drm_device_t*); extern void nouveau_irq_uninstall(drm_device_t*); +#if defined(__powerpc__) +#define NV_READ(reg) in_be32((void __iomem *)(dev_priv->mmio)->handle + (reg) ) +#define NV_WRITE(reg,val) out_be32((void __iomem *)(dev_priv->mmio)->handle + (reg) , (val) ) +#else #define NV_READ(reg) DRM_READ32( dev_priv->mmio, (reg) ) #define NV_WRITE(reg,val) DRM_WRITE32( dev_priv->mmio, (reg), (val) ) +#endif #endif /* __NOUVEAU_DRV_H__ */ |