FreeBSD kernel CXGB device code
cxgb_ioctl.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ch_reg
 
struct  ch_cntxt
 
struct  ch_desc
 
struct  ch_mem_range
 
struct  ch_qset_params
 
struct  ch_pktsched_params
 
struct  ch_hw_sched
 
struct  ch_mtus
 
struct  ch_pm
 
struct  ch_tcam_word
 
struct  ch_trace
 
struct  ch_ifconf_regs
 
struct  ch_mii_data
 
struct  ch_eeprom
 
struct  ch_up_la
 
struct  t3_ioq_entry
 
struct  ch_up_ioqs
 
struct  ch_filter_tuple
 
struct  ch_filter
 

Macros

#define REGDUMP_SIZE   (4 * 1024)
 
#define LA_BUFSIZE   (2 * 1024)
 
#define IOQS_BUFSIZE   (1024)
 
#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)
 
#define CHELSIO_SETMTUTAB   _IOW('f', CH_SETMTUTAB, struct ch_mtus)
 
#define CHELSIO_SET_PM   _IOW('f', CH_SET_PM, struct ch_pm)
 
#define CHELSIO_GET_PM   _IOR('f', CH_GET_PM, struct ch_pm)
 
#define CHELSIO_READ_TCAM_WORD   _IOWR('f', CH_READ_TCAM_WORD, struct ch_tcam_word)
 
#define CHELSIO_GET_MEM   _IOWR('f', CH_GET_MEM, struct ch_mem_range)
 
#define CHELSIO_GET_SGE_CONTEXT   _IOWR('f', CH_GET_SGE_CONTEXT, struct ch_cntxt)
 
#define CHELSIO_GET_SGE_DESC   _IOWR('f', CH_GET_SGE_DESC, struct ch_desc)
 
#define CHELSIO_LOAD_FW   _IOWR('f', CH_LOAD_FW, struct ch_mem_range)
 
#define CHELSIO_SET_TRACE_FILTER   _IOW('f', CH_SET_TRACE_FILTER, struct ch_trace)
 
#define CHELSIO_GET_QSET_PARAMS   _IOWR('f', CH_GET_QSET_PARAMS, struct ch_qset_params)
 
#define CHELSIO_GET_QSET_NUM   _IOR('f', CH_GET_QSET_NUM, struct ch_reg)
 
#define CHELSIO_SET_PKTSCHED   _IOW('f', CH_SET_PKTSCHED, struct ch_pktsched_params)
 
#define CHELSIO_SET_HW_SCHED   _IOW('f', CH_SET_HW_SCHED, struct ch_hw_sched)
 
#define CHELSIO_LOAD_BOOT   _IOW('f', CH_LOAD_BOOT, struct ch_mem_range)
 
#define CHELSIO_CLEAR_STATS   _IO('f', CH_CLEAR_STATS)
 
#define CHELSIO_IFCONF_GETREGS   _IOWR('f', CH_IFCONF_GETREGS, struct ch_ifconf_regs)
 
#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)
 
#define CHELSIO_SET_FILTER   _IOW('f', CH_SET_FILTER, struct ch_filter)
 
#define CHELSIO_DEL_FILTER   _IOW('f', CH_DEL_FILTER, struct ch_filter)
 
#define CHELSIO_GET_FILTER   _IOWR('f', CH_GET_FILTER, struct ch_filter)
 

Enumerations

enum  {
  CH_SETREG = 0x40 , CH_GETREG , CH_GETMTUTAB , CH_SETMTUTAB ,
  CH_SET_PM , CH_GET_PM , CH_READ_TCAM_WORD , CH_GET_MEM ,
  CH_GET_SGE_CONTEXT , CH_GET_SGE_DESC , CH_LOAD_FW , CH_SET_TRACE_FILTER ,
  CH_GET_QSET_PARAMS , CH_GET_QSET_NUM , CH_SET_PKTSCHED , CH_IFCONF_GETREGS ,
  CH_GET_MIIREG , CH_SET_MIIREG , CH_GET_EEPROM , CH_SET_HW_SCHED ,
  CH_LOAD_BOOT , CH_CLEAR_STATS , CH_GET_UP_LA , CH_GET_UP_IOQS ,
  CH_SET_FILTER , CH_DEL_FILTER , CH_GET_FILTER
}
 
