]> git.saurik.com Git - apple/xnu.git/blob - osfmk/console/video_console.h
xnu-792.6.76.tar.gz
[apple/xnu.git] / osfmk / console / video_console.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
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 */
25 /*
26 * @APPLE_FREE_COPYRIGHT@
27 */
28
29 #ifndef _VIDEO_CONSOLE_H_
30 #define _VIDEO_CONSOLE_H_
31
32 #include <device/device_types.h>
33
34 int vcputc( int l,
35 int u,
36 int c );
37
38 int vcgetc( int l,
39 int u,
40 boolean_t wait,
41 boolean_t raw );
42
43 void video_scroll_up( unsigned long start,
44 unsigned long end,
45 unsigned long dest );
46
47 void video_scroll_down( unsigned long start, /* HIGH addr */
48 unsigned long end, /* LOW addr */
49 unsigned long dest ); /* HIGH addr */
50
51 struct vc_info
52 {
53 unsigned long v_height; /* pixels */
54 unsigned long v_width; /* pixels */
55 unsigned long v_depth;
56 unsigned long v_rowbytes;
57 unsigned long v_baseaddr;
58 unsigned long v_type;
59 char v_name[32];
60 unsigned long v_physaddr;
61 unsigned long v_rows; /* characters */
62 unsigned long v_columns; /* characters */
63 unsigned long v_rowscanbytes; /* Actualy number of bytes used for display per row*/
64 unsigned long v_reserved[5];
65 };
66
67 #endif /* _VIDEO_CONSOLE_H_ */