-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/nouveau/bar: tidy up the subdev and object class definitions
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
- Loading branch information
Ben Skeggs
committed
Jan 23, 2014
1 parent
ab60619
commit 5222555
Showing
7 changed files
with
38 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#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 |