The Pedigree Project  0.1
kernel/machine/arm_versatile/Vga.h
1 /*
2  * Copyright (c) 2008-2014, Pedigree Developers
3  *
4  * Please see the CONTRIB file in the root of the source tree for a full
5  * list of contributors.
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 #ifndef MACHINE_ARM_VERSATILE_VGA_H
21 #define MACHINE_ARM_VERSATILE_VGA_H
22 
23 #include "pedigree/kernel/machine/Vga.h"
24 
28 class ArmVersatileVga : public Vga
29 {
30  public:
32  virtual ~ArmVersatileVga();
33 
34  char read();
35  void write(char c);
36 
45  virtual bool setMode(int mode);
46 
52  {
53  return false;
54  };
55 
60  bool isMode(size_t nCols, size_t nRows, bool bIsText, size_t nBpp = 0)
61  {
62  return false;
63  };
64 
70  {
71  return false;
72  };
73 
77  size_t getNumCols()
78  {
79  return 80;
80  };
81 
85  size_t getNumRows()
86  {
87  return 25;
88  };
89 
93  void rememberMode(){};
94 
98  void restoreMode(){};
99 
110  void pokeBuffer(uint8_t *pBuffer, size_t nBufLen){};
111 
120  void peekBuffer(uint8_t *pBuffer, size_t nBufLen){};
121 
127  void moveCursor(size_t nX, size_t nY){};
128 
129  operator uint16_t *() const
130  {
131  return 0;
132  }
133 };
134 
135 #endif
void moveCursor(size_t nX, size_t nY)
virtual bool setMode(int mode)
bool isMode(size_t nCols, size_t nRows, bool bIsText, size_t nBpp=0)
void pokeBuffer(uint8_t *pBuffer, size_t nBufLen)
void peekBuffer(uint8_t *pBuffer, size_t nBufLen)