diff options
Diffstat (limited to 'include/lpc.h')
-rw-r--r-- | include/lpc.h | 24 |
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 */ |