aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgbe/t4_ioctl.h
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2012-10-10 17:13:46 +0000
committerNavdeep Parhar <np@FreeBSD.org>2012-10-10 17:13:46 +0000
commit8d92e1db93d896b847fb2e0b713d15c2b88a8ff5 (patch)
treef0419097d69c579d2d381de967d32f8c3bfe84e4 /sys/dev/cxgbe/t4_ioctl.h
parentaa95b6533b1e10c25f8b4fc94b1c04847bb24955 (diff)
Notes
Diffstat (limited to 'sys/dev/cxgbe/t4_ioctl.h')
-rw-r--r--sys/dev/cxgbe/t4_ioctl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/t4_ioctl.h b/sys/dev/cxgbe/t4_ioctl.h
index 2a3fa3998ef14..45c2fccb48c2d 100644
--- a/sys/dev/cxgbe/t4_ioctl.h
+++ b/sys/dev/cxgbe/t4_ioctl.h
@@ -49,6 +49,7 @@ enum {
T4_GET_SGE_CONTEXT, /* get SGE context for a queue */
T4_LOAD_FW, /* flash firmware */
T4_GET_MEM, /* read memory */
+ T4_GET_I2C, /* read from i2c addressible device */
};
struct t4_reg {
@@ -69,6 +70,14 @@ struct t4_data {
uint8_t *data;
};
+struct t4_i2c_data {
+ uint8_t port_id;
+ uint8_t dev_addr;
+ uint8_t offset;
+ uint8_t len;
+ uint8_t data[8];
+};
+
/*
* A hardware filter is some valid combination of these.
*/
@@ -224,4 +233,5 @@ struct t4_mem_range {
struct t4_sge_context)
#define CHELSIO_T4_LOAD_FW _IOW('f', T4_LOAD_FW, struct t4_data)
#define CHELSIO_T4_GET_MEM _IOW('f', T4_GET_MEM, struct t4_mem_range)
+#define CHELSIO_T4_GET_I2C _IOWR('f', T4_GET_I2C, struct t4_i2c_data)
#endif