The Pedigree Project  0.1
Db1500.cc
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 #include "Db1500.h"
21 
22 Db1500 Db1500::m_Instance;
23 
24 Machine &Machine::instance()
25 {
26  return Db1500::instance();
27 }
28 
30 {
31  // NOTE: Needs to set bInitialised to true
32 }
34 {
35  return &m_Serial[n];
36 }
38 {
39  return 2;
40 }
41 Vga *Db1500::getVga(size_t n)
42 {
43  return &m_Vga;
44 }
46 {
47  return 1;
48 }
49 IrqManager *Db1500::getIrqManager()
50 {
51  // TODO
52  return 0;
53 }
55 {
56  // TODO return m_SchedulerTimer;
57 }
59 {
60  // TODO return m_Timer;
61 }
62 
63 Db1500::Db1500() : m_Vga()
64 {
65 }
67 {
68 }
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