• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: smbus_read
2ID: 629
3format:
4	field:unsigned short common_type;	offset:0;	size:2;	signed:0;
5	field:unsigned char common_flags;	offset:2;	size:1;	signed:0;
6	field:unsigned char common_preempt_count;	offset:3;	size:1;	signed:0;
7	field:int common_pid;	offset:4;	size:4;	signed:1;
8
9	field:int adapter_nr;	offset:8;	size:4;	signed:1;
10	field:__u16 flags;	offset:12;	size:2;	signed:0;
11	field:__u16 addr;	offset:14;	size:2;	signed:0;
12	field:__u8 command;	offset:16;	size:1;	signed:0;
13	field:__u32 protocol;	offset:20;	size:4;	signed:0;
14	field:__u8 buf[32 + 2];	offset:24;	size:34;	signed:0;
15
16print fmt: "i2c-%d a=%03x f=%04x c=%x %s", REC->adapter_nr, REC->addr, REC->flags, REC->command, __print_symbolic(REC->protocol, { 0, "QUICK" }, { 1, "BYTE" }, { 2, "BYTE_DATA" }, { 3, "WORD_DATA" }, { 4, "PROC_CALL" }, { 5, "BLOCK_DATA" }, { 6, "I2C_BLOCK_BROKEN" }, { 7, "BLOCK_PROC_CALL" }, { 8, "I2C_BLOCK_DATA" })
17