coreboot-kgpe-d16/util/getpir
Marc Bertens acc3749644 image parsing for getpir
when adding for example build/coreboot_ram as parameter
it looks in the file for the PIRQ table prints it to stdout 
and shows if the checksum is correct. 

getpir works as before without any commandline parameters.

This is very handy for developing a PIRQ table.

Signed-off-by: Marc Bertens <mbertens@xs4all.nl>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5716 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2010-08-17 11:32:21 +00:00
..
Makefile This patch changes following in getpir application. 2009-09-26 16:18:22 +00:00
README Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
checkpir.c util/ renames 2008-01-18 15:34:24 +00:00
checksum.c Jeremy Jackson wrote: 2007-04-11 18:44:42 +00:00
checksum.h Jeremy Jackson wrote: 2007-04-11 18:44:42 +00:00
code_gen.c fix compilation issues for pirq checker tool (trivial) 2009-09-10 11:21:48 +00:00
code_gen.h Jeremy Jackson wrote: 2007-04-11 18:44:42 +00:00
getpir.c image parsing for getpir 2010-08-17 11:32:21 +00:00
pirq_routing.h fix compilation issues for pirq checker tool (trivial) 2009-09-10 11:21:48 +00:00

README

ABOUT:

This utility will help to create irq_table.c file, that is very hard to create
manually, specialy when you are testing new motherboards, changing your
hardware often, placing new cards, etc..

USAGE:

Steps
1. make distclean;
2. make getpir
3. ./getpir

   Will dump irq table to the file called irq_tables.c, ready to use with
   coreboot. Just move the file to corresponding place in the coreboot tree.


4. CHECKING CUSTOM irq_tables.c:

   make checkpir
   ./checkpir

   checkpir.c Will verify the irq_tables.c, currently it only checks the
   checksum. In case of wrong checksum, a good value is proposed, so you can
   edit irq_tables.c manualy and replace checksum.


Do not run make checkpir and ./checkpir directly because it needs to be linked
to irq_table.o first.