summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-04-21 18:17:50 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-04-21 18:17:50 +0000
commit29800b76eebd10444044b5cfb2269a7566059615 (patch)
treee6185bba7277555839f8346704281fe6e6cb50d6
parent9d5eec13a9aa1034323c9d9b37593c565ca57b6d (diff)
downloadcoreboot-29800b76eebd10444044b5cfb2269a7566059615.tar.xz
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
-rw-r--r--util/getpir/code_gen.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/util/getpir/code_gen.c b/util/getpir/code_gen.c
index a458eae27a..6d9a7e4c95 100644
--- a/util/getpir/code_gen.c
+++ b/util/getpir/code_gen.c
@@ -3,10 +3,13 @@
#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",
- " * Documentation at : http://www.microsoft.com/hwdev/busbios/PCIIRQ.HTM\n*/\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",
"#include \"pirq_routing.h\"\n",
"#else\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");