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

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

#include "cpsw_types.h"
#include "cpsw_port.h"

Data Structures

struct  CpswHostPort_FifoStats_s
 FIFO related statistics of the host port. More...
 
struct  CpswHostPort_Config_s
 Host port submodule configuration. More...
 

Macros

#define CPSW_HOSTPORT_PUBLIC_IOCTL(x)   (CPSW_IOCTL_HOSTPORT_BASE | CPSW_IOCTL_MIN(x))
 Helper macro to create IOCTL commands for host port submodule.
 

Typedefs

typedef enum
CpswHostPort_RxPriorityType_e 
CpswHostPort_RxPriorityType
 Port priority type.
 
typedef struct
CpswHostPort_FifoStats_s 
CpswHostPort_FifoStats
 FIFO related statistics of the host port.
 
typedef struct
CpswHostPort_Config_s 
CpswHostPort_Config
 Host port submodule configuration.
 
typedef struct CpswHostPort_Obj_s * CpswHostPort_Handle
 Host port submodule handle. More...
 

Enumerations

enum  CpswHostPort_Ioctl_e {
  CPSW_HOSTPORT_IOCTL_ENABLE = CPSW_HOSTPORT_PUBLIC_IOCTL(0U), CPSW_HOSTPORT_IOCTL_DISABLE = CPSW_HOSTPORT_PUBLIC_IOCTL(1U), CPSW_HOSTPORT_IOCTL_GET_FIFO_STATS = CPSW_HOSTPORT_PUBLIC_IOCTL(2U), CPSW_HOSTPORT_IOCTL_SET_TX_PRIORITY = CPSW_HOSTPORT_PUBLIC_IOCTL(3U),
  CPSW_HOSTPORT_IOCTL_GET_TX_PRIORITY = CPSW_HOSTPORT_PUBLIC_IOCTL(4U), CPSW_HOSTPORT_IOCTL_SET_RX_PRIORITY = CPSW_HOSTPORT_PUBLIC_IOCTL(5U), CPSW_HOSTPORT_IOCTL_GET_RX_PRIORITY = CPSW_HOSTPORT_PUBLIC_IOCTL(6U), CPSW_HOSTPORT_IOCTL_SET_RX_DSCP_PRIORITY = CPSW_HOSTPORT_PUBLIC_IOCTL(7U),
  CPSW_HOSTPORT_IOCTL_GET_RX_DSCP_PRIORITY = CPSW_HOSTPORT_PUBLIC_IOCTL(8U), CPSW_HOSTPORT_IOCTL_SET_TRAFFIC_SHAPING = CPSW_HOSTPORT_PUBLIC_IOCTL(9U), CPSW_HOSTPORT_IOCTL_GET_TRAFFIC_SHAPING = CPSW_HOSTPORT_PUBLIC_IOCTL(10U), CPSW_HOSTPORT_IOCTL_PRINT_REGS = CPSW_HOSTPORT_PUBLIC_IOCTL(11U),
  CPSW_HOSTPORT_IOCTL_GET_RX_MTU = CPSW_HOSTPORT_PUBLIC_IOCTL(12U), CPSW_HOSTPORT_GET_FLOW_ID_OFFSET = CPSW_HOSTPORT_PUBLIC_IOCTL(13U), CPSW_HOSTPORT_IS_CSUM_OFFLOAD_ENABLE = CPSW_HOSTPORT_PUBLIC_IOCTL(14U)
}
 Host port IOCTL commands. More...
 
enum  CpswHostPort_RxPriorityType_e { CPSW_RX_PRIORITY_TYPE_FIXED = 0U, CPSW_RX_PRIORITY_TYPE_RR = 1U }
 Port priority type. More...
 

Detailed Description

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


Copyright 2020, Texas Instruments Incorporated