-
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.
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git…
…/benh/powerpc * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (38 commits) ps3flash: Always read chunks of 256 KiB, and cache them ps3flash: Cache the last accessed FLASH chunk ps3: Replace direct file operations by callback ps3: Switch ps3_os_area_[gs]et_rtc_diff to EXPORT_SYMBOL_GPL() ps3: Correct debug message in dma_ioc0_map_pages() drivers/ps3: Add missing annotations ps3fb: Use ps3_system_bus_[gs]et_drvdata() instead of direct access ps3flash: Use ps3_system_bus_[gs]et_drvdata() instead of direct access ps3: shorten ps3_system_bus_[gs]et_driver_data to ps3_system_bus_[gs]et_drvdata ps3: Use dev_[gs]et_drvdata() instead of direct access for system bus devices block/ps3: remove driver_data direct access of struct device ps3vram: Make ps3vram_priv.reports a void * ps3vram: Remove no longer used ps3vram_priv.ddr_base ps3vram: Replace mutex by spinlock + bio_list block: Add bio_list_peek() powerpc: Use generic atomic64_t implementation on 32-bit processors lib: Provide generic atomic64_t implementation powerpc: Add compiler memory barrier to mtmsr macro powerpc/iseries: Mark signal_vsp_instruction() as maybe unused powerpc/iseries: Fix unused function warning in iSeries DT code ...
- Loading branch information
Showing
37 changed files
with
873 additions
and
527 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,86 @@ | ||
/* | ||
* PS3 GPU declarations. | ||
* | ||
* Copyright 2009 Sony Corporation | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; version 2 of the License. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef _ASM_POWERPC_PS3GPU_H | ||
#define _ASM_POWERPC_PS3GPU_H | ||
|
||
#include <linux/mutex.h> | ||
|
||
#include <asm/lv1call.h> | ||
|
||
|
||
#define L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_SYNC 0x101 | ||
#define L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP 0x102 | ||
|
||
#define L1GPU_CONTEXT_ATTRIBUTE_FB_SETUP 0x600 | ||
#define L1GPU_CONTEXT_ATTRIBUTE_FB_BLIT 0x601 | ||
#define L1GPU_CONTEXT_ATTRIBUTE_FB_BLIT_SYNC 0x602 | ||
#define L1GPU_CONTEXT_ATTRIBUTE_FB_CLOSE 0x603 | ||
|
||
#define L1GPU_FB_BLIT_WAIT_FOR_COMPLETION (1ULL << 32) | ||
|
||
#define L1GPU_DISPLAY_SYNC_HSYNC 1 | ||
#define L1GPU_DISPLAY_SYNC_VSYNC 2 | ||
|
||
|
||
/* mutex synchronizing GPU accesses and video mode changes */ | ||
extern struct mutex ps3_gpu_mutex; | ||
|
||
|
||
static inline int lv1_gpu_display_sync(u64 context_handle, u64 head, | ||
u64 ddr_offset) | ||
{ | ||
return lv1_gpu_context_attribute(context_handle, | ||
L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_SYNC, | ||
head, ddr_offset, 0, 0); | ||
} | ||
|
||
static inline int lv1_gpu_display_flip(u64 context_handle, u64 head, | ||
u64 ddr_offset) | ||
{ | ||
return lv1_gpu_context_attribute(context_handle, | ||
L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP, | ||
head, ddr_offset, 0, 0); | ||
} | ||
|
||
static inline int lv1_gpu_fb_setup(u64 context_handle, u64 xdr_lpar, | ||
u64 xdr_size, u64 ioif_offset) | ||
{ | ||
return lv1_gpu_context_attribute(context_handle, | ||
L1GPU_CONTEXT_ATTRIBUTE_FB_SETUP, | ||
xdr_lpar, xdr_size, ioif_offset, 0); | ||
} | ||
|
||
static inline int lv1_gpu_fb_blit(u64 context_handle, u64 ddr_offset, | ||
u64 ioif_offset, u64 sync_width, u64 pitch) | ||
{ | ||
return lv1_gpu_context_attribute(context_handle, | ||
L1GPU_CONTEXT_ATTRIBUTE_FB_BLIT, | ||
ddr_offset, ioif_offset, sync_width, | ||
pitch); | ||
} | ||
|
||
static inline int lv1_gpu_fb_close(u64 context_handle) | ||
{ | ||
return lv1_gpu_context_attribute(context_handle, | ||
L1GPU_CONTEXT_ATTRIBUTE_FB_CLOSE, 0, | ||
0, 0, 0); | ||
} | ||
|
||
#endif /* _ASM_POWERPC_PS3GPU_H */ |
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
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
Oops, something went wrong.