Linux Audio

Check our new training course

Real-Time Linux with PREEMPT_RT training

Feb 18-20, 2025
Register
Loading...
v4.6
 
 1/*
 2 * Copyright (c) 2008-2011, Intel Corporation
 3 *
 4 * This program is free software; you can redistribute it and/or modify it
 5 * under the terms and conditions of the GNU General Public License,
 6 * version 2, as published by the Free Software Foundation.
 7 *
 8 * This program is distributed in the hope it will be useful, but WITHOUT
 9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
16 *
17 * Authors:
18 *      Eric Anholt <eric@anholt.net>
19 *
20 */
21
22#ifndef _FRAMEBUFFER_H_
23#define _FRAMEBUFFER_H_
24
25#include <drm/drmP.h>
26#include <drm/drm_fb_helper.h>
27
28#include "psb_drv.h"
29
30struct psb_framebuffer {
31	struct drm_framebuffer base;
32	struct address_space *addr_space;
33	struct fb_info *fbdev;
34	struct gtt_range *gtt;
35};
36
37struct psb_fbdev {
38	struct drm_fb_helper psb_fb_helper;
39	struct psb_framebuffer pfb;
40};
41
42#define to_psb_fb(x) container_of(x, struct psb_framebuffer, base)
43
44extern int gma_connector_clones(struct drm_device *dev, int type_mask);
45
46#endif
47
v5.4
 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
16struct psb_framebuffer {
17	struct drm_framebuffer base;
18	struct address_space *addr_space;
19	struct fb_info *fbdev;
 
20};
21
22struct 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
29extern int gma_connector_clones(struct drm_device *dev, int type_mask);
30
31#endif
32