linux/drivers/platform/chrome/chromeos_pstore.c

// SPDX-License-Identifier: GPL-2.0
// Driver to instantiate Chromebook ramoops device.
//
// Copyright (C) 2013 Google, Inc.

#include <linux/acpi.h>
#include <linux/dmi.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pstore_ram.h>

static const struct dmi_system_id chromeos_pstore_dmi_table[] __initconst =;
MODULE_DEVICE_TABLE(dmi, chromeos_pstore_dmi_table);

/*
 * On x86 chromebooks/boxes, the firmware will keep the legacy VGA memory
 * range untouched across reboots, so we use that to store our pstore
 * contents for panic logs, etc.
 */
static struct ramoops_platform_data chromeos_ramoops_data =;

static struct platform_device chromeos_ramoops =;

#ifdef CONFIG_ACPI
static const struct acpi_device_id cros_ramoops_acpi_match[] =;
MODULE_DEVICE_TABLE(acpi, cros_ramoops_acpi_match);

static struct platform_driver chromeos_ramoops_acpi =;

static int __init chromeos_probe_acpi(struct platform_device *pdev)
{}

static bool __init chromeos_check_acpi(void)
{}
#else
static inline bool chromeos_check_acpi(void) { return false; }
#endif

static int __init chromeos_pstore_init(void)
{}

static void __exit chromeos_pstore_exit(void)
{}

module_init();
module_exit(chromeos_pstore_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();