blob: 5b31ec4bc2b4179797df6390af70ab17b3c73b90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/* Copyright (c) 2012 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 LPC module for Chrome EC */
#include "board.h"
#include "common.h"
#include "ec_commands.h"
#include "lpc.h"
#include "registers.h"
#include "uart.h"
void lpc_set_host_event_state(uint32_t mask)
{
uart_printf("Host event: %x\n", mask);
}
uint32_t lpc_get_host_event_state(void)
{
/* Not implemented */
return 0;
}
void lpc_clear_host_event_state(uint32_t mask)
{
uart_printf("Clear host event: %x\n", mask);
}
void lpc_set_host_event_mask(enum lpc_host_event_type type, uint32_t mask)
{
uart_printf("Set host event mask: type %d = %x\n", type, mask);
}
uint32_t lpc_get_host_event_mask(enum lpc_host_event_type type)
{
/* Not implemented */
return 0;
}
int lpc_comx_has_char(void)
{
/* Not implemented */
return 0;
}
int lpc_comx_get_char(void)
{
/* Not implemented */
return 0;
}
void lpc_comx_put_char(int c)
{
/* Not implemented */
return;
}
void host_send_response(enum ec_status result, const uint8_t *data, int size)
{
/* Not implemented */
return;
}
uint8_t *lpc_get_memmap_range(void)
{
return (uint8_t *)LPC_POOL_CMD_DATA + EC_HOST_PARAM_SIZE * 2;
}
uint8_t *host_get_buffer(void)
{
return (uint8_t *)LPC_POOL_CMD_DATA;
}
|