static void applkey(int key, char mode) { static char buf[] = { 0x1b, 'O', 0x00, 0x00 }; buf[1] = (mode ? 'O' : '['); buf[2] = key; puts_queue(buf); }
static void applkey(struct vc_data *vc, int key, char mode) { static char buf[] = { 0x1b, 'O', 0x00, 0x00 }; buf[1] = (mode ? 'O' : '['); buf[2] = key; puts_queue(vc, buf); }
static void do_fn(unsigned char value, char up_flag) { if (up_flag) return; if (value < SIZE(func_table)) puts_queue(func_table[value]); else printk("do_fn called with value=%d\n", value); }