Author: uwe Date: 2007-04-21 20:17:50 +0200 (Sat, 21 Apr 2007) New Revision: 2612
Modified: trunk/LinuxBIOSv2/util/getpir/code_gen.c Log: 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
Modified: trunk/LinuxBIOSv2/util/getpir/code_gen.c =================================================================== --- trunk/LinuxBIOSv2/util/getpir/code_gen.c 2007-04-14 16:34:32 UTC (rev 2611) +++ trunk/LinuxBIOSv2/util/getpir/code_gen.c 2007-04-21 18:17:50 UTC (rev 2612) @@ -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%5Cn*/%5Cn%5Cn", + " * 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%5Cn */\n\n", "#ifdef GETPIR\n", "#include "pirq_routing.h"\n", "#else\n" @@ -33,7 +36,7 @@ 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 @@ 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");