mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
Since it's really the keyboard protocol task, not just handling i8042 commands. For consistency across keyboard protocols. No functional changes, just renaming. BUG=chrome-os-partner:18360 BRANCH=none TEST=boot link and type on keyboard Change-Id: I800a691a344f82bf582693cae865414b7d5d382a Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/46885 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
46 lines
794 B
C
46 lines
794 B
C
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*
|
|
* Mock EC i8042 interface code.
|
|
*/
|
|
|
|
#include "keyboard_i8042.h"
|
|
#include "timer.h"
|
|
#include "uart.h"
|
|
|
|
void keyboard_receive(int data, int is_cmd)
|
|
{
|
|
/* Not implemented */
|
|
return;
|
|
}
|
|
|
|
void keyboard_protocol_task(void)
|
|
{
|
|
/* Do nothing */
|
|
while (1)
|
|
sleep(5);
|
|
}
|
|
|
|
enum ec_error_list i8042_send_to_host(int len, const uint8_t *bytes)
|
|
{
|
|
int i;
|
|
uart_printf("i8042 SEND:");
|
|
for (i = 0; i < len; ++i)
|
|
uart_printf(" %02x", bytes[i]);
|
|
uart_printf("\n");
|
|
return EC_SUCCESS;
|
|
}
|
|
|
|
void i8042_enable_keyboard_irq(int enable)
|
|
{
|
|
/* Not implemented */
|
|
return;
|
|
}
|
|
|
|
void i8042_flush_buffer()
|
|
{
|
|
/* Not implemented */
|
|
return;
|
|
}
|