coreboot-kgpe-d16/util
Uwe Hermann 3acf31e4ea Further code simplifications and improvements.
Add command line option handling code. The following options
are defined at the moment:

-d|--dump      Dump Super I/O registers.
-V|--verbose   Verbose mode.
-v|--version   Show the superiotool version.
-h|--help      Show a short help text.

Per default (no options) we just probe for a Super I/O
and print its vendor, name, ID, version, and config port.

Example:

$ ./superiotool
Found SMSC FDC37N769 Super I/O (id=0x28, rev=0x01) at port=0x03f0

$ ./superiotool -d
Found SMSC FDC37N769 Super I/O (id=0x28, rev=0x01) at port=0x03f0
idx 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
val 20 90 80 f4 00 00 ff 00 00 00 40 00 0e 28 01 00 00 00 00 00 02 00 01 03 00 00 00 00 00 00 80 00 00 00 00 00 00 ba 00 00 03 00 00 23 03 03 00 00
def 28 9c 88 70 00 00 ff 00 00 00 00 00 02 28 NA 00 00 80 RR RR NA NA NA 03 RR RR RR RR RR RR 80 00 3c RR RR 00 00 00 00 00 00 00 RR 00 00 03 00 00

$ ./superiotool -s
./superiotool: invalid option -- s

$ ./superiotool -h
Usage: superiotool [-d] [-V] [-v] [-h]

$ ./superiotool -v
superiotool 0.1


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@2788 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2007-09-19 01:55:35 +00:00
..
ADLO add ADLO to v2 2006-10-14 21:35:30 +00:00
abuild Revert the image size increasing for abuild. It breaks more boards than 2007-04-25 00:23:39 +00:00
analysis New analysis tool with preliminary source usage information gathering. 2006-07-20 15:35:04 +00:00
buildrom Trivial patch: Make buildrom a little bit more verbose. 2007-04-11 23:36:02 +00:00
dump_mmcr small ts5300 update, fix endian problem in dummmcr. 2006-03-18 00:10:29 +00:00
flashrom Change out/in combinations to pci_read/write_byte in 2007-09-11 15:58:18 +00:00
getpir Update URL for the PCI IRQ Routing Table Specification (trivial). 2007-04-22 01:17:36 +00:00
lbtdump fix lbtdump after last checkin. (trivial) 2007-05-20 17:28:55 +00:00
lxbios Signed-off-by: Stefan Reinauer <stepan@coresystems.de> 2007-07-12 16:35:42 +00:00
mptable adapt to freebios v2. still doesnt handle comments correctly. 2005-01-04 15:16:19 +00:00
newconfig - fix dependency rule for Makefile and Makefile.settings 2006-08-11 06:49:39 +00:00
nrv2b - Minor mod to reset16.inc to work with newer binutils hopefully this works with older ones... 2003-06-17 08:42:17 +00:00
optionlist get rid of the border. 2006-10-20 22:21:18 +00:00
options Trivial patch: 2007-04-06 12:14:51 +00:00
resetcf epia-m support 2004-10-06 17:33:54 +00:00
romcc fix romcc preprocessor bug 2006-12-02 16:48:48 +00:00
superiotool Further code simplifications and improvements. 2007-09-19 01:55:35 +00:00
vgabios Adds support for understanding bus:dev.func to the -d option of testbios 2006-04-23 19:16:09 +00:00