memset(&m, 0, sizeof(m));
m.m_type = INPUT_SETLEDS;
- m.INPUT_LED_MASK = locks[ccurrent] & ~ALT_LOCK;
+ m.m_input_linputdriver_setleds.led_mask = locks[ccurrent] & ~ALT_LOCK;
if ((r = asynsend3(input_endpt, &m, AMF_NOREPLY)) != OK)
printf("TTY: asynsend to INPUT %u failed (%d)\n", input_endpt, r);
#define INPUT_RS_BASE 0x1580 /* from input driver to input server */
#define INPUT_CONF (INPUT_RQ_BASE + 0) /* configure driver */
-
#define INPUT_SETLEDS (INPUT_RQ_BASE + 1) /* set keyboard LEDs */
-# define INPUT_LED_MASK m7_i1 /* status mask of LEDs */
#define INPUT_EVENT (INPUT_RS_BASE + 0) /* send input event */
} mess_input_linputdriver_input_conf;
_ASSERT_MSG_SIZE(mess_input_linputdriver_input_conf);
+typedef struct {
+ uint32_t led_mask;
+
+ uint8_t padding[52];
+} mess_input_linputdriver_setleds;
+_ASSERT_MSG_SIZE(mess_input_linputdriver_setleds);
+
typedef struct {
int id;
int page;
mess_i2c_li2cdriver_busc_i2c_reserve m_i2c_li2cdriver_busc_i2c_reserve;
mess_input_linputdriver_input_conf m_input_linputdriver_input_conf;
+ mess_input_linputdriver_setleds m_input_linputdriver_setleds;
mess_lc_pm_exec m_lc_pm_exec;
mess_lc_pm_exit m_lc_pm_exit;
return;
}
- mask = m_ptr->INPUT_LED_MASK;
+ mask = m_ptr->m_input_linputdriver_setleds.led_mask;
if (idp->idr_leds)
idp->idr_leds(mask);
memset(&m, 0, sizeof(m));
m.m_type = INPUT_SETLEDS;
- m.INPUT_LED_MASK = mask;
+ m.m_input_linputdriver_setleds.led_mask = mask;
/*
* Send the request to all matching keyboard devices. As side effect,
case INPUT_SETLEDS:
if (m->m_source == TTY_PROC_NR) {
- input_set_leds(KBDMUX_MINOR, m->INPUT_LED_MASK);
+ input_set_leds(KBDMUX_MINOR, m->m_input_linputdriver_setleds.led_mask);
break;
}