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/drmP.h>
13 #include <drm/drm_fb_helper.h>
14 
15 #include "psb_drv.h"
16 
17 struct psb_framebuffer {
18 	struct drm_framebuffer base;
19 	struct address_space *addr_space;
20 	struct fb_info *fbdev;
21 };
22 
23 struct psb_fbdev {
24 	struct drm_fb_helper psb_fb_helper; /* must be first */
25 	struct psb_framebuffer pfb;
26 };
27 
28 #define to_psb_fb(x) container_of(x, struct psb_framebuffer, base)
29 
30 extern int gma_connector_clones(struct drm_device *dev, int type_mask);
31 
32 #endif
33 
34