summaryrefslogtreecommitdiff
path: root/include/uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uart.h')
-rw-r--r--include/uart.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/uart.h b/include/uart.h
index e333196d4a..3b798140ae 100644
--- a/include/uart.h
+++ b/include/uart.h
@@ -9,8 +9,10 @@
#define __CROS_EC_UART_H
#include <stdarg.h> /* For va_list */
+
#include "common.h"
#include "gpio.h"
+#include "stddef.h"
/**
* Initialize the UART module.
@@ -352,9 +354,12 @@ int uart_console_read_buffer(uint8_t type,
uint16_t dest_size,
uint16_t *write_count);
-#endif /* __CROS_EC_UART_H */
-
/**
* Initialize tx buffer head and tail
*/
void uart_init_buffer(void);
+
+/* Return the size of the free room in the UART TX circular buffer. */
+size_t uart_buffer_room(void);
+
+#endif /* __CROS_EC_UART_H */