#include <linux/init.h>
#include <linux/export.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/acpi.h>
#include <linux/uaccess.h>
#include <linux/miscdevice.h>
#include <linux/fs.h>
#include "acpi_thermal_rel.h"
static acpi_handle acpi_thermal_rel_handle;
static DEFINE_SPINLOCK(acpi_thermal_rel_chrdev_lock);
static int acpi_thermal_rel_chrdev_count;
static int acpi_thermal_rel_chrdev_exclu;
static int acpi_thermal_rel_open(struct inode *inode, struct file *file)
{ … }
static int acpi_thermal_rel_release(struct inode *inode, struct file *file)
{ … }
int acpi_parse_trt(acpi_handle handle, int *trt_count, struct trt **trtp,
bool create_dev)
{ … }
EXPORT_SYMBOL(…);
int acpi_parse_art(acpi_handle handle, int *art_count, struct art **artp,
bool create_dev)
{ … }
EXPORT_SYMBOL(…);
static int acpi_parse_psvt(acpi_handle handle, int *psvt_count, struct psvt **psvtp)
{ … }
static void get_single_name(acpi_handle handle, char *name)
{ … }
static int fill_art(char __user *ubuf)
{ … }
static int fill_trt(char __user *ubuf)
{ … }
static int fill_psvt(char __user *ubuf)
{ … }
static long acpi_thermal_rel_ioctl(struct file *f, unsigned int cmd,
unsigned long __arg)
{ … }
static const struct file_operations acpi_thermal_rel_fops = …;
static struct miscdevice acpi_thermal_rel_misc_device = …;
int acpi_thermal_rel_misc_device_add(acpi_handle handle)
{ … }
EXPORT_SYMBOL(…);
int acpi_thermal_rel_misc_device_remove(acpi_handle handle)
{ … }
EXPORT_SYMBOL(…);
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;