Subversion Repositories ps3ware

Compare Revisions

Ignore whitespace Rev 190 → Rev 201

/trunk/libps3rsx/src/init/ps3rsx/ps3rsx.c
82,7 → 82,9
 
#define L1GPU_CONTEXT_ATTRIBUTE_FIFO_SETUP 0x001
#define L1GPU_CONTEXT_ATTRIBUTE_FB_BLIT 0x601
#define L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP 0x102
 
 
int debug;
module_param(debug, bool, 0);
MODULE_PARM_DESC(debug, "debug mode");
478,6 → 480,14
context = &ps3rsx.ucontext;
 
switch (cmd) {
case PS3RSX_IOCTL_FLIP_SCRN:
lv1_gpu_context_attribute( context->context_handle, L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP, 0, arg, 0, 0 );
break;
 
case PS3RSX_IOCTL_CONTEXT_INFO:
{
/trunk/libps3rsx/src/init/ps3rsx/ps3rsx.h
7,7 → 7,9
#define PS3RSX_IOCTL_CONTEXT_INFO _IOR('r', 0x100, int)
#define PS3RSX_IOCTL_KICK_FIFO _IO('r', 0x101)
#define PS3RSX_IOCTL_EXCLUSIVE _IO('r', 0x102)
#define PS3RSX_IOCTL_FLIP_SCRN _IOR('r', 0x103, int)
 
 
struct ps3rsx_ioctl_context_info {
__u32 hw_id; /* hardware context number */
__u32 vram_size; /* size of available video memory */