The Pedigree Project  0.1
kernel/machine/arm_beagle/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_BEAGLE_VGA_H
21 #define MACHINE_ARM_BEAGLE_VGA_H
22 
23 #include "pedigree/kernel/machine/Vga.h"
24 
26 class ArmBeagleVga : public Vga
27 {
28  public:
29  ArmBeagleVga();
30  virtual ~ArmBeagleVga();
31 
32  char read();
33  void write(char c);
34 
38  virtual void setControl(VgaControl which)
39  {
40  }
41 
45  virtual void clearControl(VgaControl which)
46  {
47  }
48 
57  virtual bool setMode(int mode);
58 
64  {
65  return false;
66  };
67 
72  bool isMode(size_t nCols, size_t nRows, bool bIsText, size_t nBpp = 0)
73  {
74  return false;
75  };
76 
82  {
83  return false;
84  };
85 
89  size_t getNumCols()
90  {
91  return 80;
92  };
93 
97  size_t getNumRows()
98  {
99  return 25;
100  };
101 
105  void rememberMode(){};
106 
110  void restoreMode(){};
111 
122  void pokeBuffer(uint8_t *pBuffer, size_t nBufLen){};
123 
132  void peekBuffer(uint8_t *pBuffer, size_t nBufLen){};
133 
139  void moveCursor(size_t nX, size_t nY){};
140 
141  operator uint16_t *() const
142  {
143  return 0;
144  }
145 };
146 
147 #endif
virtual bool setMode(int mode)
void peekBuffer(uint8_t *pBuffer, size_t nBufLen)
bool isMode(size_t nCols, size_t nRows, bool bIsText, size_t nBpp=0)
virtual void clearControl(VgaControl which)
void pokeBuffer(uint8_t *pBuffer, size_t nBufLen)
void moveCursor(size_t nX, size_t nY)
virtual void setControl(VgaControl which)