summaryrefslogtreecommitdiff
path: root/include/lpc.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-04-19 12:42:35 -0700
committerRandall Spangler <rspangler@chromium.org>2012-04-19 13:08:58 -0700
commitf4e772708bde3e4e1d184190a7f0be2417d2029a (patch)
tree4b668c02a9a6dca2704e6d0a8b3cb8e5c9e95b76 /include/lpc.h
parentd5d2159c6d215b3a0feca42d961985cd37603ca8 (diff)
downloadchrome-ec-f4e772708bde3e4e1d184190a7f0be2417d2029a.tar.gz
Added HOOK_INIT for driver module inits
This covers modules which need to initialize before task_start(), but don't particularly care in what order they're initialized. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST=if it boots, it works Change-Id: I69829aac8d1c3c14ee04916a794b84bbf03a09eb
Diffstat (limited to 'include/lpc.h')
-rw-r--r--include/lpc.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/include/lpc.h b/include/lpc.h
index 17a78cc9cb..295522ad1f 100644
--- a/include/lpc.h
+++ b/include/lpc.h
@@ -10,26 +10,22 @@
#include "common.h"
-/* Manually generates an IRQ to host.
+/* Manually generate an IRQ to host.
* Note that the irq_num == 0 would set the AH bit (Active High).
*/
void lpc_manual_irq(int irq_num);
-/* 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(). <slot> is 0 for kernel-originated
- * commands, 1 for usermode-originated commands. */
+/* Return 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(). <slot> is 0 for
+ * kernel-originated commands, 1 for usermode-originated commands. */
uint8_t *lpc_get_host_range(int slot);
-/* Returns a pointer to the memory-mapped buffer. This buffer is writable at
+/* Return a pointer to the memory-mapped buffer. This buffer is writable at
* any time, and the host can read it at any time. */
uint8_t *lpc_get_memmap_range(void);
-/* Sends a result code to a host command. <slot> is 0 for kernel-originated
+/* Send a result code to a host command. <slot> is 0 for kernel-originated
* commands, 1 for usermode-originated commands. */
void lpc_send_host_response(int slot, int result);
@@ -39,13 +35,13 @@ int lpc_keyboard_has_char(void);
/* Send a byte to host via port 0x60 and asserts IRQ if specified. */
void lpc_keyboard_put_char(uint8_t chr, int send_irq);
-/* Returns non-zero if the COMx interface has received a character. */
+/* Return non-zero if the COMx interface has received a character. */
int lpc_comx_has_char(void);
-/* Returns the next character pending on the COMx interface. */
+/* Return the next character pending on the COMx interface. */
int lpc_comx_get_char(void);
-/* Puts a character to the COMx LPC interface. */
+/* Put a character to the COMx LPC interface. */
void lpc_comx_put_char(int c);
/* Types of host events */