X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/89b3af67bb32e691275bf6fa803d1834b2284115..4d15aeb193b2c68f1d38666c317f8d3734f5f083:/osfmk/console/serial_protos.h diff --git a/osfmk/console/serial_protos.h b/osfmk/console/serial_protos.h index d5296a683..cf372f624 100644 --- a/osfmk/console/serial_protos.h +++ b/osfmk/console/serial_protos.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2005-2006 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -32,7 +32,8 @@ * @APPLE_FREE_COPYRIGHT@ */ - +#ifndef _CONSOLE_SERIAL_PROTOS_H_ +#define _CONSOLE_SERIAL_PROTOS_H_ void serial_keyboard_init(void); void serial_keyboard_start(void); @@ -40,21 +41,22 @@ void serial_keyboard_poll(void); extern uint32_t serialmode; extern uint32_t cons_ops_index; -extern uint32_t nconsops; - -extern int _serial_getc(int unit, int line, boolean_t wait, boolean_t raw); +extern const uint32_t nconsops; +extern unsigned int disable_serial_output; -extern boolean_t console_is_serial(void); -extern int switch_to_serial_console(void); -extern int switch_to_video_console(void); -extern void switch_to_old_console(int old_console); +int _serial_getc(int unit, int line, boolean_t wait, boolean_t raw); struct console_ops { - int (*putc)(int, int, int); + void (*putc)(int, int, int); int (*getc)(int, int, boolean_t, boolean_t); -} console_ops; -typedef struct console_ops console_ops_t; +}; +boolean_t console_is_serial(void); +int switch_to_serial_console(void); +int switch_to_video_console(void); +void switch_to_old_console(int old_console); #define SERIAL_CONS_OPS 0 #define VC_CONS_OPS 1 + +#endif /* _CONSOLE_SERIAL_PROTOS_H_ */