#include <linux/clk.h>
#include <linux/log2.h>
#include <linux/mfd/syscon.h>
#include <linux/miscdevice.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/poll.h>
#include <linux/regmap.h>
#include <linux/aspeed-lpc-ctrl.h>
#define DEVICE_NAME …
#define HICR5 …
#define HICR5_ENL2H …
#define HICR5_ENFWH …
#define HICR6 …
#define SW_FWH2AHB …
#define HICR7 …
#define HICR8 …
struct aspeed_lpc_ctrl { … };
static struct aspeed_lpc_ctrl *file_aspeed_lpc_ctrl(struct file *file)
{ … }
static int aspeed_lpc_ctrl_mmap(struct file *file, struct vm_area_struct *vma)
{ … }
static long aspeed_lpc_ctrl_ioctl(struct file *file, unsigned int cmd,
unsigned long param)
{ … }
static const struct file_operations aspeed_lpc_ctrl_fops = …;
static int aspeed_lpc_ctrl_probe(struct platform_device *pdev)
{ … }
static void aspeed_lpc_ctrl_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id aspeed_lpc_ctrl_match[] = …;
static struct platform_driver aspeed_lpc_ctrl_driver = …;
module_platform_driver(…) …;
MODULE_DEVICE_TABLE(of, aspeed_lpc_ctrl_match);
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;