]> git.saurik.com Git - apple/boot.git/blob - i386/libsaio/vga.h
boot-80.1.tar.gz
[apple/boot.git] / i386 / libsaio / vga.h
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 1.1 (the "License"). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
12 * this file.
13 *
14 * The Original Code and all software distributed under the License are
15 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
20 * under the License.
21 *
22 * @APPLE_LICENSE_HEADER_END@
23 */
24 /*
25 * VGA Graphics Controller Port
26 */
27
28 #ifndef __LIBSAIO_VGA_H
29 #define __LIBSAIO_VGA_H
30
31 #define VGA_BUF_ADDR 0xA0000
32 #define VGA_BUF_LENGTH 0x10000
33
34 #define VGA_GFX_INDEX 0x3CE
35 #define VGA_GFX_DATA 0x3CF
36 #define VGA_GFX_RD_MAP_SEL 0x4
37 #define VGA_GFX_BIT_MASK 0x8
38 #define VGA_NUM_GFX_REGS 6 // number of graphics controller
39 // registers to preserve
40 #define VGA_SEQ_INDEX 0x3C4
41 #define VGA_SEQ_DATA 0x3C5
42 #define VGA_SEQ_MAP_MASK 0x2
43 #define VGA_NUM_SEQ_REGS 5 // number of sequencer
44 // registers to preserve
45 #define VGA_AC_ADDR 0x3C0
46 #define VGA_NUM_AC_REGS 0x14
47
48 #define VGA_CRTC_INDEX 0x3D4
49 #define VGA_CRTC_DATA 0x3D5
50
51 #define VGA_READ_ATTR_INDEX 0x3C1
52 #define VGA_READ_ATTR_DATA 0x3C1
53 #define VGA_WRITE_ATTR_INDEX 0x3C0
54 #define VGA_WRITE_ATTR_DATA 0x3C0
55
56 #define VGA_PALETTE_WRITE 0x3C8
57 #define VGA_PALETTE_READ 0x3C7
58 #define VGA_PALETTE_DATA 0x3C9
59
60 #define VGA_INPUT_STATUS_1 0x3DA
61 #define VGA_READ_MISC_PORT 0x3CC
62 #define VGA_WRITE_MISC_PORT 0x3C2
63
64 #define VGA_READ_FEATURE_PORT 0x3CA
65 #define VGA_WRITE_FEATURE_PORT 0x3DA
66
67 #endif /* !__LIBSAIO_VGA_H */