From 29800b76eebd10444044b5cfb2269a7566059615 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 21 Apr 2007 18:17:50 +0000 Subject: Make the output of getpir look a bit less crappy (trivial). Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2612 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/getpir/code_gen.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'util/getpir/code_gen.c') 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"); -- cgit v1.2.3