aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel_scu_ipcutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86/intel_scu_ipcutil.c')
-rw-r--r--drivers/platform/x86/intel_scu_ipcutil.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/drivers/platform/x86/intel_scu_ipcutil.c b/drivers/platform/x86/intel_scu_ipcutil.c
index aa454241489c..8afe6fa06d7b 100644
--- a/drivers/platform/x86/intel_scu_ipcutil.c
+++ b/drivers/platform/x86/intel_scu_ipcutil.c
@@ -1,32 +1,28 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * intel_scu_ipc.c: Driver for the Intel SCU IPC mechanism 3 * Driver for the Intel SCU IPC mechanism
3 * 4 *
4 * (C) Copyright 2008-2010 Intel Corporation 5 * (C) Copyright 2008-2010 Intel Corporation
5 * Author: Sreedhara DS (sreedhara.ds@intel.com) 6 * Author: Sreedhara DS (sreedhara.ds@intel.com)
6 * 7 *
7 * This program is free software; you can redistribute it and/or 8 * This driver provides IOCTL interfaces to call Intel SCU IPC driver API.
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; version 2
10 * of the License.
11 *
12 * This driver provides ioctl interfaces to call intel scu ipc driver api
13 */ 9 */
14 10
15#include <linux/module.h>
16#include <linux/kernel.h>
17#include <linux/errno.h> 11#include <linux/errno.h>
18#include <linux/types.h>
19#include <linux/fs.h>
20#include <linux/fcntl.h> 12#include <linux/fcntl.h>
13#include <linux/fs.h>
14#include <linux/kernel.h>
15#include <linux/module.h>
21#include <linux/sched.h> 16#include <linux/sched.h>
22#include <linux/uaccess.h>
23#include <linux/slab.h> 17#include <linux/slab.h>
24#include <linux/init.h> 18#include <linux/types.h>
19#include <linux/uaccess.h>
20
25#include <asm/intel_scu_ipc.h> 21#include <asm/intel_scu_ipc.h>
26 22
27static int major; 23static int major;
28 24
29/* ioctl commnds */ 25/* IOCTL commands */
30#define INTE_SCU_IPC_REGISTER_READ 0 26#define INTE_SCU_IPC_REGISTER_READ 0
31#define INTE_SCU_IPC_REGISTER_WRITE 1 27#define INTE_SCU_IPC_REGISTER_WRITE 1
32#define INTE_SCU_IPC_REGISTER_UPDATE 2 28#define INTE_SCU_IPC_REGISTER_UPDATE 2