14d8d096eSAlan Cox /*
24d8d096eSAlan Cox  * Copyright (c) 2008-2011, Intel Corporation
34d8d096eSAlan Cox  *
44d8d096eSAlan Cox  * This program is free software; you can redistribute it and/or modify it
54d8d096eSAlan Cox  * under the terms and conditions of the GNU General Public License,
64d8d096eSAlan Cox  * version 2, as published by the Free Software Foundation.
74d8d096eSAlan Cox  *
84d8d096eSAlan Cox  * This program is distributed in the hope it will be useful, but WITHOUT
94d8d096eSAlan Cox  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
104d8d096eSAlan Cox  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
114d8d096eSAlan Cox  * more details.
124d8d096eSAlan Cox  *
134d8d096eSAlan Cox  * You should have received a copy of the GNU General Public License along with
144d8d096eSAlan Cox  * this program; if not, write to the Free Software Foundation, Inc.,
154d8d096eSAlan Cox  * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
164d8d096eSAlan Cox  *
174d8d096eSAlan Cox  * Authors:
184d8d096eSAlan Cox  *      Eric Anholt <eric@anholt.net>
194d8d096eSAlan Cox  *
204d8d096eSAlan Cox  */
214d8d096eSAlan Cox 
224d8d096eSAlan Cox #ifndef _FRAMEBUFFER_H_
234d8d096eSAlan Cox #define _FRAMEBUFFER_H_
244d8d096eSAlan Cox 
254d8d096eSAlan Cox #include <drm/drmP.h>
264d8d096eSAlan Cox #include <drm/drm_fb_helper.h>
274d8d096eSAlan Cox 
284d8d096eSAlan Cox #include "psb_drv.h"
294d8d096eSAlan Cox 
304d8d096eSAlan Cox struct psb_framebuffer {
314d8d096eSAlan Cox 	struct drm_framebuffer base;
324d8d096eSAlan Cox 	struct address_space *addr_space;
334d8d096eSAlan Cox 	struct fb_info *fbdev;
344d8d096eSAlan Cox 	struct gtt_range *gtt;
354d8d096eSAlan Cox };
364d8d096eSAlan Cox 
374d8d096eSAlan Cox struct psb_fbdev {
384d8d096eSAlan Cox 	struct drm_fb_helper psb_fb_helper;
394d8d096eSAlan Cox 	struct psb_framebuffer pfb;
404d8d096eSAlan Cox };
414d8d096eSAlan Cox 
424d8d096eSAlan Cox #define to_psb_fb(x) container_of(x, struct psb_framebuffer, base)
434d8d096eSAlan Cox 
44a3d5d75fSPatrik Jakobsson extern int gma_connector_clones(struct drm_device *dev, int type_mask);
454d8d096eSAlan Cox 
464d8d096eSAlan Cox #endif
474d8d096eSAlan Cox 
48