The Pedigree Project  0.1
Bonito64.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_MALTA_BONITO64_H
21 #define MACHINE_MALTA_BONITO64_H
22 
23 #include "../Keyboard.h"
24 #include "../Serial.h"
25 #include "../Vga.h"
26 #include "pedigree/kernel/machine/Machine.h"
27 
31 class Bonito64 : public Machine
32 {
33  public:
34  inline static Bonito64 &instance()
35  {
36  return m_Instance;
37  }
38 
39  virtual void initialise();
40  virtual Serial *getSerial(size_t n);
41  virtual size_t getNumSerial();
42  virtual Vga *getVga(size_t n);
43  virtual size_t getNumVga();
44  virtual IrqManager *getIrqManager();
46  virtual Timer *getTimer();
47  virtual Keyboard *getKeyboard();
48 
49  private:
53  Bonito64();
54  Bonito64(const Bonito64 &);
55  Bonito64 &operator=(const Bonito64 &);
59  virtual ~Bonito64();
60 
61  MaltaSerial m_Serial[2];
62  // SchedulerTimer m_SchedulerTimer;
63  // Timer m_Timer;
64  MaltaVga m_Vga;
65  MaltaKeyboard m_Keyboard;
66 
67  static Bonito64 m_Instance;
68 };
69 
70 #endif
virtual void initialise()
Definition: Bonito64.cc:29
virtual ~Bonito64()
Definition: Bonito64.cc:74
virtual Vga * getVga(size_t n)
Definition: Bonito64.cc:43
virtual Serial * getSerial(size_t n)
Definition: Bonito64.cc:35
virtual size_t getNumSerial()
Definition: Bonito64.cc:39
virtual size_t getNumVga()
Definition: Bonito64.cc:47
virtual Keyboard * getKeyboard()
Definition: Bonito64.cc:66
virtual SchedulerTimer * getSchedulerTimer()
Definition: Bonito64.cc:56
Bonito64()
Definition: Bonito64.cc:71
virtual Timer * getTimer()
Definition: Bonito64.cc:61