summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-07-21 21:36:41 +0000
committerStefan Reinauer <stepan@openbios.org>2009-07-21 21:36:41 +0000
commit4d933dd2d686879e0c27839d3f9046e348580da8 (patch)
treebd1a1d18a8d61b967f2492760cdbdf8f12fb54e8 /src/include
parentc366cd065001269afe92aa8eb8d6adf51fbd0bc7 (diff)
downloadcoreboot-4d933dd2d686879e0c27839d3f9046e348580da8.tar.xz
Rewrite interrupt handling in coreboot to be more comprehensible and
more flexible. Also some minore device allocator cleanups that sneaked in. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4452 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include')
-rw-r--r--src/include/device/pci.h2
-rw-r--r--src/include/pc80/i8259.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/include/device/pci.h b/src/include/device/pci.h
index ad005cfe89..df9e80dbbb 100644
--- a/src/include/device/pci.h
+++ b/src/include/device/pci.h
@@ -73,7 +73,7 @@ unsigned pci_find_capability(device_t dev, unsigned cap);
struct resource *pci_get_resource(struct device *dev, unsigned long index);
void pci_dev_set_subsystem(device_t dev, unsigned vendor, unsigned device);
void pci_dev_init(struct device *dev);
-void pci_level_irq(unsigned char intNum);
+
void pci_assign_irqs(unsigned bus, unsigned slot,
const unsigned char pIntAtoD[4]);
diff --git a/src/include/pc80/i8259.h b/src/include/pc80/i8259.h
index 48e8df58d9..c55ae21557 100644
--- a/src/include/pc80/i8259.h
+++ b/src/include/pc80/i8259.h
@@ -22,4 +22,8 @@
void setup_i8259(void);
+#define IRQ_LEVEL_TRIGGERED 1
+#define IRQ_EDGE_TRIGGERED 0
+void i8259_configure_irq_trigger(int int_num, int is_level_triggered);
+
#endif /* PC80_I8259_H */