-
Notifications
You must be signed in to change notification settings - Fork 2
/
am_joyin.h
56 lines (41 loc) · 1.33 KB
/
am_joyin.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/********************************************************************************
* Copyright (C) 2021 Ju, Gyeong-min
********************************************************************************/
#ifndef __AM_JOYIN_H_
#define __AM_JOYIN_H_
#include "build_cfg.h"
#include <linux/kernel.h>
#include <linux/mutex.h>
#include "indev_type.h"
#if !defined(KBUILD_MODNAME)
#define KBUILD_MODNAME DEVICE_NAME
#endif
typedef struct tag_am_joyin_data {
// 키체크 주기
unsigned long report_period;
// 디버그 모드
BOOL is_debug;
// 버튼셋 리스트
input_buttonset_data_t buttonset_list[MAX_INPUT_BUTTONSET_COUNT];
int input_buttonset_count;
// endpoint 리스트
input_endpoint_data_t endpoint_list[MAX_INPUT_ENDPOINT_COUNT];
int input_endpoint_count;
// 징치 타입 기술 리스트
input_device_type_desc_t device_type_desc_list[MAX_INPUT_DEVICE_TYPE_DESC_COUNT];
int input_device_type_desc_count;
// 장치 리스트
input_device_data_t device_list[MAX_INPUT_DEVICE_COUNT];
int input_device_count;
// 런타임 참조 정보
int used;
#if defined(USE_REPORT_TIMER)
unsigned long timer_period;
struct timer_list report_timer;
#else
struct task_struct* report_task;
#endif
struct mutex mutex;
int missing_timer_count;
} am_joyin_data_t;
#endif