Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame^] | 1 | /* |
| 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 Ferris | 2abfa9e | 2021-11-01 16:26:06 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_VIRTIO_I2C_H |
| 8 | #define _UAPI_LINUX_VIRTIO_I2C_H |
| 9 | #include <linux/const.h> |
| 10 | #include <linux/types.h> |
Christopher Ferris | a479261 | 2022-01-10 13:51:15 -0800 | [diff] [blame] | 11 | #define VIRTIO_I2C_F_ZERO_LENGTH_REQUEST 0 |
Christopher Ferris | 2abfa9e | 2021-11-01 16:26:06 -0700 | [diff] [blame] | 12 | #define VIRTIO_I2C_FLAGS_FAIL_NEXT _BITUL(0) |
Christopher Ferris | a479261 | 2022-01-10 13:51:15 -0800 | [diff] [blame] | 13 | #define VIRTIO_I2C_FLAGS_M_RD _BITUL(1) |
Christopher Ferris | 2abfa9e | 2021-11-01 16:26:06 -0700 | [diff] [blame] | 14 | struct virtio_i2c_out_hdr { |
| 15 | __le16 addr; |
| 16 | __le16 padding; |
| 17 | __le32 flags; |
| 18 | }; |
| 19 | struct virtio_i2c_in_hdr { |
| 20 | __u8 status; |
| 21 | }; |
| 22 | #define VIRTIO_I2C_MSG_OK 0 |
| 23 | #define VIRTIO_I2C_MSG_ERR 1 |
| 24 | #endif |