The Pedigree Project  0.1
Bonito64.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 "Bonito64.h"
21 
22 Bonito64 Bonito64::m_Instance;
23 
24 Machine &Machine::instance()
25 {
26  return Bonito64::instance();
27 }
28 
30 {
31  m_Serial[0].setBase(0x1fd003f8);
32  m_Serial[1].setBase(0x1fd002f8);
33  m_bInitialised = true;
34 }
36 {
37  return &m_Serial[n];
38 }
40 {
41  return 2;
42 }
44 {
45  return &m_Vga;
46 }
48 {
49  return 1;
50 }
51 IrqManager *Bonito64::getIrqManager()
52 {
53  // TODO
54  return 0;
55 }
57 {
58  // TODO return m_SchedulerTimer;
59  return 0;
60 }
62 {
63  // TODO return m_Timer;
64  return 0;
65 }
67 {
68  return &m_Keyboard;
69 }
70 
71 Bonito64::Bonito64() : m_Vga()
72 {
73 }
75 {
76 }
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