18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2006 Sony Computer Entertainment Inc. 48c2ecf20Sopenharmony_ci * Copyright 2006, 2007 Sony Corporation 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify it 78c2ecf20Sopenharmony_ci * under the terms of the GNU General Public License as published 88c2ecf20Sopenharmony_ci * by the Free Software Foundation; version 2 of the License. 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * This program is distributed in the hope that it will be useful, but 118c2ecf20Sopenharmony_ci * WITHOUT ANY WARRANTY; without even the implied warranty of 128c2ecf20Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 138c2ecf20Sopenharmony_ci * General Public License for more details. 148c2ecf20Sopenharmony_ci * 158c2ecf20Sopenharmony_ci * You should have received a copy of the GNU General Public License along 168c2ecf20Sopenharmony_ci * with this program; if not, write to the Free Software Foundation, Inc., 178c2ecf20Sopenharmony_ci * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 188c2ecf20Sopenharmony_ci */ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_PS3FB_H_ 218c2ecf20Sopenharmony_ci#define _ASM_POWERPC_PS3FB_H_ 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#include <linux/types.h> 248c2ecf20Sopenharmony_ci#include <linux/ioctl.h> 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci/* ioctl */ 278c2ecf20Sopenharmony_ci#define PS3FB_IOCTL_SETMODE _IOW('r', 1, int) /* set video mode */ 288c2ecf20Sopenharmony_ci#define PS3FB_IOCTL_GETMODE _IOR('r', 2, int) /* get video mode */ 298c2ecf20Sopenharmony_ci#define PS3FB_IOCTL_SCREENINFO _IOR('r', 3, int) /* get screen info */ 308c2ecf20Sopenharmony_ci#define PS3FB_IOCTL_ON _IO('r', 4) /* use IOCTL_FSEL */ 318c2ecf20Sopenharmony_ci#define PS3FB_IOCTL_OFF _IO('r', 5) /* return to normal-flip */ 328c2ecf20Sopenharmony_ci#define PS3FB_IOCTL_FSEL _IOW('r', 6, int) /* blit and flip request */ 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#ifndef FBIO_WAITFORVSYNC 358c2ecf20Sopenharmony_ci#define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) /* wait for vsync */ 368c2ecf20Sopenharmony_ci#endif 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_cistruct ps3fb_ioctl_res { 398c2ecf20Sopenharmony_ci __u32 xres; /* frame buffer x_size */ 408c2ecf20Sopenharmony_ci __u32 yres; /* frame buffer y_size */ 418c2ecf20Sopenharmony_ci __u32 xoff; /* margine x */ 428c2ecf20Sopenharmony_ci __u32 yoff; /* margine y */ 438c2ecf20Sopenharmony_ci __u32 num_frames; /* num of frame buffers */ 448c2ecf20Sopenharmony_ci}; 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci#endif /* _ASM_POWERPC_PS3FB_H_ */ 47