fix compilation issues for pirq checker tool (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4629 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
8008f88df8
commit
c8d4a05f8f
|
@ -50,7 +50,7 @@ void code_gen(char *filename, struct irq_routing_table *rt)
|
||||||
fprintf(fpir, "%s", *code++);
|
fprintf(fpir, "%s", *code++);
|
||||||
|
|
||||||
fprintf(fpir, "\t32 + 16 * %d, /* Max. number of devices on the bus */\n",
|
fprintf(fpir, "\t32 + 16 * %d, /* Max. number of devices on the bus */\n",
|
||||||
ts, ts);
|
ts);
|
||||||
fprintf(fpir, "\t0x%02x, /* Interrupt router bus */\n",
|
fprintf(fpir, "\t0x%02x, /* Interrupt router bus */\n",
|
||||||
rt->rtr_bus);
|
rt->rtr_bus);
|
||||||
fprintf(fpir, "\t(0x%02x << 3) | 0x%01x, /* Interrupt router dev */\n",
|
fprintf(fpir, "\t(0x%02x << 3) | 0x%01x, /* Interrupt router dev */\n",
|
||||||
|
|
|
@ -39,6 +39,10 @@ struct irq_routing_table {
|
||||||
|
|
||||||
extern const struct irq_routing_table intel_irq_routing_table;
|
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
|
#if CONFIG_HAVE_PIRQ_TABLE==1
|
||||||
unsigned long copy_pirq_routing_table(unsigned long start);
|
unsigned long copy_pirq_routing_table(unsigned long start);
|
||||||
unsigned long write_pirq_routing_table(unsigned long start);
|
unsigned long write_pirq_routing_table(unsigned long start);
|
||||||
|
@ -46,5 +50,6 @@ unsigned long write_pirq_routing_table(unsigned long start);
|
||||||
#define copy_pirq_routing_table(start) (start)
|
#define copy_pirq_routing_table(start) (start)
|
||||||
#define write_pirq_routing_table(start) (start)
|
#define write_pirq_routing_table(start) (start)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* ARCH_PIRQ_ROUTING_H */
|
#endif /* ARCH_PIRQ_ROUTING_H */
|
||||||
|
|
Loading…
Reference in New Issue