|
@@ -795,8 +795,10 @@ extern int nouveau_ioctl_getparam(struct drm_device *, void *data,
|
|
|
struct drm_file *);
|
|
|
extern int nouveau_ioctl_setparam(struct drm_device *, void *data,
|
|
|
struct drm_file *);
|
|
|
-extern bool nouveau_wait_until(struct drm_device *, uint64_t timeout,
|
|
|
- uint32_t reg, uint32_t mask, uint32_t val);
|
|
|
+extern bool nouveau_wait_eq(struct drm_device *, uint64_t timeout,
|
|
|
+ uint32_t reg, uint32_t mask, uint32_t val);
|
|
|
+extern bool nouveau_wait_ne(struct drm_device *, uint64_t timeout,
|
|
|
+ uint32_t reg, uint32_t mask, uint32_t val);
|
|
|
extern bool nouveau_wait_for_idle(struct drm_device *);
|
|
|
extern int nouveau_card_init(struct drm_device *);
|
|
|
|
|
@@ -1434,7 +1436,9 @@ static inline void nv_wr08(struct drm_device *dev, unsigned reg, u8 val)
|
|
|
}
|
|
|
|
|
|
#define nv_wait(dev, reg, mask, val) \
|
|
|
- nouveau_wait_until(dev, 2000000000ULL, (reg), (mask), (val))
|
|
|
+ nouveau_wait_eq(dev, 2000000000ULL, (reg), (mask), (val))
|
|
|
+#define nv_wait_ne(dev, reg, mask, val) \
|
|
|
+ nouveau_wait_ne(dev, 2000000000ULL, (reg), (mask), (val))
|
|
|
|
|
|
/* PRAMIN access */
|
|
|
static inline u32 nv_ri32(struct drm_device *dev, unsigned offset)
|