summaryrefslogtreecommitdiff
path: root/sys/dev/cxgb/cxgb_ioctl.h
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2009-03-10 19:22:45 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2009-03-10 19:22:45 +0000
commitf2d8ff04feec8f1a44edde6789c800ad07a22648 (patch)
tree92e5cdafb80789aa8be002e44c497e35ee6791b6 /sys/dev/cxgb/cxgb_ioctl.h
parentd8a293c142d8155246300db65e2a445896705e51 (diff)
Notes
Diffstat (limited to 'sys/dev/cxgb/cxgb_ioctl.h')
-rw-r--r--sys/dev/cxgb/cxgb_ioctl.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/dev/cxgb/cxgb_ioctl.h b/sys/dev/cxgb/cxgb_ioctl.h
index 7cbb7460adb25..e4b487505a068 100644
--- a/sys/dev/cxgb/cxgb_ioctl.h
+++ b/sys/dev/cxgb/cxgb_ioctl.h
@@ -57,6 +57,8 @@ enum {
CH_SET_HW_SCHED,
CH_LOAD_BOOT,
CH_CLEAR_STATS,
+ CH_GET_UP_LA,
+ CH_GET_UP_IOQS,
};
/* statistics categories */
@@ -188,6 +190,31 @@ struct ch_eeprom {
uint8_t *data;
};
+#define LA_BUFSIZE (2 * 1024)
+struct ch_up_la {
+ uint32_t stopped;
+ uint32_t idx;
+ uint32_t bufsize;
+ uint32_t *data;
+};
+
+struct t3_ioq_entry {
+ uint32_t ioq_cp;
+ uint32_t ioq_pp;
+ uint32_t ioq_alen;
+ uint32_t ioq_stats;
+};
+
+#define IOQS_BUFSIZE (1024)
+struct ch_up_ioqs {
+ uint32_t ioq_rx_enable;
+ uint32_t ioq_tx_enable;
+ uint32_t ioq_rx_status;
+ uint32_t ioq_tx_status;
+ uint32_t bufsize;
+ struct t3_ioq_entry *data;
+};
+
#define CHELSIO_SETREG _IOW('f', CH_SETREG, struct ch_reg)
#define CHELSIO_GETREG _IOWR('f', CH_GETREG, struct ch_reg)
#define CHELSIO_GETMTUTAB _IOR('f', CH_GETMTUTAB, struct ch_mtus)
@@ -210,4 +237,6 @@ struct ch_eeprom {
#define CHELSIO_GET_MIIREG _IOWR('f', CH_GET_MIIREG, struct ch_mii_data)
#define CHELSIO_SET_MIIREG _IOW('f', CH_SET_MIIREG, struct ch_mii_data)
#define CHELSIO_GET_EEPROM _IOWR('f', CH_GET_EEPROM, struct ch_eeprom)
+#define CHELSIO_GET_UP_LA _IOWR('f', CH_GET_UP_LA, struct ch_up_la)
+#define CHELSIO_GET_UP_IOQS _IOWR('f', CH_GET_UP_IOQS, struct ch_up_ioqs)
#endif