diff options
author | Martin Roth <martinroth@google.com> | 2017-06-01 11:39:59 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-07-07 16:05:16 +0000 |
commit | 898a77521de97b1e4af9458b82bcc21bc7a6e799 (patch) | |
tree | 4565d11cc5bbed7729b580424006e1745dc0cfc9 /src/arch/x86/include | |
parent | 50bda05e46d5f34f6519a7814e843d1e777ecf10 (diff) |
arch/*: Update Kconfig symbol usage
- Update all symbols to use IS_ENABLED()
- Update non-romcc usage to use 'if' instead of '#if' where it
makes sense.
Change-Id: I5a84414d2d1631e35ac91efb67a0d4c1f673bf85
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20005
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/arch/x86/include')
-rw-r--r-- | src/arch/x86/include/arch/pirq_routing.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/arch/x86/include/arch/pirq_routing.h b/src/arch/x86/include/arch/pirq_routing.h index ed80ce53ac..5236b90f7e 100644 --- a/src/arch/x86/include/arch/pirq_routing.h +++ b/src/arch/x86/include/arch/pirq_routing.h @@ -24,10 +24,9 @@ * This tells us that in the PIRQ table, we are going to have 4 link-bitmap * entries per PCI device * It is fixed at 4: INTA, INTB, INTC, and INTD - * CAUTION: If you change this, pirq_routing will not work correctly*/ + * CAUTION: If you change this, pirq_routing will not work correctly */ #define MAX_INTX_ENTRIES 4 -#if IS_ENABLED(CONFIG_GENERATE_PIRQ_TABLE) #include <stdint.h> #define PIRQ_SIGNATURE (('$' << 0) + ('P' << 8) + ('I' << 16) + ('R' << 24)) @@ -60,13 +59,7 @@ unsigned long copy_pirq_routing_table(unsigned long addr, const struct irq_routing_table *routing_table); unsigned long write_pirq_routing_table(unsigned long start); -#if IS_ENABLED(CONFIG_PIRQ_ROUTE) void pirq_assign_irqs(const unsigned char pirq[CONFIG_MAX_PIRQ_LINKS]); -#endif - -#else -#define copy_pirq_routing_table(start) (start) -#define write_pirq_routing_table(start) (start) -#endif #endif /* ARCH_PIRQ_ROUTING_H */ + |