#include <linux/pci.h>
#include <linux/vmalloc.h>
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_gem_atomic_helper.h>
#include <drm/drm_probe_helper.h>
#include "mgag200_drv.h"
static int mgag200_g200_init_pci_options(struct pci_dev *pdev)
{ … }
static void mgag200_g200_init_registers(struct mgag200_g200_device *g200)
{ … }
static int mgag200_g200_pixpllc_atomic_check(struct drm_crtc *crtc, struct drm_atomic_state *new_state)
{ … }
static void mgag200_g200_pixpllc_atomic_update(struct drm_crtc *crtc,
struct drm_atomic_state *old_state)
{ … }
static const struct drm_plane_helper_funcs mgag200_g200_primary_plane_helper_funcs = …;
static const struct drm_plane_funcs mgag200_g200_primary_plane_funcs = …;
static const struct drm_crtc_helper_funcs mgag200_g200_crtc_helper_funcs = …;
static const struct drm_crtc_funcs mgag200_g200_crtc_funcs = …;
static int mgag200_g200_pipeline_init(struct mga_device *mdev)
{ … }
static const struct mgag200_device_info mgag200_g200_device_info = …;
static void mgag200_g200_interpret_bios(struct mgag200_g200_device *g200,
const unsigned char *bios, size_t size)
{ … }
static void mgag200_g200_init_refclk(struct mgag200_g200_device *g200)
{ … }
static const struct mgag200_device_funcs mgag200_g200_device_funcs = …;
struct mga_device *mgag200_g200_device_create(struct pci_dev *pdev, const struct drm_driver *drv)
{ … }