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))
Input/Output operations specific to the ARM architecture.
Abstract device class interface.
Abstract Input/Output buffer.
Video Graphics Array (VGA) support.
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Read video memory.
virtual FileSystem::Result write(IOBuffer &buffer, Size &size, const Size offset)
Write video memory.
u16 * vga
VGA video memory address.
virtual FileSystem::Result initialize()
Initialize the VGA device.
Size height
Number of characters vertically.
Arch::IO m_io
Port I/O object.
Size width
Number of characters horizontally.
unsigned int u32
Unsigned 32-bit number.
unsigned short u16
Unsigned 16-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
Colors
VGA color attributes.
Result
Result code for filesystem Actions.