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
52225551
Commit
52225551
authored
Dec 23, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/bar: tidy up the subdev and object class definitions
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
ab606194
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
38 additions
and
25 deletions
+38
-25
drivers/gpu/drm/nouveau/core/engine/fifo/nvc0.c
drivers/gpu/drm/nouveau/core/engine/fifo/nvc0.c
+1
-0
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
+1
-0
drivers/gpu/drm/nouveau/core/include/subdev/bar.h
drivers/gpu/drm/nouveau/core/include/subdev/bar.h
+1
-22
drivers/gpu/drm/nouveau/core/subdev/bar/base.c
drivers/gpu/drm/nouveau/core/subdev/bar/base.c
+5
-1
drivers/gpu/drm/nouveau/core/subdev/bar/nv50.c
drivers/gpu/drm/nouveau/core/subdev/bar/nv50.c
+2
-1
drivers/gpu/drm/nouveau/core/subdev/bar/nvc0.c
drivers/gpu/drm/nouveau/core/subdev/bar/nvc0.c
+2
-1
drivers/gpu/drm/nouveau/core/subdev/bar/priv.h
drivers/gpu/drm/nouveau/core/subdev/bar/priv.h
+26
-0
No files found.
drivers/gpu/drm/nouveau/core/engine/fifo/nvc0.c
View file @
52225551
...
...
@@ -33,6 +33,7 @@
#include <subdev/timer.h>
#include <subdev/bar.h>
#include <subdev/fb.h>
#include <subdev/vm.h>
#include <engine/dmaobj.h>
...
...
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
View file @
52225551
...
...
@@ -33,6 +33,7 @@
#include <subdev/timer.h>
#include <subdev/bar.h>
#include <subdev/fb.h>
#include <subdev/vm.h>
#include <engine/dmaobj.h>
...
...
drivers/gpu/drm/nouveau/core/include/subdev/bar.h
View file @
52225551
...
...
@@ -4,8 +4,7 @@
#include <core/subdev.h>
#include <core/device.h>
#include <subdev/fb.h>
struct
nouveau_mem
;
struct
nouveau_vma
;
struct
nouveau_bar
{
...
...
@@ -29,27 +28,7 @@ nouveau_bar(void *obj)
return
(
void
*
)
nv_device
(
obj
)
->
subdev
[
NVDEV_SUBDEV_BAR
];
}
#define nouveau_bar_create(p,e,o,d) \
nouveau_bar_create_((p), (e), (o), sizeof(**d), (void **)d)
#define nouveau_bar_init(p) \
nouveau_subdev_init(&(p)->base)
#define nouveau_bar_fini(p,s) \
nouveau_subdev_fini(&(p)->base, (s))
int
nouveau_bar_create_
(
struct
nouveau_object
*
,
struct
nouveau_object
*
,
struct
nouveau_oclass
*
,
int
,
void
**
);
void
nouveau_bar_destroy
(
struct
nouveau_bar
*
);
void
_nouveau_bar_dtor
(
struct
nouveau_object
*
);
#define _nouveau_bar_init _nouveau_subdev_init
#define _nouveau_bar_fini _nouveau_subdev_fini
extern
struct
nouveau_oclass
nv50_bar_oclass
;
extern
struct
nouveau_oclass
nvc0_bar_oclass
;
int
nouveau_bar_alloc
(
struct
nouveau_bar
*
,
struct
nouveau_object
*
,
struct
nouveau_mem
*
,
struct
nouveau_object
**
);
void
nv84_bar_flush
(
struct
nouveau_bar
*
);
#endif
drivers/gpu/drm/nouveau/core/subdev/bar/base.c
View file @
52225551
...
...
@@ -23,7 +23,11 @@
*/
#include <core/object.h>
#include <subdev/bar.h>
#include <subdev/fb.h>
#include <subdev/vm.h>
#include "priv.h"
struct
nouveau_barobj
{
struct
nouveau_object
base
;
...
...
drivers/gpu/drm/nouveau/core/subdev/bar/nv50.c
View file @
52225551
...
...
@@ -25,10 +25,11 @@
#include <core/gpuobj.h>
#include <subdev/timer.h>
#include <subdev/bar.h>
#include <subdev/fb.h>
#include <subdev/vm.h>
#include "priv.h"
struct
nv50_bar_priv
{
struct
nouveau_bar
base
;
spinlock_t
lock
;
...
...
drivers/gpu/drm/nouveau/core/subdev/bar/nvc0.c
View file @
52225551
...
...
@@ -25,10 +25,11 @@
#include <core/gpuobj.h>
#include <subdev/timer.h>
#include <subdev/bar.h>
#include <subdev/fb.h>
#include <subdev/vm.h>
#include "priv.h"
struct
nvc0_bar_priv
{
struct
nouveau_bar
base
;
spinlock_t
lock
;
...
...
drivers/gpu/drm/nouveau/core/subdev/bar/priv.h
0 → 100644
View file @
52225551
#ifndef __NVKM_BAR_PRIV_H__
#define __NVKM_BAR_PRIV_H__
#include <subdev/bar.h>
#define nouveau_bar_create(p,e,o,d) \
nouveau_bar_create_((p), (e), (o), sizeof(**d), (void **)d)
#define nouveau_bar_init(p) \
nouveau_subdev_init(&(p)->base)
#define nouveau_bar_fini(p,s) \
nouveau_subdev_fini(&(p)->base, (s))
int
nouveau_bar_create_
(
struct
nouveau_object
*
,
struct
nouveau_object
*
,
struct
nouveau_oclass
*
,
int
,
void
**
);
void
nouveau_bar_destroy
(
struct
nouveau_bar
*
);
void
_nouveau_bar_dtor
(
struct
nouveau_object
*
);
#define _nouveau_bar_init _nouveau_subdev_init
#define _nouveau_bar_fini _nouveau_subdev_fini
int
nouveau_bar_alloc
(
struct
nouveau_bar
*
,
struct
nouveau_object
*
,
struct
nouveau_mem
*
,
struct
nouveau_object
**
);
void
nv84_bar_flush
(
struct
nouveau_bar
*
);
#endif
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