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

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

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

#define intel_display_param_named(name, T, perm, desc)
#define intel_display_param_named_unsafe(name, T, perm, desc)

static struct intel_display_params intel_display_modparams __read_mostly =;
/*
 * Note: As a rule, keep module parameter sysfs permissions read-only
 * 0400. Runtime changes are only supported through i915 debugfs.
 *
 * For any exceptions requiring write access and runtime changes through module
 * parameter sysfs, prevent debugfs file creation by setting the parameter's
 * debugfs mode to 0.
 */

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

/* WA to get away with the default setting in VBT for early platforms.Will be removed */
intel_display_param_named_unsafe();

intel_display_param_named();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named();

intel_display_param_named();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

intel_display_param_named();

intel_display_param_named_unsafe();

intel_display_param_named_unsafe();

__maybe_unused
static void _param_print_bool(struct drm_printer *p, const char *driver_name,
			      const char *name, bool val)
{}

__maybe_unused
static void _param_print_int(struct drm_printer *p, const char *driver_name,
			     const char *name, int val)
{}

__maybe_unused
static void _param_print_uint(struct drm_printer *p, const char *driver_name,
			      const char *name, unsigned int val)
{}

__maybe_unused
static void _param_print_ulong(struct drm_printer *p, const char *driver_name,
			       const char *name, unsigned long val)
{}

__maybe_unused
static void _param_print_charp(struct drm_printer *p, const char *driver_name,
			       const char *name, const char *val)
{}

#define _param_print(p, driver_name, name, val)

/**
 * intel_display_params_dump - dump intel display modparams
 * @display: display device
 * @p: the &drm_printer
 *
 * Pretty printer for i915 modparams.
 */
void intel_display_params_dump(struct intel_display *display, struct drm_printer *p)
{}

__maybe_unused static void _param_dup_charp(char **valp)
{}

__maybe_unused static void _param_nop(void *valp)
{}

#define _param_dup(valp)

void intel_display_params_copy(struct intel_display_params *dest)
{}

__maybe_unused static void _param_free_charp(char **valp)
{}

#define _param_free(valp)

/* free the allocated members, *not* the passed in params itself */
void intel_display_params_free(struct intel_display_params *params)
{}