at v6.19 33 lines 1.1 kB view raw
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2/* 3 * Copyright (C) 2006 Sony Computer Entertainment Inc. 4 * Copyright 2006, 2007 Sony Corporation 5 */ 6 7#ifndef _ASM_POWERPC_PS3FB_H_ 8#define _ASM_POWERPC_PS3FB_H_ 9 10#include <linux/types.h> 11#include <linux/ioctl.h> 12 13/* ioctl */ 14#define PS3FB_IOCTL_SETMODE _IOW('r', 1, int) /* set video mode */ 15#define PS3FB_IOCTL_GETMODE _IOR('r', 2, int) /* get video mode */ 16#define PS3FB_IOCTL_SCREENINFO _IOR('r', 3, int) /* get screen info */ 17#define PS3FB_IOCTL_ON _IO('r', 4) /* use IOCTL_FSEL */ 18#define PS3FB_IOCTL_OFF _IO('r', 5) /* return to normal-flip */ 19#define PS3FB_IOCTL_FSEL _IOW('r', 6, int) /* blit and flip request */ 20 21#ifndef FBIO_WAITFORVSYNC 22#define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) /* wait for vsync */ 23#endif 24 25struct ps3fb_ioctl_res { 26 __u32 xres; /* frame buffer x_size */ 27 __u32 yres; /* frame buffer y_size */ 28 __u32 xoff; /* margine x */ 29 __u32 yoff; /* margine y */ 30 __u32 num_frames; /* num of frame buffers */ 31}; 32 33#endif /* _ASM_POWERPC_PS3FB_H_ */