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
Kirill Smelkov
linux
Commits
917d95a8
Commit
917d95a8
authored
Apr 14, 2016
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/fb: allow chipset-specific actions for oneinit()
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
06d4f26c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c
+8
-0
drivers/gpu/drm/nouveau/nvkm/subdev/fb/priv.h
drivers/gpu/drm/nouveau/nvkm/subdev/fb/priv.h
+1
-0
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c
View file @
917d95a8
...
...
@@ -98,6 +98,7 @@ static int
nvkm_fb_oneinit
(
struct
nvkm_subdev
*
subdev
)
{
struct
nvkm_fb
*
fb
=
nvkm_fb
(
subdev
);
if
(
fb
->
func
->
ram_new
)
{
int
ret
=
fb
->
func
->
ram_new
(
fb
,
&
fb
->
ram
);
if
(
ret
)
{
...
...
@@ -105,6 +106,13 @@ nvkm_fb_oneinit(struct nvkm_subdev *subdev)
return
ret
;
}
}
if
(
fb
->
func
->
oneinit
)
{
int
ret
=
fb
->
func
->
oneinit
(
fb
);
if
(
ret
)
return
ret
;
}
return
0
;
}
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/fb/priv.h
View file @
917d95a8
...
...
@@ -6,6 +6,7 @@ struct nvkm_bios;
struct
nvkm_fb_func
{
void
*
(
*
dtor
)(
struct
nvkm_fb
*
);
int
(
*
oneinit
)(
struct
nvkm_fb
*
);
void
(
*
init
)(
struct
nvkm_fb
*
);
void
(
*
intr
)(
struct
nvkm_fb
*
);
...
...
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