2 * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
26 * @APPLE_FREE_COPYRIGHT@
31 void serial_keyboard_init(void);
32 void serial_keyboard_start(void);
33 void serial_keyboard_poll(void);
35 extern uint32_t serialmode
;
36 extern uint32_t cons_ops_index
;
37 extern uint32_t nconsops
;
39 extern int _serial_getc(int unit
, int line
, boolean_t wait
, boolean_t raw
);
41 extern boolean_t
console_is_serial(void);
42 extern int switch_to_serial_console(void);
43 extern int switch_to_video_console(void);
44 extern void switch_to_old_console(int old_console
);
47 int (*putc
)(int, int, int);
48 int (*getc
)(int, int, boolean_t
, boolean_t
);
50 typedef struct console_ops console_ops_t
;
53 #define SERIAL_CONS_OPS 0