diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/ps3gpu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ps3gpu.h b/arch/powerpc/include/asm/ps3gpu.h index 1037efae4a51..b2b89591907c 100644 --- a/arch/powerpc/include/asm/ps3gpu.h +++ b/arch/powerpc/include/asm/ps3gpu.h | |||
@@ -31,6 +31,7 @@ | |||
31 | #define L1GPU_CONTEXT_ATTRIBUTE_FB_SETUP 0x600 | 31 | #define L1GPU_CONTEXT_ATTRIBUTE_FB_SETUP 0x600 |
32 | #define L1GPU_CONTEXT_ATTRIBUTE_FB_BLIT 0x601 | 32 | #define L1GPU_CONTEXT_ATTRIBUTE_FB_BLIT 0x601 |
33 | #define L1GPU_CONTEXT_ATTRIBUTE_FB_BLIT_SYNC 0x602 | 33 | #define L1GPU_CONTEXT_ATTRIBUTE_FB_BLIT_SYNC 0x602 |
34 | #define L1GPU_CONTEXT_ATTRIBUTE_FB_CLOSE 0x603 | ||
34 | 35 | ||
35 | #define L1GPU_FB_BLIT_WAIT_FOR_COMPLETION (1ULL << 32) | 36 | #define L1GPU_FB_BLIT_WAIT_FOR_COMPLETION (1ULL << 32) |
36 | 37 | ||
@@ -75,4 +76,11 @@ static inline int lv1_gpu_fb_blit(u64 context_handle, u64 ddr_offset, | |||
75 | pitch); | 76 | pitch); |
76 | } | 77 | } |
77 | 78 | ||
79 | static inline int lv1_gpu_fb_close(u64 context_handle) | ||
80 | { | ||
81 | return lv1_gpu_context_attribute(context_handle, | ||
82 | L1GPU_CONTEXT_ATTRIBUTE_FB_CLOSE, 0, | ||
83 | 0, 0, 0); | ||
84 | } | ||
85 | |||
78 | #endif /* _ASM_POWERPC_PS3GPU_H */ | 86 | #endif /* _ASM_POWERPC_PS3GPU_H */ |