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 address_space *addr_space;
19 	struct fb_info *fbdev;
20 };
21 
22 struct psb_fbdev {
23 	struct drm_fb_helper psb_fb_helper; /* must be first */
24 	struct psb_framebuffer pfb;
25 };
26 
27 #define to_psb_fb(x) container_of(x, struct psb_framebuffer, base)
28 
29 extern int gma_connector_clones(struct drm_device *dev, int type_mask);
30 
31 #endif
32 
33