huangcm
2025-07-03 a76b2fadf6ad4adf86e241e3753a63efe03ef80c
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
/*
 * include/drivers/ir.h
 *
 * Copyright (C) 2012-2016 AllWinnertech Ltd.
 * Author: Sunny <Sunny@allwinnertech.com>
 *
 */
#ifndef __IR_H__
#define __IR_H__
 
/*
 * param depend on SYSTEM
 */
#define IR_NUM_KEY_SUP                  (64)    /* the number of IR code support */
 
typedef struct ir_code {
   u32 key_code;
   u32 addr_code;
} ir_code_t;
 
typedef struct ir_key {
   u32 num;
   ir_code_t ir_code_depot[IR_NUM_KEY_SUP];
} ir_key_t;
 
#if IR_USED
extern s32 ir_init(void);
extern s32 ir_exit(void);
extern u32 ir_is_power_key(void);
 
extern s32 ir_set_paras(ir_key_t *ir_key);
extern void ir_sysconfig_cfg(void);
extern u32 ir_is_used(void);
 
#endif
#endif /*__IR_H__ */