VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/DevApic.h@ 37477

Last change on this file since 37477 was 37477, checked in by vboxsync, 13 years ago

DevAPIC: Split out the IO-APIC into a separate source file.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mergeinfo set to (toggle deleted branches)
    /branches/VBox-3.0/src/VBox/Devices/PC/DevAPIC.cpp58652,​70973
    /branches/VBox-3.2/src/VBox/Devices/PC/DevAPIC.cpp66309,​66318
    /branches/VBox-4.0/src/VBox/Devices/PC/DevAPIC.cpp70873
File size: 2.5 KB
Line 
1/* $Id: DevApic.h 37477 2011-06-15 17:18:33Z vboxsync $ */
2/** @file
3 * Advanced Programmable Interrupt Controller (APIC) Device Definitions.
4 */
5
6/*
7 * Copyright (C) 2006-2011 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * --------------------------------------------------------------------
18 *
19 * This code is based on:
20 *
21 * apic.c revision 1.5 @@OSETODO
22 *
23 * APIC support
24 *
25 * Copyright (c) 2004-2005 Fabrice Bellard
26 *
27 * This library is free software; you can redistribute it and/or
28 * modify it under the terms of the GNU Lesser General Public
29 * License as published by the Free Software Foundation; either
30 * version 2 of the License, or (at your option) any later version.
31 *
32 * This library is distributed in the hope that it will be useful,
33 * but WITHOUT ANY WARRANTY; without even the implied warranty of
34 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35 * Lesser General Public License for more details.
36 *
37 * You should have received a copy of the GNU Lesser General Public
38 * License along with this library; if not, write to the Free Software
39 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
40 */
41
42#ifndef ___PC_DevApic_h
43#define ___PC_DevApic_h
44
45/* APIC Local Vector Table */
46#define APIC_LVT_TIMER 0
47#define APIC_LVT_THERMAL 1
48#define APIC_LVT_PERFORM 2
49#define APIC_LVT_LINT0 3
50#define APIC_LVT_LINT1 4
51#define APIC_LVT_ERROR 5
52#define APIC_LVT_NB 6
53
54/* APIC delivery modes */
55#define APIC_DM_FIXED 0
56#define APIC_DM_LOWPRI 1
57#define APIC_DM_SMI 2
58#define APIC_DM_NMI 4
59#define APIC_DM_INIT 5
60#define APIC_DM_SIPI 6
61#define APIC_DM_EXTINT 7
62
63/* APIC destination mode */
64#define APIC_DESTMODE_FLAT 0xf
65#define APIC_DESTMODE_CLUSTER 0x0
66
67#define APIC_TRIGGER_EDGE 0
68#define APIC_TRIGGER_LEVEL 1
69
70#define APIC_LVT_TIMER_PERIODIC (1<<17)
71#define APIC_LVT_MASKED (1<<16)
72#define APIC_LVT_LEVEL_TRIGGER (1<<15)
73#define APIC_LVT_REMOTE_IRR (1<<14)
74#define APIC_INPUT_POLARITY (1<<13)
75#define APIC_SEND_PENDING (1<<12)
76
77#endif
78
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use