1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2008-2011, Intel Corporation
4  *
5  * Authors:
6  *      Eric Anholt <eric@anholt.net>
7  */
8 
9 #ifndef _FRAMEBUFFER_H_
10 #define _FRAMEBUFFER_H_
11 
12 #include <drm/drm_fb_helper.h>
13 
14 #include "psb_drv.h"
15 
16 struct psb_framebuffer {
17 	struct drm_framebuffer base;
18 	struct fb_info *fbdev;
19 };
20 
21 struct psb_fbdev {
22 	struct drm_fb_helper psb_fb_helper; /* must be first */
23 	struct psb_framebuffer pfb;
24 };
25 
26 #define to_psb_fb(x) container_of(x, struct psb_framebuffer, base)
27 
28 extern int gma_connector_clones(struct drm_device *dev, int type_mask);
29 
30 #endif
31 
32