20 #ifndef MACHINE_PPC_VGA_H 21 #define MACHINE_PPC_VGA_H 23 #include "pedigree/kernel/machine/Vga.h" 24 #include "pedigree/kernel/processor/MemoryRegion.h" 25 #include "pedigree/kernel/processor/types.h" 30 #define MAX_WIDTH 1024 31 #define MAX_HEIGHT 800 34 #define FONT_HEIGHT 16 39 #define RGB_8(r, g, b) (((r & 0x3) << 6) | ((g & 0x7) << 3) | (b & 0x7)) 40 #define RGB_16(r, g, b) \ 41 (((r & 0x1f) << 11) | ((g & 0x1f) << 6) | ((b & 0x1f) << 1)) 42 #define RGB_32(r, g, b) (0 | r << 24 | g << 16 | b << 8) 44 #error Little endian not implemented here. 85 isMode(
size_t nCols,
size_t nRows,
bool bIsText,
size_t nBpp = 0)
139 virtual void pokeBuffer(uint8_t *pBuffer,
size_t nBufLen);
149 virtual void peekBuffer(uint8_t *pBuffer,
size_t nBufLen);
160 operator uint16_t *()
const 169 void putChar(
char c,
int x,
int y,
unsigned int f,
unsigned int b);
uint16_t m_pTextBuffer[(MAX_WIDTH/FONT_WIDTH)*(MAX_HEIGHT/FONT_HEIGHT)]
virtual void pokeBuffer(uint8_t *pBuffer, size_t nBufLen)
virtual void peekBuffer(uint8_t *pBuffer, size_t nBufLen)
virtual size_t getNumRows()
virtual void restoreMode()
Special memory entity in the kernel's virtual address space.
virtual void rememberMode()
virtual bool isLargestTextMode()
virtual bool setMode(int mode)
virtual size_t getNumCols()
virtual void moveCursor(size_t nX, size_t nY)
virtual bool isMode(size_t nCols, size_t nRows, bool bIsText, size_t nBpp=0)
virtual bool setLargestTextMode()