Jean Delvare
ed1356ea0b
Set version to 3.0.2.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5453 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
0d84adf510
Add missing includes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5452 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
0e972ad9fd
Add support for reading back to short writes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5394 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
35a929de32
Make reading back the written value optional.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5393 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
f9bad5666d
Clarify the requirements of data value masking.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5392 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
0c270e09de
Allow masking on short writes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5391 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
c797cbaaeb
Set the data value mask with -m. The old method is still supported for
compatibility, but is considered deprecated and is no longer documented.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5390 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
8cc99d7f45
Only export the ceil function from POSIX. By default, POSIX exports
everything, and this happens to generate warnings when using perl 5.10.0.
That's a perl bug, but we can still work around it and avoid potential
future issues of the same kind.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5388 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
aad070abd0
Drop I2C_FUNC_SMBUS_*I2C_BLOCK_2 defines, as was just done in the
Linux 2.6 kernel.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5361 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
6a2f709549
Stop on i2cset error.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5293 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
cc17bf04ca
Behave properly when i2c-stub is already loaded.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5292 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
d34a2c94fc
Add support for little-endian word hexdumps.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5287 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
f575d048f4
Add support for partial dumps.
Report if only garbage is found in dump file.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5280 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
54cee12770
Use consistent transaction names (based on the SMBus specification)
when complaining about a missing adapter functionality.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5242 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
fc38f35ce4
Share the error string between all functionality checks.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5241 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
f67174055a
No need to print the i2c bus number in functionality error message.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5240 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
9160a95ad0
Split the functionality checking code into a separate function for
clarity.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5239 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
cc723a46f7
Close device file before we exit.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5238 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
c3d335575f
Add support for short writes (SMBus send byte).
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5237 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
7ad89259ab
List the optional command line parameters in a consistent way.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5236 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
8cc44b8c9c
Whitespace cleanups.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5210 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
8603e2aab2
Move the confirmation to a separate function, as is done in i2cget
already.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5209 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
87154f13cc
Move the functionality checks to a separate function, as is done in
i2cget already.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5208 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
68fb2e6229
Minor optimizations and cleanups.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5207 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
2751626db8
Unknown options are fatal, so label them error rather than warning.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5206 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
aa78242d6c
More user-friendly error messages for wrong I2C bus parameter.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5205 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
bdfc87d724
Move the chip address parsing to a common function for consistency.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5204 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
2e942d16a5
Consistently restrict the allowed I2C device address to 0x03 - 0x77.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5203 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
b331c042c8
Move print_i2c_busses from i2cbusses.c to i2cdetect.c, as it is
only used there.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5202 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
2c57ef91a2
Unify and shorten the usage messages. The details can be found in
the man pages so no need to be verbose.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5201 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
b68190b426
Don't print the list of i2c buses as part of the help.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5200 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
adc03e3cf3
Make the includes order correct and consistent accross all tools.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5199 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
f6a402514f
Minor consistency fix.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5198 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
386982ae7f
Update.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5197 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
e34ebe15e7
Limit the stack usage in gather_i2c_busses:
* Reuse variables where possible.
* Don't assign things we don't need in sscanf.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5196 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
31e9db10d0
Make it possible to pass the i2c bus by name instead of by number. As
there is no guarantee that i2c bus numbering will stay the same over
time (for example if hardware is added of removed, or simply due to
loading the drivers in a different order), passing the i2c bus by name
is more robust.
The i2c bus names are supposed to be unique. If you request a bus by
name and this name happens to not be unique, then the tools will play
it safe and quit. This is better than writing to the wrong device.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5195 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
f7b64dce7e
Split print_i2c_busses into a gathering part and a printing part.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5194 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
eda5918d0f
Refactor the handling of the I2CBUS parameter. This ensures more
consistency accross the i2c tools.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5193 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
3b4d0d1940
Set version to SVN.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5173 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
d4e25f3d8f
Remove history, it belongs to SVN.
Don't tell people to contact me, they'll find out by themselves if
they want to.
Make the header text shorter.
Bump version to 1.6.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5172 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
85443f4b8f
Set version to 3.0.1.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5167 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
b8a49711c0
Fix directory creation.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5166 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
3fd5ca4133
Minor rewording.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5165 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
aed7163f2b
Update the FSF address.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5164 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
ef4592db09
Drop the trailing .pl from all perl script names.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5162 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
a605ad3a0a
Cache the parsed hexdumps so that each dump file is only parsed once.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5161 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
a8a3f9c7ac
Drop $opt_body, name was confusing and we can easily do without it.
Update header comment, drop redundant command line interface documentation.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5160 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
3e5a8f656d
Make command line parsing more robust.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5159 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
5ba98d1c2c
More coding-style fixes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5158 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
a56e6baf47
Patch from Trent Piepho:
This adds a "-x" option to decode-dimms.pl, which lets one supply a list of
file names to read SPD data from. It can parse various hexdump formats, such
as the output from i2cdump, eeprog, and the util-linux and Busybox hexdump
progams run on a sysfs eeprom file.
Useful for decoding SPD data that you cut and pasted from a manufacturer's
website or from a DIMM installed on an embedded system that does not have
perl/etc, but does have a serial console with busybox.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5157 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago