diff options
Diffstat (limited to 'src/ec/dell/mec5035/mec5035.h')
-rw-r--r-- | src/ec/dell/mec5035/mec5035.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/ec/dell/mec5035/mec5035.h b/src/ec/dell/mec5035/mec5035.h index fa15a9d621..32f791cb01 100644 --- a/src/ec/dell/mec5035/mec5035.h +++ b/src/ec/dell/mec5035/mec5035.h @@ -7,16 +7,20 @@ #define NUM_REGISTERS 32 +enum mec5035_cmd { + CMD_MOUSE_TP = 0x1a, + CMD_RADIO_CTRL = 0x2b, + CMD_CPU_OK = 0xc2, +}; + /* Touchpad (TP) and mouse related. The EC seems to default to 0 which results in the TP not working. */ -#define CMD_MOUSE_TP 0x1a -#define SERIAL_MOUSE 0 /* Disable TP, force use of a serial mouse */ -#define PS2_MOUSE 1 /* Disable TP when using a PS/2 mouse */ -#define TP_PS2_MOUSE 2 /* Leave TP enabled when using a PS/2 mouse */ - -#define CMD_CPU_OK 0xc2 +enum ec_mouse_setting { + SERIAL_MOUSE = 0, /* Disable TP, force use of a serial mouse */ + PS2_MOUSE, /* Disable TP when using a PS/2 mouse */ + TP_PS2_MOUSE /* Leave TP enabled when using a PS/2 mouse */ +}; -#define CMD_RADIO_CTRL 0x2b #define RADIO_CTRL_NUM_ARGS 3 enum ec_radio_dev { RADIO_WLAN = 0, @@ -29,7 +33,7 @@ enum ec_radio_state { RADIO_ON }; -u8 mec5035_mouse_touchpad(u8 setting); +u8 mec5035_mouse_touchpad(enum ec_mouse_setting setting); void mec5035_cpu_ok(void); void mec5035_early_init(void); void mec5035_control_radio(enum ec_radio_dev device, enum ec_radio_state state); |