linux/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c

// SPDX-License-Identifier: MIT
/*
 * Copyright © 2023 Intel Corporation
 */

#include <linux/debugfs.h>
#include <linux/kernel.h>

#include <drm/drm_drv.h>

#include "intel_display_debugfs_params.h"
#include "i915_drv.h"
#include "intel_display_params.h"

/* int param */
static int intel_display_param_int_show(struct seq_file *m, void *data)
{}

static int intel_display_param_int_open(struct inode *inode, struct file *file)
{}

static ssize_t intel_display_param_int_write(struct file *file,
					     const char __user *ubuf, size_t len,
					     loff_t *offp)
{}

static const struct file_operations intel_display_param_int_fops =;

static const struct file_operations intel_display_param_int_fops_ro =;

/* unsigned int param */
static int intel_display_param_uint_show(struct seq_file *m, void *data)
{}

static int intel_display_param_uint_open(struct inode *inode, struct file *file)
{}

static ssize_t intel_display_param_uint_write(struct file *file,
					      const char __user *ubuf, size_t len,
					      loff_t *offp)
{}

static const struct file_operations intel_display_param_uint_fops =;

static const struct file_operations intel_display_param_uint_fops_ro =;

#define RO(mode)

__maybe_unused static struct dentry *
intel_display_debugfs_create_int(const char *name, umode_t mode,
			struct dentry *parent, int *value)
{}

__maybe_unused static struct dentry *
intel_display_debugfs_create_uint(const char *name, umode_t mode,
			 struct dentry *parent, unsigned int *value)
{}

#define _intel_display_param_create_file(parent, name, mode, valp)

/* add a subdirectory with files for each intel display param */
void intel_display_debugfs_params(struct intel_display *display)
{}