linux/drivers/gpu/drm/gma500/fbdev.c

// SPDX-License-Identifier: GPL-2.0-only
/**************************************************************************
 * Copyright (c) 2007-2011, Intel Corporation.
 * All Rights Reserved.
 *
 **************************************************************************/

#include <linux/fb.h>
#include <linux/pfn_t.h>

#include <drm/drm_crtc_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_framebuffer.h>

#include "gem.h"
#include "psb_drv.h"

/*
 * VM area struct
 */

static vm_fault_t psb_fbdev_vm_fault(struct vm_fault *vmf)
{}

static const struct vm_operations_struct psb_fbdev_vm_ops =;

/*
 * struct fb_ops
 */

#define CMAP_TOHW(_val, _width)

static int psb_fbdev_fb_setcolreg(unsigned int regno,
				  unsigned int red, unsigned int green,
				  unsigned int blue, unsigned int transp,
				  struct fb_info *info)
{}

static int psb_fbdev_fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
{}

static void psb_fbdev_fb_destroy(struct fb_info *info)
{}

static const struct fb_ops psb_fbdev_fb_ops =;

/*
 * struct drm_fb_helper_funcs
 */

static int psb_fbdev_fb_probe(struct drm_fb_helper *fb_helper,
			      struct drm_fb_helper_surface_size *sizes)
{}

static const struct drm_fb_helper_funcs psb_fbdev_fb_helper_funcs =;

/*
 * struct drm_client_funcs and setup code
 */

static void psb_fbdev_client_unregister(struct drm_client_dev *client)
{}

static int psb_fbdev_client_restore(struct drm_client_dev *client)
{}

static int psb_fbdev_client_hotplug(struct drm_client_dev *client)
{}

static const struct drm_client_funcs psb_fbdev_client_funcs =;

void psb_fbdev_setup(struct drm_psb_private *dev_priv)
{}