Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2a7fdb2b
Commit
2a7fdb2b
authored
Aug 30, 2010
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: have nv_mask return original register value
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
217275d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+3
-4
No files found.
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
2a7fdb2b
...
...
@@ -1255,12 +1255,11 @@ 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
)
static
inline
u32
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
);
nv_wr32
(
dev
,
reg
,
(
tmp
&
~
mask
)
|
val
);
return
tmp
;
}
static
inline
u8
nv_rd08
(
struct
drm_device
*
dev
,
unsigned
reg
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment