blob: f33e557431c1be19710d5c498b0f5936d4139481 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris2abfa9e2021-11-01 16:26:06 -07007#ifndef _UAPI_LINUX_VIRTIO_I2C_H
8#define _UAPI_LINUX_VIRTIO_I2C_H
9#include <linux/const.h>
10#include <linux/types.h>
Christopher Ferrisa4792612022-01-10 13:51:15 -080011#define VIRTIO_I2C_F_ZERO_LENGTH_REQUEST 0
Christopher Ferris2abfa9e2021-11-01 16:26:06 -070012#define VIRTIO_I2C_FLAGS_FAIL_NEXT _BITUL(0)
Christopher Ferrisa4792612022-01-10 13:51:15 -080013#define VIRTIO_I2C_FLAGS_M_RD _BITUL(1)
Christopher Ferris2abfa9e2021-11-01 16:26:06 -070014struct virtio_i2c_out_hdr {
15 __le16 addr;
16 __le16 padding;
17 __le32 flags;
18};
19struct virtio_i2c_in_hdr {
20 __u8 status;
21};
22#define VIRTIO_I2C_MSG_OK 0
23#define VIRTIO_I2C_MSG_ERR 1
24#endif