Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205101
b: refs/heads/master
c: 49eed80
h: refs/heads/master
i:
  205099: 820324c
v: v3
  • Loading branch information
Ben Skeggs committed Jul 26, 2010
1 parent 0c27cd7 commit d74d620
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5620ba4680db0ba25b89952bdda41a9c8fd11f50
refs/heads/master: 49eed80ad0cfa5d5d02992e8088463cbf1a5ff85
8 changes: 8 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nouveau_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,14 @@ static inline void nv_wr32(struct drm_device *dev, unsigned reg, u32 val)
iowrite32_native(val, dev_priv->mmio + reg);
}

static inline void nv_mask(struct drm_device *dev, u32 reg, u32 mask, u32 val)
{
u32 tmp = nv_rd32(dev, reg);
tmp &= ~mask;
tmp |= val;
nv_wr32(dev, reg, tmp);
}

static inline u8 nv_rd08(struct drm_device *dev, unsigned reg)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;
Expand Down

0 comments on commit d74d620

Please sign in to comment.