Debian Codegraph @

src/ec/dell/mec5035/mec5035.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef _EC_DELL_MEC5035_H_
4 #define _EC_DELL_MEC5035_H_
5
6 #include <stdint.h>
7
8 #define NUM_REGISTERS 32
9
10 enum mec5035_cmd {
11 CMD_MOUSE_TP = 0x1a,
12 CMD_RADIO_CTRL = 0x2b,
13 CMD_CPU_OK = 0xc2,
14 };
15
16 /* Touchpad (TP) and mouse related. The EC seems to
17 default to 0 which results in the TP not working. */
18 enum ec_mouse_setting {
19 SERIAL_MOUSE = 0, /* Disable TP, force use of a serial mouse */
20 PS2_MOUSE, /* Disable TP when using a PS/2 mouse */
21 TP_PS2_MOUSE /* Leave TP enabled when using a PS/2 mouse */
22 };
23
24 #define RADIO_CTRL_NUM_ARGS 3
25 enum ec_radio_dev {
26 RADIO_WLAN = 0,
27 RADIO_WWAN,
28 RADIO_BT
29 };
30
31 enum ec_radio_state {
32 RADIO_OFF = 0,
33 RADIO_ON
34 };
35
36 u8 mec5035_mouse_touchpad(enum ec_mouse_setting setting);
37 void mec5035_cpu_ok(void);
38 void mec5035_early_init(void);
39 void mec5035_control_radio(enum ec_radio_dev device, enum ec_radio_state state);
40
41 #endif /* _EC_DELL_MEC5035_H_ */