mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			
		
			
				
	
	
		
			31 lines
		
	
	
		
			848 B
		
	
	
	
		
			Diff
		
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			848 B
		
	
	
	
		
			Diff
		
	
	
| --- linux-4.9.37/include/linux/fb.h	2017-07-12 16:42:41.000000000 +0300
 | |
| +++ linux-4.9.y/include/linux/fb.h	2021-06-07 13:01:34.000000000 +0300
 | |
| @@ -237,7 +237,14 @@
 | |
|  	void (*deferred_io)(struct fb_info *info, struct list_head *pagelist);
 | |
|  };
 | |
|  #endif
 | |
| +#ifdef CONFIG_ARCH_GOKE
 | |
| +#define FBIOGET_DMABUF		_IOR('F', 0x21, struct fb_dmabuf_export)
 | |
|  
 | |
| +struct fb_dmabuf_export {
 | |
| +	__u32 fd;
 | |
| +	__u32 flags;
 | |
| +};
 | |
| +#endif
 | |
|  /*
 | |
|   * Frame buffer operations
 | |
|   *
 | |
| @@ -320,6 +327,12 @@
 | |
|  	/* called at KDB enter and leave time to prepare the console */
 | |
|  	int (*fb_debug_enter)(struct fb_info *info);
 | |
|  	int (*fb_debug_leave)(struct fb_info *info);
 | |
| +#ifdef CONFIG_ARCH_GOKE
 | |
| +#ifdef CONFIG_DMA_SHARED_BUFFER
 | |
| +	/* Export the frame buffer as a dmabuf object */
 | |
| +	struct dma_buf *(*fb_dmabuf_export)(struct fb_info *info);
 | |
| +#endif
 | |
| +#endif
 | |
|  };
 | |
|  
 | |
|  #ifdef CONFIG_FB_TILEBLITTING
 |