+
+#ifdef XNU_KERNEL_PRIVATE
+
+#define SERIAL_CONS_BUF_SIZE 256
+struct console_printbuf_state {
+ int pos;
+ int total;
+ int flags;
+#define CONS_PB_WRITE_NEWLINE 0x1
+#define CONS_PB_CANBLOCK 0x2
+ char str[SERIAL_CONS_BUF_SIZE];
+};
+
+extern int console_printbuf_drain_initialized;
+void console_printbuf_state_init(struct console_printbuf_state * data, int write_on_newline, int can_block);
+void console_printbuf_putc(int ch, void *arg);
+void console_printbuf_clear(struct console_printbuf_state * info);
+int console_write_try(char * str, int size);
+
+
+#endif /* XNU_KERNEL_PRIVATE */
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* _CONSOLE_SERIAL_PROTOS_H_ */