1a61127c2SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 24d8d096eSAlan Cox /* 34d8d096eSAlan Cox * Copyright (c) 2008-2011, Intel Corporation 44d8d096eSAlan Cox * 54d8d096eSAlan Cox * Authors: 64d8d096eSAlan Cox * Eric Anholt <eric@anholt.net> 74d8d096eSAlan Cox */ 84d8d096eSAlan Cox 94d8d096eSAlan Cox #ifndef _FRAMEBUFFER_H_ 104d8d096eSAlan Cox #define _FRAMEBUFFER_H_ 114d8d096eSAlan Cox 124d8d096eSAlan Cox #include <drm/drmP.h> 134d8d096eSAlan Cox #include <drm/drm_fb_helper.h> 144d8d096eSAlan Cox 154d8d096eSAlan Cox #include "psb_drv.h" 164d8d096eSAlan Cox 174d8d096eSAlan Cox struct psb_framebuffer { 184d8d096eSAlan Cox struct drm_framebuffer base; 194d8d096eSAlan Cox struct address_space *addr_space; 204d8d096eSAlan Cox struct fb_info *fbdev; 214d8d096eSAlan Cox }; 224d8d096eSAlan Cox 234d8d096eSAlan Cox struct psb_fbdev { 24dfec164eSDaniel Vetter struct drm_fb_helper psb_fb_helper; /* must be first */ 254d8d096eSAlan Cox struct psb_framebuffer pfb; 264d8d096eSAlan Cox }; 274d8d096eSAlan Cox 284d8d096eSAlan Cox #define to_psb_fb(x) container_of(x, struct psb_framebuffer, base) 294d8d096eSAlan Cox 30a3d5d75fSPatrik Jakobsson extern int gma_connector_clones(struct drm_device *dev, int type_mask); 314d8d096eSAlan Cox 324d8d096eSAlan Cox #endif 334d8d096eSAlan Cox 34