Commit Graph

5 Commits

Author SHA1 Message Date
Andriy Gapon
cf3a35a755 smbmsg: use a more convenient way of accessing data read from a slave
Developers writing code for accessing /dev/smb may use this base utility
as an example.  Now that SMB_READB, SMB_READW, SMB_PCALL behave as
documented, wwe can use them in a more convenient way than before.

MFC after:	4 weeks
X-MFC after:	r308527
2016-11-11 15:00:13 +00:00
Michael Gmelin
202379af84 Expand SMBUS API to add smbus_trans() function.
Differential Revision:	https://reviews.freebsd.org/D1955
Reviewed by:	adrian, jhb, wblock
Approved by:	adrian, jhb
2015-04-25 16:15:01 +00:00
Joerg Wunsch
cc09a897ee Fix an off-by-one error in the range check for the maximal -i or -o
block size.
2004-05-27 13:31:16 +00:00
Joerg Wunsch
2c2d85914f Fix my own style(9) bugs:
. forward declare all static functions
. add a couple of redundant parens in return statements where they've
  been missing
. remove the space after exit since it's a function
2004-05-17 19:19:08 +00:00
Joerg Wunsch
325bf22bbd This is smbmsg(8), a small utility to send/receive SMBus messages.
Also included is a `bus-probe' modus of operation to help scanning
an I2C bus.
2004-05-17 10:56:05 +00:00