]> git.saurik.com Git - apple/xnu.git/blob - osfmk/console/video_console.h
18323953d3f77f3ca93ec83645985384adb07d7c
[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 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23 /*
24 * @OSF_COPYRIGHT@
25 */
26 /*
27 * @APPLE_FREE_COPYRIGHT@
28 */
29
30 #ifndef _VIDEO_CONSOLE_H_
31 #define _VIDEO_CONSOLE_H_
32
33 #include <device/device_types.h>
34
35 int vcputc( int l,
36 int u,
37 int c );
38
39 int vcgetc( int l,
40 int u,
41 boolean_t wait,
42 boolean_t raw );
43
44 void video_scroll_up( unsigned long start,
45 unsigned long end,
46 unsigned long dest );
47
48 void video_scroll_down( unsigned long start, /* HIGH addr */
49 unsigned long end, /* LOW addr */
50 unsigned long dest ); /* HIGH addr */
51
52 struct vc_info
53 {
54 unsigned long v_height; /* pixels */
55 unsigned long v_width; /* pixels */
56 unsigned long v_depth;
57 unsigned long v_rowbytes;
58 unsigned long v_baseaddr;
59 unsigned long v_type;
60 char v_name[32];
61 unsigned long v_physaddr;
62 unsigned long v_rows; /* characters */
63 unsigned long v_columns; /* characters */
64 unsigned long v_rowscanbytes; /* Actualy number of bytes used for display per row*/
65 unsigned long v_reserved[5];
66 };
67
68 #endif /* _VIDEO_CONSOLE_H_ */