#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"
static vm_fault_t psb_fbdev_vm_fault(struct vm_fault *vmf)
{ … }
static const struct vm_operations_struct psb_fbdev_vm_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 = …;
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 = …;
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)
{ … }