enum  { STATS_PORT = 1 << 1 , STATS_QUEUE = 1 << 2 }
 
enum  { CNTXT_TYPE_EGRESS , CNTXT_TYPE_FL , CNTXT_TYPE_RSP , CNTXT_TYPE_CQ }
 
enum  { MEM_CM , MEM_PMRX , MEM_PMTX }
 

Macro Definition Documentation

◆ CHELSIO_CLEAR_STATS

#define CHELSIO_CLEAR_STATS   _IO('f', CH_CLEAR_STATS)

Definition at line 262 of file cxgb_ioctl.h.

◆ CHELSIO_DEL_FILTER

#define CHELSIO_DEL_FILTER   _IOW('f', CH_DEL_FILTER, struct ch_filter)

Definition at line 270 of file cxgb_ioctl.h.

◆ CHELSIO_GET_EEPROM

#define CHELSIO_GET_EEPROM   _IOWR('f', CH_GET_EEPROM, struct ch_eeprom)

Definition at line 266 of file cxgb_ioctl.h.

◆ CHELSIO_GET_FILTER

#define CHELSIO_GET_FILTER   _IOWR('f', CH_GET_FILTER, struct ch_filter)

Definition at line 271 of file cxgb_ioctl.h.

◆ CHELSIO_GET_MEM

#define CHELSIO_GET_MEM   _IOWR('f', CH_GET_MEM, struct ch_mem_range)

Definition at line 252 of file cxgb_ioctl.h.

◆ CHELSIO_GET_MIIREG

#define CHELSIO_GET_MIIREG   _IOWR('f', CH_GET_MIIREG, struct ch_mii_data)

Definition at line 264 of file cxgb_ioctl.h.

◆ CHELSIO_GET_PM

#define CHELSIO_GET_PM   _IOR('f', CH_GET_PM, struct ch_pm)

Definition at line 250 of file cxgb_ioctl.h.

◆ CHELSIO_GET_QSET_NUM

#define CHELSIO_GET_QSET_NUM   _IOR('f', CH_GET_QSET_NUM, struct ch_reg)

Definition at line 258 of file cxgb_ioctl.h.

◆ CHELSIO_GET_QSET_PARAMS

#define CHELSIO_GET_QSET_PARAMS   _IOWR('f', CH_GET_QSET_PARAMS, struct ch_qset_params)

Definition at line 257 of file cxgb_ioctl.h.

◆ CHELSIO_GET_SGE_CONTEXT

#define CHELSIO_GET_SGE_CONTEXT   _IOWR('f', CH_GET_SGE_CONTEXT, struct ch_cntxt)

Definition at line 253 of file cxgb_ioctl.h.

◆ CHELSIO_GET_SGE_DESC

#define CHELSIO_GET_SGE_DESC   _IOWR('f', CH_GET_SGE_DESC, struct ch_desc)

Definition at line 254 of file cxgb_ioctl.h.

◆ CHELSIO_GET_UP_IOQS

#define CHELSIO_GET_UP_IOQS   _IOWR('f', CH_GET_UP_IOQS, struct ch_up_ioqs)

Definition at line 268 of file cxgb_ioctl.h.

◆ CHELSIO_GET_UP_LA

#define CHELSIO_GET_UP_LA   _IOWR('f', CH_GET_UP_LA, struct ch_up_la)

Definition at line 267 of file cxgb_ioctl.h.

◆ CHELSIO_GETMTUTAB

#define CHELSIO_GETMTUTAB   _IOR('f', CH_GETMTUTAB, struct ch_mtus)

Definition at line 247 of file cxgb_ioctl.h.

◆ CHELSIO_GETREG

#define CHELSIO_GETREG   _IOWR('f', CH_GETREG, struct ch_reg)

Definition at line 246 of file cxgb_ioctl.h.

◆ CHELSIO_IFCONF_GETREGS

#define CHELSIO_IFCONF_GETREGS   _IOWR('f', CH_IFCONF_GETREGS, struct ch_ifconf_regs)

Definition at line 263 of file cxgb_ioctl.h.

◆ CHELSIO_LOAD_BOOT

#define CHELSIO_LOAD_BOOT   _IOW('f', CH_LOAD_BOOT, struct ch_mem_range)

Definition at line 261 of file cxgb_ioctl.h.

