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
49eed80a
Commit
49eed80a
authored
Jul 23, 2010
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: add nv_mask register accessor
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
5620ba46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+8
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
49eed80a
...
...
@@ -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
;
...
...
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