#include <linux/acpi.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/io-64-nonatomic-lo-hi.h>
#include <linux/mfd/core.h>
#include <linux/mfd/intel_pmc_bxt.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/platform_data/itco_wdt.h>
#include <asm/intel_scu_ipc.h>
#define S0IX_RESIDENCY_IN_USECS(d, s) …
#define PLAT_RESOURCE_IPC_INDEX …
#define PLAT_RESOURCE_IPC_SIZE …
#define PLAT_RESOURCE_GCR_OFFSET …
#define PLAT_RESOURCE_GCR_SIZE …
#define PLAT_RESOURCE_BIOS_DATA_INDEX …
#define PLAT_RESOURCE_BIOS_IFACE_INDEX …
#define PLAT_RESOURCE_TELEM_SSRAM_INDEX …
#define PLAT_RESOURCE_ISP_DATA_INDEX …
#define PLAT_RESOURCE_ISP_IFACE_INDEX …
#define PLAT_RESOURCE_GTD_DATA_INDEX …
#define PLAT_RESOURCE_GTD_IFACE_INDEX …
#define PLAT_RESOURCE_ACPI_IO_INDEX …
#define SMI_EN_OFFSET …
#define SMI_EN_SIZE …
#define TCO_BASE_OFFSET …
#define TCO_REGS_SIZE …
#define TELEM_SSRAM_SIZE …
#define TELEM_PMC_SSRAM_OFFSET …
#define TELEM_PUNIT_SSRAM_OFFSET …
#define PMC_NORTHPEAK_CTRL …
static inline bool is_gcr_valid(u32 offset)
{ … }
int intel_pmc_gcr_read64(struct intel_pmc_dev *pmc, u32 offset, u64 *data)
{ … }
EXPORT_SYMBOL_GPL(…);
int intel_pmc_gcr_update(struct intel_pmc_dev *pmc, u32 offset, u32 mask, u32 val)
{ … }
EXPORT_SYMBOL_GPL(…);
int intel_pmc_s0ix_counter_read(struct intel_pmc_dev *pmc, u64 *data)
{ … }
EXPORT_SYMBOL_GPL(…);
static ssize_t simplecmd_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_WO(simplecmd);
static ssize_t northpeak_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_WO(northpeak);
static struct attribute *intel_pmc_attrs[] = …;
static const struct attribute_group intel_pmc_group = …;
static const struct attribute_group *intel_pmc_groups[] = …;
static struct resource punit_res[6];
static struct mfd_cell punit = …;
static struct itco_wdt_platform_data tco_pdata = …;
static struct resource tco_res[2];
static const struct mfd_cell tco = …;
static const struct resource telem_res[] = …;
static const struct mfd_cell telem = …;
static int intel_pmc_get_tco_resources(struct platform_device *pdev)
{ … }
static int intel_pmc_get_resources(struct platform_device *pdev,
struct intel_pmc_dev *pmc,
struct intel_scu_ipc_data *scu_data)
{ … }
static int intel_pmc_create_devices(struct intel_pmc_dev *pmc)
{ … }
static const struct acpi_device_id intel_pmc_acpi_ids[] = …;
MODULE_DEVICE_TABLE(acpi, intel_pmc_acpi_ids);
static int intel_pmc_probe(struct platform_device *pdev)
{ … }
static struct platform_driver intel_pmc_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;