◆ CHELSIO_LOAD_FW

#define CHELSIO_LOAD_FW   _IOWR('f', CH_LOAD_FW, struct ch_mem_range)

Definition at line 255 of file cxgb_ioctl.h.

◆ CHELSIO_READ_TCAM_WORD

#define CHELSIO_READ_TCAM_WORD   _IOWR('f', CH_READ_TCAM_WORD, struct ch_tcam_word)

Definition at line 251 of file cxgb_ioctl.h.

◆ CHELSIO_SET_FILTER

#define CHELSIO_SET_FILTER   _IOW('f', CH_SET_FILTER, struct ch_filter)

Definition at line 269 of file cxgb_ioctl.h.

◆ CHELSIO_SET_HW_SCHED

#define CHELSIO_SET_HW_SCHED   _IOW('f', CH_SET_HW_SCHED, struct ch_hw_sched)

Definition at line 260 of file cxgb_ioctl.h.

◆ CHELSIO_SET_MIIREG

#define CHELSIO_SET_MIIREG   _IOW('f', CH_SET_MIIREG, struct ch_mii_data)

Definition at line 265 of file cxgb_ioctl.h.

◆ CHELSIO_SET_PKTSCHED

#define CHELSIO_SET_PKTSCHED   _IOW('f', CH_SET_PKTSCHED, struct ch_pktsched_params)

Definition at line 259 of file cxgb_ioctl.h.

◆ CHELSIO_SET_PM

#define CHELSIO_SET_PM   _IOW('f', CH_SET_PM, struct ch_pm)

Definition at line 249 of file cxgb_ioctl.h.

◆ CHELSIO_SET_TRACE_FILTER

#define CHELSIO_SET_TRACE_FILTER   _IOW('f', CH_SET_TRACE_FILTER, struct ch_trace)

Definition at line 256 of file cxgb_ioctl.h.

◆ CHELSIO_SETMTUTAB

#define CHELSIO_SETMTUTAB   _IOW('f', CH_SETMTUTAB, struct ch_mtus)

Definition at line 248 of file cxgb_ioctl.h.

◆ CHELSIO_SETREG

#define CHELSIO_SETREG   _IOW('f', CH_SETREG, struct ch_reg)

Definition at line 245 of file cxgb_ioctl.h.

◆ IOQS_BUFSIZE

#define IOQS_BUFSIZE   (1024)

Definition at line 212 of file cxgb_ioctl.h.

◆ LA_BUFSIZE

#define LA_BUFSIZE   (2 * 1024)

Definition at line 197 of file cxgb_ioctl.h.

◆ REGDUMP_SIZE

#define REGDUMP_SIZE   (4 * 1024)

Definition at line 175 of file cxgb_ioctl.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CH_SETREG 
CH_GETREG 
CH_GETMTUTAB 
CH_SETMTUTAB 
CH_SET_PM 
CH_GET_PM 
CH_READ_TCAM_WORD 
CH_GET_MEM 
CH_GET_SGE_CONTEXT 
CH_GET_SGE_DESC 
CH_LOAD_FW 
CH_SET_TRACE_FILTER 
CH_GET_QSET_PARAMS 
CH_GET_QSET_NUM 
CH_SET_PKTSCHED 
CH_IFCONF_GETREGS 
CH_GET_MIIREG 
CH_SET_MIIREG 
CH_GET_EEPROM 
CH_SET_HW_SCHED 
CH_LOAD_BOOT 
CH_CLEAR_STATS 
CH_GET_UP_LA 
CH_GET_UP_IOQS 
CH_SET_FILTER 
CH_DEL_FILTER 
CH_GET_FILTER 

Definition at line 38 of file cxgb_ioctl.h.

◆ anonymous enum

anonymous enum
Enumerator
STATS_PORT 
STATS_QUEUE 

Definition at line 69 of file cxgb_ioctl.h.

◆ anonymous enum

anonymous enum
Enumerator
CNTXT_TYPE_EGRESS 
CNTXT_TYPE_FL 
CNTXT_TYPE_RSP 
CNTXT_TYPE_CQ 

Definition at line 86 of file cxgb_ioctl.h.

◆ anonymous enum

anonymous enum
Enumerator
MEM_CM 
MEM_PMRX 
MEM_PMTX 

Definition at line 103 of file cxgb_ioctl.h.