1 /* 2 * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef VGA_H 6 #define VGA_H 7 8 9 /* VGA ports */ 10 11 // misc stuff 12 #define VGA_INPUT_STATUS_0 0x3c2 13 #define VGA_INPUT_STATUS_1 0x3da 14 15 // sequencer registers 16 #define VGA_SEQUENCER_INDEX 0x3c4 17 #define VGA_SEQUENCER_DATA 0x3c5 18 19 // graphics registers 20 #define VGA_GRAPHICS_INDEX 0x3ce 21 #define VGA_GRAPHICS_DATA 0x3cf 22 23 // CRTC registers 24 #define VGA_CRTC_INDEX 0x3d4 25 #define VGA_CRTC_DATA 0x3d5 26 27 // attribute registers 28 #define VGA_ATTRIBUTE_READ 0x3c1 29 #define VGA_ATTRIBUTE_WRITE 0x3c0 30 31 // color registers 32 #define VGA_COLOR_STATE 0x3c7 33 #define VGA_COLOR_READ_MODE 0x3c7 34 #define VGA_COLOR_WRITE_MODE 0x3c8 35 #define VGA_COLOR_DATA 0x3c9 36 #define VGA_COLOR_MASK 0x3c6 37 38 #endif /* VGA_H */ 39