diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2012-12-25 11:50:43 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-02-20 01:00:34 -0500 |
commit | a4cea27b6950885a743a4a000d5f2ea3fd445d25 (patch) | |
tree | a33de13c94bb3222bd72cb549b677c5e5b9e691a /drivers/gpu/drm/nouveau/nv10_fence.h | |
parent | a624bafbf11c098a859dba4118a33605bfd25788 (diff) |
drm/nouveau: share fence structures between nv10+ and nv50 implementations
We already rely on them having the same fields and layout.
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv10_fence.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv10_fence.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv10_fence.h b/drivers/gpu/drm/nouveau/nv10_fence.h new file mode 100644 index 000000000000..e5d9204826c2 --- /dev/null +++ b/drivers/gpu/drm/nouveau/nv10_fence.h | |||
@@ -0,0 +1,19 @@ | |||
1 | #ifndef __NV10_FENCE_H_ | ||
2 | #define __NV10_FENCE_H_ | ||
3 | |||
4 | #include <core/os.h> | ||
5 | #include "nouveau_fence.h" | ||
6 | #include "nouveau_bo.h" | ||
7 | |||
8 | struct nv10_fence_chan { | ||
9 | struct nouveau_fence_chan base; | ||
10 | }; | ||
11 | |||
12 | struct nv10_fence_priv { | ||
13 | struct nouveau_fence_priv base; | ||
14 | struct nouveau_bo *bo; | ||
15 | spinlock_t lock; | ||
16 | u32 sequence; | ||
17 | }; | ||
18 | |||
19 | #endif | ||