The Pedigree Project  0.1
Db1500.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_AU1500_DB1500_H
21 #define MACHINE_AU1500_DB1500_H
22 
23 #include "../Serial.h"
24 #include "../Vga.h"
25 #include "pedigree/kernel/machine/Machine.h"
26 
27 class Db1500 : public Machine
28 {
29  public:
30  inline static Db1500 &instande()
31  {
32  return m_Instance;
33  }
34 
35  virtual void initialise();
36  virtual Serial *getSerial(size_t n);
37  virtual size_t getNumSerial();
38  virtual Vga *getVga(size_t n);
39  virtual size_t getNumVga();
40  virtual IrqManager *getIrqManager();
42  virtual Timer *getTimer();
43 
44  private:
48  Db1500();
49  Db1500(const Db1500 &);
50  Db1500 &operator=(const Db1500);
54  virtual ~Db1500();
55 
56  Au1500Serial m_Serial[2];
57  // SchedulerTimer m_SchedulerTimer;
58  // Timer m_Timer;
59  Au1500Vga m_Vga;
60 
61  static Db1500 m_Instance;
62 };
63 
64 #endif
virtual Serial * getSerial(size_t n)
Definition: Db1500.cc:33
virtual void initialise()
Definition: Db1500.cc:29
virtual ~Db1500()
Definition: Db1500.cc:66
virtual size_t getNumVga()
Definition: Db1500.cc:45
virtual SchedulerTimer * getSchedulerTimer()
Definition: Db1500.cc:54
Db1500()
Definition: Db1500.cc:63
virtual size_t getNumSerial()
Definition: Db1500.cc:37
Definition: Db1500.h:27
virtual Timer * getTimer()
Definition: Db1500.cc:58
virtual Vga * getVga(size_t n)
Definition: Db1500.cc:41