linux/arch/x86/platform/atom/punit_atom_debug.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Intel SOC Punit device state debug driver
 * Punit controls power management for North Complex devices (Graphics
 * blocks, Image Signal Processing, video processing, display, DSP etc.)
 *
 * Copyright (c) 2015, Intel Corporation.
 */

#define pr_fmt(fmt)

#include <linux/acpi.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/io.h>
#include <asm/cpu_device_id.h>
#include <asm/intel-family.h>
#include <asm/iosf_mbi.h>

/* Subsystem config/status Video processor */
#define VED_SS_PM0
/* Subsystem config/status ISP (Image Signal Processor) */
#define ISP_SS_PM0
/* Subsystem config/status Input/output controller */
#define MIO_SS_PM
/* Shift bits for getting status for video, isp and i/o */
#define SSS_SHIFT

/* Power gate status reg */
#define PWRGT_STATUS
/* Shift bits for getting status for graphics rendering */
#define RENDER_POS
/* Shift bits for getting status for media control */
#define MEDIA_POS
/* Shift bits for getting status for Valley View/Baytrail display */
#define VLV_DISPLAY_POS

/* Subsystem config/status display for Cherry Trail SOC */
#define CHT_DSP_SSS
/* Shift bits for getting status for display */
#define CHT_DSP_SSS_POS

struct punit_device {};

static const struct punit_device punit_device_tng[] =;

static const struct punit_device punit_device_byt[] =;

static const struct punit_device punit_device_cht[] =;

static const char * const dstates[] =;

static int punit_dev_state_show(struct seq_file *seq_file, void *unused)
{}
DEFINE_SHOW_ATTRIBUTE();

static struct dentry *punit_dbg_file;

static void punit_dbgfs_register(struct punit_device *punit_device)
{}

static void punit_dbgfs_unregister(void)
{}

#if defined(CONFIG_ACPI) && defined(CONFIG_SUSPEND)
static const struct punit_device *punit_dev;

static void punit_s2idle_check(void)
{}

static struct acpi_s2idle_dev_ops punit_s2idle_ops =;

static void punit_s2idle_check_register(struct punit_device *punit_device)
{}

static void punit_s2idle_check_unregister(void)
{}
#else
static void punit_s2idle_check_register(struct punit_device *punit_device) {}
static void punit_s2idle_check_unregister(void) {}
#endif

#define X86_MATCH(vfm, data)

static const struct x86_cpu_id intel_punit_cpu_ids[] =;
MODULE_DEVICE_TABLE(x86cpu, intel_punit_cpu_ids);

static int __init punit_atom_debug_init(void)
{}

static void __exit punit_atom_debug_exit(void)
{}

module_init();
module_exit(punit_atom_debug_exit);

MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();