Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329644
b: refs/heads/master
c: c4837d2
h: refs/heads/master
v: v3
  • Loading branch information
Ben Skeggs committed Oct 3, 2012
1 parent d93f5d8 commit dfc78f9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b10f20d590aa040e4028c04a70a27b9ad6650ba8
refs/heads/master: c4837d27945b9b607b5a7274a33059e73d1a7831
11 changes: 0 additions & 11 deletions trunk/drivers/gpu/drm/nouveau/core/include/core/gpuobj.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
#define __NOUVEAU_GPUOBJ_H__

#include <core/object.h>
#ifndef XXX_THIS_IS_A_HACK
#include <core/device.h>
#include <core/parent.h>
#include <core/mm.h>
#endif

struct nouveau_vma;
struct nouveau_vm;
Expand All @@ -24,14 +22,8 @@ struct nouveau_gpuobj {
u32 flags;
u64 addr;
u32 size;

/*XXX*/
struct drm_device *dev;
u32 engine;
u32 class;
};

#ifndef XXX_THIS_IS_A_HACK
static inline struct nouveau_gpuobj *
nv_gpuobj(void *obj)
{
Expand Down Expand Up @@ -63,20 +55,17 @@ int nouveau_gpuobj_map(struct nouveau_gpuobj *, u32 acc, struct nouveau_vma *);
int nouveau_gpuobj_map_vm(struct nouveau_gpuobj *, struct nouveau_vm *,
u32 access, struct nouveau_vma *);
void nouveau_gpuobj_unmap(struct nouveau_vma *);
#endif

static inline void
nouveau_gpuobj_ref(struct nouveau_gpuobj *obj, struct nouveau_gpuobj **ref)
{
nouveau_object_ref(&obj->base, (struct nouveau_object **)ref);
}

#ifndef XXX_THIS_IS_A_HACK
void _nouveau_gpuobj_dtor(struct nouveau_object *);
int _nouveau_gpuobj_init(struct nouveau_object *);
int _nouveau_gpuobj_fini(struct nouveau_object *, bool);
u32 _nouveau_gpuobj_rd32(struct nouveau_object *, u32);
void _nouveau_gpuobj_wr32(struct nouveau_object *, u32, u32);
#endif

#endif
4 changes: 0 additions & 4 deletions trunk/drivers/gpu/drm/nouveau/core/include/subdev/fb.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef __NOUVEAU_FB_H__
#define __NOUVEAU_FB_H__

#ifndef XXX_THIS_IS_A_HACK
#include <core/subdev.h>
#include <core/device.h>
#endif
#include <core/mm.h>

#include <subdev/vm.h>
Expand Down Expand Up @@ -50,7 +48,6 @@ struct nouveau_fb_tile {
u32 zcomp;
};

#ifndef XXX_THIS_IS_A_HACK
struct nouveau_fb {
struct nouveau_subdev base;

Expand Down Expand Up @@ -133,6 +130,5 @@ void nv30_fb_tile_fini(struct nouveau_fb *, int i, struct nouveau_fb_tile *);

void nv50_fb_vram_del(struct nouveau_fb *, struct nouveau_mem **);
void nv50_fb_trap(struct nouveau_fb *, int display);
#endif

#endif
6 changes: 0 additions & 6 deletions trunk/drivers/gpu/drm/nouveau/core/include/subdev/vm.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,11 @@
#ifndef __NOUVEAU_VM_H__
#define __NOUVEAU_VM_H__

#ifndef XXX_THIS_IS_A_HACK
#include <core/object.h>
#include <core/subdev.h>
#include <core/device.h>
#endif
#include <core/mm.h>

#ifndef XXX_THIS_IS_A_HACK
struct nouveau_vm_pgt {
struct nouveau_gpuobj *obj[2];
u32 refcount[2];
Expand All @@ -42,7 +39,6 @@ struct nouveau_vm_pgd {
struct list_head head;
struct nouveau_gpuobj *obj;
};
#endif

struct nouveau_gpuobj;
struct nouveau_mem;
Expand All @@ -69,7 +65,6 @@ struct nouveau_vm {
u32 lpde;
};

#ifndef XXX_THIS_IS_A_HACK
struct nouveau_vmmgr {
struct nouveau_subdev base;

Expand Down Expand Up @@ -129,7 +124,6 @@ int nouveau_vm_create(struct nouveau_vmmgr *, u64 offset, u64 length,
u64 mm_offset, u32 block, struct nouveau_vm **);
int nouveau_vm_new(struct nouveau_device *, u64 offset, u64 length,
u64 mm_offset, struct nouveau_vm **);
#endif
int nouveau_vm_ref(struct nouveau_vm *, struct nouveau_vm **,
struct nouveau_gpuobj *pgd);
int nouveau_vm_get(struct nouveau_vm *, u64 size, u32 page_shift,
Expand Down

0 comments on commit dfc78f9

Please sign in to comment.