2019-05-30 06:57:49 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2011-11-04 01:21:20 +07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2008-2011, Intel Corporation
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Eric Anholt <eric@anholt.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _FRAMEBUFFER_H_
|
|
|
|
#define _FRAMEBUFFER_H_
|
|
|
|
|
|
|
|
#include <drm/drm_fb_helper.h>
|
|
|
|
|
|
|
|
#include "psb_drv.h"
|
|
|
|
|
|
|
|
struct psb_framebuffer {
|
|
|
|
struct drm_framebuffer base;
|
|
|
|
struct address_space *addr_space;
|
|
|
|
struct fb_info *fbdev;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct psb_fbdev {
|
2019-03-26 20:19:56 +07:00
|
|
|
struct drm_fb_helper psb_fb_helper; /* must be first */
|
2011-11-04 01:21:20 +07:00
|
|
|
struct psb_framebuffer pfb;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define to_psb_fb(x) container_of(x, struct psb_framebuffer, base)
|
|
|
|
|
2013-07-22 22:05:25 +07:00
|
|
|
extern int gma_connector_clones(struct drm_device *dev, int type_mask);
|
2011-11-04 01:21:20 +07:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|