Data Structures | Macros | Typedefs | Enumerations
cpsw_stats.h File Reference

This file contains the structure definitions and function prototypes of the the Statistics module. More...

#include "cpsw_types.h"

Data Structures

struct  CpswStats_PortStats_s
 CPSW nG port statistics. More...
 
struct  CpswStats_HostPort_2g_s
 CPSW 2G host port statistics. More...
 
struct  CpswStats_MacPort_2g_s
 CPSW 2G MAC port statistics. More...
 
struct  CpswStats_HostPort_9g_s
 CPSW 9G host port statistics. More...
 
struct  CpswStats_MacPort_9g_s
 CPSW 9G MAC port statistics. More...
 
struct  CpswStats_GenericMacPortInArgs_s
 Input args for CPSW_STATS_IOCTL_GET_MACPORT_STATS and CPSW_STATS_IOCTL_RESET_MACPORT_STATS command. More...
 
struct  CpswStats_RestoreMacPortStatsInArgs_s
 Input args for CPSW_STATS_IOCTL_RESTORE_MACPORT_STATS command. More...
 

Macros

#define CPSW_STATS_PUBLIC_IOCTL(x)   (CPSW_IOCTL_STATS_BASE | CPSW_IOCTL_MIN(x))
 Helper macro to create IOCTL commands for statistics submodule.
 
#define CPSW_STATS_BLOCK_ELEM_NUM   (128U)
 Number of elements in a statistics block.
 

Typedefs

typedef struct
CpswStats_PortStats_s 
CpswStats_PortStats
 CPSW nG port statistics. More...
 
typedef struct
CpswStats_HostPort_2g_s 
CpswStats_HostPort_2g
 CPSW 2G host port statistics. More...
 
typedef struct
CpswStats_MacPort_2g_s 
CpswStats_MacPort_2g
 CPSW 2G MAC port statistics. More...
 
typedef struct
CpswStats_HostPort_9g_s 
CpswStats_HostPort_9g
 CPSW 9G host port statistics. More...
 
typedef struct
CpswStats_MacPort_9g_s 
CpswStats_MacPort_9g
 CPSW 9G MAC port statistics. More...
 
typedef struct
CpswStats_GenericMacPortInArgs_s 
CpswStats_GenericMacPortInArgs
 Input args for CPSW_STATS_IOCTL_GET_MACPORT_STATS and CPSW_STATS_IOCTL_RESET_MACPORT_STATS command.
 
typedef struct
CpswStats_RestoreMacPortStatsInArgs_s 
CpswStats_RestoreMacPortStatsInArgs
 Input args for CPSW_STATS_IOCTL_RESTORE_MACPORT_STATS command.
 
typedef struct CpswStats_Obj_s * CpswStats_Handle
 Statistics submodule handle. More...
 

Enumerations

enum  CpswStats_Ioctl_e {
  CPSW_STATS_IOCTL_GET_HOSTPORT_STATS = CPSW_STATS_PUBLIC_IOCTL(0U), CPSW_STATS_IOCTL_GET_MACPORT_STATS = CPSW_STATS_PUBLIC_IOCTL(1U), CPSW_STATS_IOCTL_RESET_HOSTPORT_STATS = CPSW_STATS_PUBLIC_IOCTL(2U), CPSW_STATS_IOCTL_RESET_MACPORT_STATS = CPSW_STATS_PUBLIC_IOCTL(3U),
  CPSW_STATS_IOCTL_RESTORE_HOSTPORT_STATS = CPSW_STATS_PUBLIC_IOCTL(4U), CPSW_STATS_IOCTL_RESTORE_MACPORT_STATS = CPSW_STATS_PUBLIC_IOCTL(5U), CPSW_STATS_IOCTL_PRINT_REGS = CPSW_STATS_PUBLIC_IOCTL(6U)
}
 Statistics IOCTL commands. More...
 

Detailed Description

This file contains the structure definitions and function prototypes of the the Statistics module.


Copyright 2020, Texas Instruments Incorporated