aboutsummaryrefslogtreecommitdiff
path: root/original/uapi/linux/virtio_i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'original/uapi/linux/virtio_i2c.h')
-rw-r--r--original/uapi/linux/virtio_i2c.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/original/uapi/linux/virtio_i2c.h b/original/uapi/linux/virtio_i2c.h
index 7c6a6fc..acf3b60 100644
--- a/original/uapi/linux/virtio_i2c.h
+++ b/original/uapi/linux/virtio_i2c.h
@@ -11,9 +11,15 @@
#include <linux/const.h>
#include <linux/types.h>
+/* Virtio I2C Feature bits */
+#define VIRTIO_I2C_F_ZERO_LENGTH_REQUEST 0
+
/* The bit 0 of the @virtio_i2c_out_hdr.@flags, used to group the requests */
#define VIRTIO_I2C_FLAGS_FAIL_NEXT _BITUL(0)
+/* The bit 1 of the @virtio_i2c_out_hdr.@flags, used to mark a buffer as read */
+#define VIRTIO_I2C_FLAGS_M_RD _BITUL(1)
+
/**
* struct virtio_i2c_out_hdr - the virtio I2C message OUT header
* @addr: the controlled device address