/* * 0 single * 1 smb block */ int tgt_i2cread(int type,unsigned char *addr,int addrlen,unsigned char reg,unsigned char *buf,int count) { int i; int device,offset; char c; device=addr[0]; offset=reg; device |= 1; memset(buf,-1,count); switch(type&0xff) { case I2C_SINGLE: for(i=0;i