# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/linux-header/ps3fb-ioctls.patch # Copyright (C) 2020 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- ./arch/powerpc/include/uapi/asm/ps3fb.h 2012-07-21 22:58:29.000000000 +0200 +++ ./arch/powerpc/include/uapi/asm/ps3fb.h 2018-01-27 14:10:55.546169979 +0100 @@ -29,6 +29,9 @@ #define PS3FB_IOCTL_ON _IO('r', 4) /* use IOCTL_FSEL */ #define PS3FB_IOCTL_OFF _IO('r', 5) /* return to normal-flip */ #define PS3FB_IOCTL_FSEL _IOW('r', 6, int) /* blit and flip request */ +#define PS3FB_IOCTL_GPU_SETUP _IO('r', 7) /* enable FIFO access */ +#define PS3FB_IOCTL_GPU_INFO _IOR('r', 8, int) /* get GPU info */ +#define PS3FB_IOCTL_GPU_ATTR _IOW('r', 9, int) /* set attribute */ #ifndef FBIO_WAITFORVSYNC #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) /* wait for vsync */ @@ -42,4 +45,22 @@ __u32 num_frames; /* num of frame buffers */ }; +struct ps3fb_ioctl_gpu_info { + __u32 vram_size; /* size of available video memory */ + __u32 fifo_size; /* size of command buffer */ + __u32 ctrl_size; /* size of dma control registers */ + __u32 dinfo_size; /* size of driver info */ + __u32 reports_size; /* size of reports */ + __u32 device_size[8]; /* size of gpu devices */ +}; + +struct ps3fb_ioctl_gpu_attr { + __u64 attr; /* attribute */ + __u64 p0; /* 1st parameter */ + __u64 p1; /* 2nd parameter */ + __u64 p2; /* 3rd parameter */ + __u64 p3; /* 4th parameter */ +}; + + #endif /* _ASM_POWERPC_PS3FB_H_ */