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#include <config.h>
21
22#if MULTIPROCESSOR
23
24#include "Apic.h"
25
26class Device;
27class HardIrqHandler;
28class IrqHandler;
29class IrqHandlerBase;
30
31irq_id_t Apic::registerIsaIrqHandler(uint8_t, IrqHandler* handler, const IrqPolicy& policy) {
32 // TODO
33 return 0;
34}
35irq_id_t Apic::registerPciIrqHandler(IrqHandler* handler, Device* pDevice,
36 const IrqPolicy& policy) {
37 // TODO
38 return 0;
39}
40irq_id_t Apic::registerHardIsaIrqHandler(uint8_t, HardIrqHandler* handler,
41 const IrqPolicy& policy) {
42 // TODO
43 return 0;
44}
45irq_id_t Apic::registerHardPciIrqHandler(HardIrqHandler* handler, Device* pDevice,
46 const IrqPolicy& policy) {
47 // TODO
48 return 0;
49}
50bool Apic::unregisterHandler(irq_id_t Id, IrqHandlerBase* handler) {
51 // TODO
52 return false;
53}
54void Apic::enable(irq_id_t Id, bool bEnable) {
55 // TODO
56}
57bool Apic::initialise() {
58 // TODO
59 return false;
60 /*
61 if (m_LocalApic.initialise(localApic) == false)
62 {
63 ERROR("LocalApic::initialise(): failed");
64 return false;
65 }
66
67 return true;*/
68}
69
70#endif