summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2012-11-30 22:41:32 +0000
committerjfv <jfv@FreeBSD.org>2012-11-30 22:41:32 +0000
commit6b9e611792ee4f48ab4641666945e218339e3da7 (patch)
tree46b7eee970c27750e0fe4c22042ef281abbedb25 /sys/dev/ixgbe/ixgbe.h
parent80b1e3c11a8669b594b04bbf14358a75c69c6117 (diff)
downloadFreeBSD-src-6b9e611792ee4f48ab4641666945e218339e3da7.zip
FreeBSD-src-6b9e611792ee4f48ab4641666945e218339e3da7.tar.gz
Patch #3 - Add a new ioctl to access SFP+ module diagnostic
data via the I2C routines in shared code.
Diffstat (limited to 'sys/dev/ixgbe/ixgbe.h')
-rw-r--r--sys/dev/ixgbe/ixgbe.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/ixgbe/ixgbe.h b/sys/dev/ixgbe/ixgbe.h
index 25d364d..fa00239 100644
--- a/sys/dev/ixgbe/ixgbe.h
+++ b/sys/dev/ixgbe/ixgbe.h
@@ -199,6 +199,9 @@
#define IXGBE_BR_SIZE 4096
#define IXGBE_QUEUE_MIN_FREE 32
+/* IOCTL define to gather SFP+ Diagnostic data */
+#define SIOCGI2C SIOCGIFGENERIC
+
/* Offload bits in mbuf flag */
#if __FreeBSD_version >= 800000
#define CSUM_OFFLOAD (CSUM_IP|CSUM_TCP|CSUM_UDP|CSUM_SCTP)
@@ -241,6 +244,13 @@ typedef struct _ixgbe_vendor_info_t {
unsigned int index;
} ixgbe_vendor_info_t;
+/* This is used to get SFP+ module data */
+struct ixgbe_i2c_req {
+ u8 dev_addr;
+ u8 offset;
+ u8 len;
+ u8 data[8];
+};
struct ixgbe_tx_buf {
u32 eop_index;
OpenPOWER on IntegriCloud