aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/generic/ioapic/chip.h
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2012-06-22 11:04:22 +0200
committerSven Schnelle <svens@stackframe.org>2012-07-04 14:43:23 +0200
commitaa03af74f177ba6d13b54b34d96cceec609e889f (patch)
tree36f7fc5e52bd277c5837147d2837252192317325 /src/drivers/generic/ioapic/chip.h
parentc7fb2ae67b0dc3c2c38f8ef630a3a72374440032 (diff)
Add generic IOAPIC driver
Used for automatic generation of IOAPIC interrupt entries. Change-Id: Ia746f01906c840800956ce551306f864e440b6ec Signed-off-by: Sven Schnelle <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/1137 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/drivers/generic/ioapic/chip.h')
-rw-r--r--src/drivers/generic/ioapic/chip.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/drivers/generic/ioapic/chip.h b/src/drivers/generic/ioapic/chip.h
new file mode 100644
index 0000000000..f6b298f077
--- /dev/null
+++ b/src/drivers/generic/ioapic/chip.h
@@ -0,0 +1,32 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2011 Sven Schnelle <svens@stackframe.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef DRIVERS_GENERIC_IOAPIC_CHIP_H
+#define DRIVERS_GENERIC_IOAPIC_CHIP_H
+
+extern struct chip_operations drivers_generic_ioapic_ops;
+struct drivers_generic_ioapic_config {
+ u32 version;
+ u8 apicid;
+ u8 irq_on_fsb;
+ u8 enable_virtual_wire;
+ u8 have_isa_interrupts;
+ u32 base;
+};
+#endif