Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Copyright (C) 2006 Sony Computer Entertainment Inc.
0004  * Copyright 2006, 2007 Sony Corporation
0005  *
0006  * This program is free software; you can redistribute it and/or modify it
0007  * under the terms of the GNU General Public License as published
0008  * by the Free Software Foundation; version 2 of the License.
0009  *
0010  * This program is distributed in the hope that it will be useful, but
0011  * WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  * General Public License for more details.
0014  *
0015  * You should have received a copy of the GNU General Public License along
0016  * with this program; if not, write to the Free Software Foundation, Inc.,
0017  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0018  */
0019 
0020 #ifndef _ASM_POWERPC_PS3FB_H_
0021 #define _ASM_POWERPC_PS3FB_H_
0022 
0023 #include <linux/types.h>
0024 #include <linux/ioctl.h>
0025 
0026 /* ioctl */
0027 #define PS3FB_IOCTL_SETMODE       _IOW('r',  1, int) /* set video mode */
0028 #define PS3FB_IOCTL_GETMODE       _IOR('r',  2, int) /* get video mode */
0029 #define PS3FB_IOCTL_SCREENINFO    _IOR('r',  3, int) /* get screen info */
0030 #define PS3FB_IOCTL_ON            _IO('r', 4)        /* use IOCTL_FSEL */
0031 #define PS3FB_IOCTL_OFF           _IO('r', 5)        /* return to normal-flip */
0032 #define PS3FB_IOCTL_FSEL          _IOW('r', 6, int)  /* blit and flip request */
0033 
0034 #ifndef FBIO_WAITFORVSYNC
0035 #define FBIO_WAITFORVSYNC         _IOW('F', 0x20, __u32) /* wait for vsync */
0036 #endif
0037 
0038 struct ps3fb_ioctl_res {
0039     __u32 xres; /* frame buffer x_size */
0040     __u32 yres; /* frame buffer y_size */
0041     __u32 xoff; /* margine x  */
0042     __u32 yoff; /* margine y */
0043     __u32 num_frames; /* num of frame buffers */
0044 };
0045 
0046 #endif /* _ASM_POWERPC_PS3FB_H_ */