]> git.saurik.com Git - apple/xnu.git/blame - osfmk/console/video_console.h
xnu-792.tar.gz
[apple/xnu.git] / osfmk / console / video_console.h
CommitLineData
de355530
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
e5568f75
A
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.
de355530 11 *
e5568f75
A
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
de355530
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
e5568f75
A
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.
de355530
A
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/*
55e303ae 23 * @OSF_COPYRIGHT@
de355530
A
24 */
25/*
26 * @APPLE_FREE_COPYRIGHT@
27 */
de355530 28
55e303ae
A
29#ifndef _VIDEO_CONSOLE_H_
30#define _VIDEO_CONSOLE_H_
31
32#include <device/device_types.h>
33
34int vcputc( int l,
35 int u,
36 int c );
37
38int vcgetc( int l,
39 int u,
40 boolean_t wait,
41 boolean_t raw );
42
43void video_scroll_up( unsigned long start,
44 unsigned long end,
45 unsigned long dest );
46
47void video_scroll_down( unsigned long start, /* HIGH addr */
48 unsigned long end, /* LOW addr */
49 unsigned long dest ); /* HIGH addr */
50
51struct 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_ */