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
377b1f16
Commit
377b1f16
authored
May 14, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/disp: nothing to see here
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
37da5b87
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
21 deletions
+42
-21
drivers/gpu/drm/nouveau/core/engine/disp/base.c
drivers/gpu/drm/nouveau/core/engine/disp/base.c
+19
-2
drivers/gpu/drm/nouveau/core/engine/disp/priv.h
drivers/gpu/drm/nouveau/core/engine/disp/priv.h
+23
-0
drivers/gpu/drm/nouveau/core/include/engine/disp.h
drivers/gpu/drm/nouveau/core/include/engine/disp.h
+0
-19
No files found.
drivers/gpu/drm/nouveau/core/engine/disp/base.c
View file @
377b1f16
...
...
@@ -22,7 +22,20 @@
* Authors: Ben Skeggs
*/
#include <engine/disp.h>
#include "priv.h"
int
_nouveau_disp_fini
(
struct
nouveau_object
*
object
,
bool
suspend
)
{
struct
nouveau_disp
*
disp
=
(
void
*
)
object
;
return
nouveau_engine_fini
(
&
disp
->
base
,
suspend
);
}
int
_nouveau_disp_init
(
struct
nouveau_object
*
object
)
{
return
0
;
}
void
_nouveau_disp_dtor
(
struct
nouveau_object
*
object
)
...
...
@@ -48,5 +61,9 @@ nouveau_disp_create_(struct nouveau_object *parent,
if
(
ret
)
return
ret
;
return
nouveau_event_create
(
1
,
heads
,
&
disp
->
vblank
);
ret
=
nouveau_event_create
(
1
,
heads
,
&
disp
->
vblank
);
if
(
ret
)
return
ret
;
return
0
;
}
drivers/gpu/drm/nouveau/core/engine/disp/priv.h
View file @
377b1f16
...
...
@@ -7,4 +7,27 @@ struct nouveau_disp_impl {
struct
nouveau_oclass
base
;
};
#define nouveau_disp_create(p,e,c,h,i,x,d) \
nouveau_disp_create_((p), (e), (c), (h), (i), (x), \
sizeof(**d), (void **)d)
#define nouveau_disp_destroy(d) ({ \
struct nouveau_disp *disp = (d); \
_nouveau_disp_dtor(nv_object(disp)); \
})
#define nouveau_disp_init(d) ({ \
struct nouveau_disp *disp = (d); \
_nouveau_disp_init(nv_object(disp)); \
})
#define nouveau_disp_fini(d,s) ({ \
struct nouveau_disp *disp = (d); \
_nouveau_disp_fini(nv_object(disp), (s)); \
})
int
nouveau_disp_create_
(
struct
nouveau_object
*
,
struct
nouveau_object
*
,
struct
nouveau_oclass
*
,
int
heads
,
const
char
*
,
const
char
*
,
int
,
void
**
);
void
_nouveau_disp_dtor
(
struct
nouveau_object
*
);
int
_nouveau_disp_init
(
struct
nouveau_object
*
);
int
_nouveau_disp_fini
(
struct
nouveau_object
*
,
bool
);
#endif
drivers/gpu/drm/nouveau/core/include/engine/disp.h
View file @
377b1f16
...
...
@@ -17,25 +17,6 @@ nouveau_disp(void *obj)
return
(
void
*
)
nv_device
(
obj
)
->
subdev
[
NVDEV_ENGINE_DISP
];
}
#define nouveau_disp_create(p,e,c,h,i,x,d) \
nouveau_disp_create_((p), (e), (c), (h), (i), (x), \
sizeof(**d), (void **)d)
#define nouveau_disp_destroy(d) ({ \
struct nouveau_disp *disp = (d); \
_nouveau_disp_dtor(nv_object(disp)); \
})
#define nouveau_disp_init(d) \
nouveau_engine_init(&(d)->base)
#define nouveau_disp_fini(d,s) \
nouveau_engine_fini(&(d)->base, (s))
int
nouveau_disp_create_
(
struct
nouveau_object
*
,
struct
nouveau_object
*
,
struct
nouveau_oclass
*
,
int
heads
,
const
char
*
,
const
char
*
,
int
,
void
**
);
void
_nouveau_disp_dtor
(
struct
nouveau_object
*
);
#define _nouveau_disp_init _nouveau_engine_init
#define _nouveau_disp_fini _nouveau_engine_fini
extern
struct
nouveau_oclass
*
nv04_disp_oclass
;
extern
struct
nouveau_oclass
*
nv50_disp_oclass
;
extern
struct
nouveau_oclass
*
nv84_disp_oclass
;
...
...
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