summaryrefslogtreecommitdiff
path: root/util/getpir/pirq_routing.h
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-02-06 14:22:25 -0600
committerPatrick Georgi <pgeorgi@google.com>2014-12-19 21:15:18 +0100
commit6c90f3334e65ff4b0ff4900df77bc33d53beb677 (patch)
tree382969b15e24d133aba4c10733bdf75833c74743 /util/getpir/pirq_routing.h
parentcc47d9dcf8fc918732b3c1e17b6877d5f2f41afe (diff)
util: Remove 'getpir' and 'mptable' tools
They create output in an obsolete form, are not actively maintained, and the quality of the output is not better than randomly copy pasting from other boards. These tools are no longer of any practical value. remove them. Change-Id: I49d7c5c86b908e08a3d79a06f5cb5b28cea1c806 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/5158 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/getpir/pirq_routing.h')
-rw-r--r--util/getpir/pirq_routing.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/util/getpir/pirq_routing.h b/util/getpir/pirq_routing.h
deleted file mode 100644
index 88adc210ba..0000000000
--- a/util/getpir/pirq_routing.h
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef ARCH_PIRQ_ROUTING_H
-#define ARCH_PIRQ_ROUTING_H
-
-#include <stdint.h>
-
-#define PIRQ_SIGNATURE (('$' << 0) + ('P' << 8) + ('I' << 16) + ('R' << 24))
-#define PIRQ_VERSION 0x0100
-
-struct irq_info {
- uint8_t bus, devfn; /* Bus, device and function */
- struct {
- uint8_t link; /* IRQ line ID, chipset dependent, 0=not routed */
- uint16_t bitmap; /* Available IRQs */
- } __attribute__((packed)) irq[4];
- uint8_t slot; /* Slot number, 0=onboard */
- uint8_t rfu;
-} __attribute__((packed));
-
-#if defined(CONFIG_IRQ_SLOT_COUNT)
-#define IRQ_SLOTS_COUNT CONFIG_IRQ_SLOT_COUNT
-#elif (__GNUC__ < 3)
-#define IRQ_SLOTS_COUNT 1
-#else
-#define IRQ_SLOTS_COUNT
-#endif
-
-struct irq_routing_table {
- uint32_t signature; /* PIRQ_SIGNATURE should be here */
- uint16_t version; /* PIRQ_VERSION */
- uint16_t size; /* Table size in bytes */
- uint8_t rtr_bus, rtr_devfn; /* Where the interrupt router lies */
- uint16_t exclusive_irqs; /* IRQs devoted exclusively to PCI usage */
- uint16_t rtr_vendor, rtr_device; /* Vendor and device ID of interrupt router */
- uint32_t miniport_data; /* Miniport data */
- uint8_t rfu[11];
- uint8_t checksum; /* Modulo 256 checksum must give zero */
- struct irq_info slots[IRQ_SLOTS_COUNT];
-} __attribute__((packed));
-
-extern const struct irq_routing_table intel_irq_routing_table;
-
-#ifdef GETPIR
-#define copy_pirq_routing_table(start) (start)
-unsigned long write_pirq_routing_table(unsigned long start);
-#else
-#if CONFIG_HAVE_PIRQ_TABLE==1
-unsigned long copy_pirq_routing_table(unsigned long start);
-unsigned long write_pirq_routing_table(unsigned long start);
-#else
-#define copy_pirq_routing_table(start) (start)
-#define write_pirq_routing_table(start) (start)
-#endif
-#endif
-
-#endif /* ARCH_PIRQ_ROUTING_H */