Go to the documentation of this file.
18 #ifndef __SERVER_VIDEO_VGA_H
19 #define __SERVER_VIDEO_VGA_H
21 #include <FreeNOS/System.h>
34 #define VGA_PADDR (0xb8000)
37 #define VGA_IOADDR 0x3d4
40 #define VGA_IODATA 0x3d5
48 #define VGA_ATTR(front,back) \
49 (((back & 0xf) << 4) | ((front & 0xf)))
58 #define VGA_CHAR(ch,front,back) \
59 ((VGA_ATTR(front,back) << 8) | (ch & 0xff))
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Read video memory.
Input/Output operations specific to the ARM architecture.
virtual FileSystem::Result initialize()
Initialize the VGA device.
Colors
VGA color attributes.
Abstract device class interface.
u16 * vga
VGA video memory address.
Size height
Number of characters vertically.
unsigned short u16
Unsigned 16-bit number.
Abstract Input/Output buffer.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
VGA(const u32 inode, const Size width=80, const Size height=25)
Class constructor function.
virtual FileSystem::Result write(IOBuffer &buffer, Size &size, const Size offset)
Write video memory.
Result
Result code for filesystem Actions.
Arch::IO m_io
Port I/O object.
Video Graphics Array (VGA) support.
Size width
Number of characters horizontally.