#include <linux/delay.h>
#include <linux/pci.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_g200se_init_pci_options(struct pci_dev *pdev)
{ … }
static void mgag200_g200se_init_registers(struct mgag200_g200se_device *g200se)
{ … }
static void mgag200_g200se_set_hiprilvl(struct mga_device *mdev,
const struct drm_display_mode *mode,
const struct drm_format_info *format)
{ … }
static int mgag200_g200se_00_pixpllc_atomic_check(struct drm_crtc *crtc,
struct drm_atomic_state *new_state)
{ … }
static void mgag200_g200se_00_pixpllc_atomic_update(struct drm_crtc *crtc,
struct drm_atomic_state *old_state)
{ … }
static int mgag200_g200se_04_pixpllc_atomic_check(struct drm_crtc *crtc,
struct drm_atomic_state *new_state)
{ … }
static void mgag200_g200se_04_pixpllc_atomic_update(struct drm_crtc *crtc,
struct drm_atomic_state *old_state)
{ … }
static const struct drm_plane_helper_funcs mgag200_g200se_primary_plane_helper_funcs = …;
static const struct drm_plane_funcs mgag200_g200se_primary_plane_funcs = …;
static void mgag200_g200se_crtc_helper_atomic_enable(struct drm_crtc *crtc,
struct drm_atomic_state *old_state)
{ … }
static const struct drm_crtc_helper_funcs mgag200_g200se_crtc_helper_funcs = …;
static const struct drm_crtc_funcs mgag200_g200se_crtc_funcs = …;
static int mgag200_g200se_pipeline_init(struct mga_device *mdev)
{ … }
static const struct mgag200_device_info mgag200_g200se_a_01_device_info = …;
static const struct mgag200_device_info mgag200_g200se_a_02_device_info = …;
static const struct mgag200_device_info mgag200_g200se_a_03_device_info = …;
static const struct mgag200_device_info mgag200_g200se_b_01_device_info = …;
static const struct mgag200_device_info mgag200_g200se_b_02_device_info = …;
static const struct mgag200_device_info mgag200_g200se_b_03_device_info = …;
static int mgag200_g200se_init_unique_rev_id(struct mgag200_g200se_device *g200se)
{ … }
static const struct mgag200_device_funcs mgag200_g200se_00_device_funcs = …;
static const struct mgag200_device_funcs mgag200_g200se_04_device_funcs = …;
struct mga_device *mgag200_g200se_device_create(struct pci_dev *pdev, const struct drm_driver *drv,
enum mga_type type)
{ … }