summaryrefslogtreecommitdiff
path: root/util/getpir
diff options
context:
space:
mode:
Diffstat (limited to 'util/getpir')
-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");