* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / package / kernel / linux-header / ps3fb-ioctls.patch
blobc4bcb31a62172ba95941d4ac643d16b8d11744b7
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux-header/ps3fb-ioctls.patch
3 # Copyright (C) 2020 - 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- ./arch/powerpc/include/uapi/asm/ps3fb.h 2012-07-21 22:58:29.000000000 +0200
15 +++ ./arch/powerpc/include/uapi/asm/ps3fb.h 2018-01-27 14:10:55.546169979 +0100
16 @@ -29,6 +29,9 @@
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 +#define PS3FB_IOCTL_GPU_SETUP _IO('r', 7) /* enable FIFO access */
21 +#define PS3FB_IOCTL_GPU_INFO _IOR('r', 8, int) /* get GPU info */
22 +#define PS3FB_IOCTL_GPU_ATTR _IOW('r', 9, int) /* set attribute */
24 #ifndef FBIO_WAITFORVSYNC
25 #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) /* wait for vsync */
26 @@ -42,4 +45,22 @@
27 __u32 num_frames; /* num of frame buffers */
30 +struct ps3fb_ioctl_gpu_info {
31 + __u32 vram_size; /* size of available video memory */
32 + __u32 fifo_size; /* size of command buffer */
33 + __u32 ctrl_size; /* size of dma control registers */
34 + __u32 dinfo_size; /* size of driver info */
35 + __u32 reports_size; /* size of reports */
36 + __u32 device_size[8]; /* size of gpu devices */
37 +};
39 +struct ps3fb_ioctl_gpu_attr {
40 + __u64 attr; /* attribute */
41 + __u64 p0; /* 1st parameter */
42 + __u64 p1; /* 2nd parameter */
43 + __u64 p2; /* 3rd parameter */
44 + __u64 p3; /* 4th parameter */
45 +};
48 #endif /* _ASM_POWERPC_PS3FB_H_ */