#include <linux/delay.h>
#include <drm/drm_file.h>
#include <drm/drm_managed.h>
#include <drm/drm_print.h>
#include "lsdc_drv.h"
struct loongson_gfxpll_bitmap { … };
loongson_gfxpll_reg_bitmap;
static void __gfxpll_rreg(struct loongson_gfxpll *this,
union loongson_gfxpll_reg_bitmap *reg)
{ … }
static int loongson_gfxpll_update(struct loongson_gfxpll * const this,
struct loongson_gfxpll_parms const *pin)
{ … }
static void loongson_gfxpll_get_rates(struct loongson_gfxpll * const this,
unsigned int *dc,
unsigned int *gmc,
unsigned int *gpu)
{ … }
static void loongson_gfxpll_print(struct loongson_gfxpll * const this,
struct drm_printer *p,
bool verbose)
{ … }
static void loongson_gfxpll_fini(struct drm_device *ddev, void *data)
{ … }
static int loongson_gfxpll_init(struct loongson_gfxpll * const this)
{ … }
static const struct loongson_gfxpll_funcs lsdc_gmc_gpu_funcs = …;
int loongson_gfxpll_create(struct drm_device *ddev,
struct loongson_gfxpll **ppout)
{ … }