The Pedigree Project  0.1
Apic.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 #if defined(APIC)
21 
22 #include "Apic.h"
23 
24 class Device;
25 class IrqHandler;
26 
27 irq_id_t Apic::registerIsaIrqHandler(uint8_t, IrqHandler *handler, bool bEdge)
28 {
29  // TODO
30  return 0;
31 }
32 irq_id_t Apic::registerPciIrqHandler(IrqHandler *handler, Device *pDevice)
33 {
34  // TODO
35  return 0;
36 }
37 void Apic::acknowledgeIrq(irq_id_t Id)
38 {
39  // TODO
40 }
41 void Apic::unregisterHandler(irq_id_t Id, IrqHandler *handler)
42 {
43  // TODO
44 }
45 void Apic::enable(irq_id_t Id, bool bEnable)
46 {
47  // TODO
48 }
49 bool Apic::initialise()
50 {
51  // TODO
52  return false;
53  /*
54  if (m_LocalApic.initialise(localApic) == false)
55  {
56  ERROR("LocalApic::initialise(): failed");
57  return false;
58  }
59 
60  return true;*/
61 }
62 
63 #endif
Definition: Device.h:43