blob: ac0b56c137f0867489a648337c242a89cc064429 (
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
|
/* Copyright (c) 2011 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.
*/
/* LPC module for Chrome EC */
#ifndef __CROS_EC_LPC_H
#define __CROS_EC_LPC_H
#include "common.h"
/* Initializes the LPC module. */
int lpc_init(void);
/* Returns a pointer to the host command data buffer. This buffer
* must only be accessed between a notification to
* host_command_received() and a subsequent call to
* lpc_SendHostResponse(). */
volatile uint8_t *lpc_get_host_range(void);
/* Sends a response to a host command. The bottom 4 bits of <status>
* are sent in the status byte. */
void lpc_send_host_response(int status);
#endif /* __CROS_EC_LPC_H */
|