linux/drivers/gpu/drm/i915/i915_debugfs_params.c

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

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

#include "i915_debugfs_params.h"
#include "gt/intel_gt.h"
#include "gt/uc/intel_guc.h"
#include "i915_drv.h"
#include "i915_params.h"

#define MATCH_DEBUGFS_NODE_NAME(_file, _name)

#define GET_I915(i915, name, ptr)

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

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

static int notify_guc(struct drm_i915_private *i915)
{}

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

static const struct file_operations i915_param_int_fops =;

static const struct file_operations i915_param_int_fops_ro =;

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

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

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

static const struct file_operations i915_param_uint_fops =;

static const struct file_operations i915_param_uint_fops_ro =;

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

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

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

static const struct file_operations i915_param_charp_fops =;

static const struct file_operations i915_param_charp_fops_ro =;

#define RO(mode)

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

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

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

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

/* add a subdirectory with files for each i915 param */
struct dentry *i915_debugfs_params(struct drm_i915_private *i915)
{}