blob: 9442c0c0b6c054016ae84fe5152e3afe9a102af2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef SHF_KERNEL_H
#define SHF_KERNEL_H
#include <linux/types.h>
//IPI received data cache
#define SHF_IPI_PROTOCOL_BYTES (48)
typedef struct ipi_data {
uint8_t data[SHF_IPI_PROTOCOL_BYTES];
size_t size;
} ipi_data_t;
typedef struct ipi_buffer {
size_t head;
size_t tail;
size_t size;//data count
ipi_data_t* data;
} ipi_buffer_t;
#define SHF_IOW(num, dtype) _IOW('S', num, dtype)
#define SHF_IOR(num, dtype) _IOR('S', num, dtype)
#define SHF_IOWR(num, dtype) _IOWR('S', num, dtype)
#define SHF_IO(num) _IO('S', num)
#define SHF_IPI_SEND SHF_IOW(1, ipi_data_t)
#define SHF_IPI_POLL SHF_IOR(2, ipi_data_t)
#define SHF_GESTURE_ENABLE SHF_IOW(3, int)
#ifdef CONFIG_MTK_SENSOR_HUB_SUPPORT
extern void tpd_scp_wakeup_enable(bool enable);
#endif
#endif//SHF_KERNEL_H
|