Make the output of getpir look a bit less crappy (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2612 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
9d5eec13a9
commit
29800b76ee
|
@ -3,8 +3,11 @@
|
|||
#include "pirq_routing.h"
|
||||
|
||||
static char *preamble[] = {
|
||||
"/* This file was generated by getpir.c, do not modify! \n (but if you do, please run checkpir on it to verify)\n",
|
||||
" * Contains the IRQ Routing Table dumped directly from your memory, which BIOS sets up\n",
|
||||
"/* This file was generated by getpir.c, do not modify!\n",
|
||||
" * (but if you do, please run checkpir on it to verify)\n",
|
||||
" *\n",
|
||||
" * Contains the IRQ Routing Table dumped directly from your\n",
|
||||
" * memory, which BIOS sets up.\n",
|
||||
" *\n",
|
||||
" * Documentation at: http://www.microsoft.com/hwdev/busbios/PCIIRQ.HTM\n */\n\n",
|
||||
"#ifdef GETPIR\n",
|
||||
|
@ -33,7 +36,7 @@ void code_gen(char *filename, struct irq_routing_table *rt)
|
|||
while (*code)
|
||||
fprintf(fpir, "%s", *code++);
|
||||
|
||||
fprintf(fpir, "\t32+16*%d, /* there can be total %d devices on the bus */\n",
|
||||
fprintf(fpir, "\t32+16*%d, /* There can be total %d devices on the bus */\n",
|
||||
ts, ts);
|
||||
fprintf(fpir, "\t0x%02x, /* Where the interrupt router lies (bus) */\n",
|
||||
rt->rtr_bus);
|
||||
|
@ -46,7 +49,7 @@ void code_gen(char *filename, struct irq_routing_table *rt)
|
|||
fprintf(fpir, "\t%#x, /* Crap (miniport) */\n",
|
||||
rt->miniport_data);
|
||||
fprintf(fpir, "\t{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */\n");
|
||||
fprintf(fpir, "\t%#x, /* u8 checksum , this hase to set to some value that would give 0 after the sum of all bytes for this structure (including checksum) */\n",
|
||||
fprintf(fpir, "\t%#x, /* u8 checksum. This has to be set to some\n value that would give 0 after the sum of all\n bytes for this structure (including checksum) */\n",
|
||||
rt->checksum);
|
||||
fprintf(fpir, "\t{\n");
|
||||
fprintf(fpir, "\t\t/* bus, dev|fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */\n");
|
||||
|
|
Loading…
Reference in New Issue