]> git.saurik.com Git - apple/xnu.git/blame - osfmk/console/serial_protos.h
xnu-792.25.20.tar.gz
[apple/xnu.git] / osfmk / console / serial_protos.h
CommitLineData
6601e61a 1/*
0c530ab8 2 * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
6601e61a
A
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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.
11 *
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
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/*
23 * @OSF_COPYRIGHT@
24 */
0c530ab8
A
25/*
26 * @APPLE_FREE_COPYRIGHT@
27 */
28
29
30
31void serial_keyboard_init(void);
32void serial_keyboard_start(void);
33void serial_keyboard_poll(void);
34
35extern uint32_t serialmode;
36extern uint32_t cons_ops_index;
37extern uint32_t nconsops;
38
39extern int _serial_getc(int unit, int line, boolean_t wait, boolean_t raw);
40
41extern boolean_t console_is_serial(void);
42extern int switch_to_serial_console(void);
43extern int switch_to_video_console(void);
44extern void switch_to_old_console(int old_console);
45
46struct console_ops {
47 int (*putc)(int, int, int);
48 int (*getc)(int, int, boolean_t, boolean_t);
49} console_ops;
50typedef struct console_ops console_ops_t;
6601e61a 51
6601e61a 52
0c530ab8
A
53#define SERIAL_CONS_OPS 0
54#define VC_CONS_OPS 1