RDK-B
moca_hal.h File Reference

Go to the source code of this file.

Data Structures

struct  moca_cfg_t
 
struct  moca_static_info_t
 
struct  moca_dynamic_info_t
 
struct  moca_stats_t
 
struct  moca_mac_counters_t
 
struct  moca_aggregate_counters_t
 
struct  moca_cpe_t
 
struct  moca_associated_device_t
 
struct  moca_mesh_table_t
 
struct  moca_flow_table_t
 
struct  moca_assoc_pnc_info
 
struct  moca_scmod_stat_t
 
struct  moca_aca_cfg_t
 
struct  moca_aca_stat_t
 

Macros

#define ULONG   unsigned long
 
#define BOOL   unsigned char
 
#define CHAR   char
 
#define UCHAR   unsigned char
 
#define INT   int
 
#define UINT   unsigned int
 
#define TRUE   1
 
#define FALSE   0
 
#define ENABLE   1
 
#define STATUS_SUCCESS   0
 
#define STATUS_FAILURE   -1
 
#define STATUS_NOT_AVAILABLE   -2
 
#define kMoca_MaxCpeList   256
 
#define kMoca_MaxMocaNodes   16
 
#define MAC_PADDING   12
 
#define STATUS_INPROGRESS   -1
 
#define STATUS_NO_NODE   -2
 
#define STATUS_INVALID_PROBE   -3
 
#define STATUS_INVALID_CHAN   -4
 

Typedefs

typedef int(* moca_associatedDevice_callback) (unsigned long ifIndex, moca_associated_device_t *moca_dev)
 
typedef struct moca_assoc_pnc_info moca_assoc_pnc_info_t
 

Enumerations

enum  moca_if_status_t {
  IF_STATUS_Up = 1, IF_STATUS_Down, IF_STATUS_Unknown, IF_STATUS_Dormant,
  IF_STATUS_NotPresent, IF_STATUS_LowerLayerDown, IF_STATUS_Error
}
 
enum  PROBE_TYPE { PROBE_QUITE = 0, PROBE_EVM }
 

Functions

void moca_associatedDevice_callback_register (moca_associatedDevice_callback callback_proc)
 
int moca_GetIfConfig (unsigned long ifIndex, moca_cfg_t *pmoca_config)
 
int moca_SetIfConfig (unsigned long ifIndex, moca_cfg_t *pmoca_config)
 
int moca_IfGetDynamicInfo (unsigned long ifIndex, moca_dynamic_info_t *pmoca_dynamic_info)
 
int moca_IfGetStaticInfo (unsigned long ifIndex, moca_static_info_t *pmoca_static_info)
 
int moca_IfGetStats (unsigned long ifIndex, moca_stats_t *pmoca_stats)
 
int moca_GetNumAssociatedDevices (unsigned long ifIndex, unsigned long *pulCount)
 
int moca_IfGetExtCounter (unsigned long ifIndex, moca_mac_counters_t *pmoca_mac_counters)
 
int moca_IfGetExtAggrCounter (unsigned long ifIndex, moca_aggregate_counters_t *pmoca_aggregate_counts)
 
int moca_GetMocaCPEs (unsigned long ifIndex, moca_cpe_t *cpes, int *pnum_cpes)
 
int moca_GetAssociatedDevices (unsigned long ifIndex, moca_associated_device_t **ppdevice_array)
 
int moca_FreqMaskToValue (unsigned char *mask)
 
unsigned char moca_HardwareEquipped (void)
 
int moca_GetFullMeshRates (unsigned long ifIndex, moca_mesh_table_t *pDeviceArray, unsigned long *pulCount)
 
int moca_GetFlowStatistics (unsigned long ifIndex, moca_flow_table_t *pDeviceArray, unsigned long *pulCount)
 
int moca_GetResetCount (unsigned long *resetcnt)
 
int moca_setIfAcaConfig (int interfaceIndex, moca_aca_cfg_t acaCfg)
 
int moca_getIfAcaConfig (int interfaceIndex, moca_aca_cfg_t *acaCfg)
 
int moca_cancelIfAca (int interfaceIndex)
 
int moca_getIfAcaStatus (int interfaceIndex, moca_aca_stat_t *pacaStat)
 
int moca_getIfScmod (int interfaceIndex, int *pnumOfEntries, moca_scmod_stat_t **ppscmodStat)
 

Macro Definition Documentation

◆ ULONG

#define ULONG   unsigned long

Definition at line 72 of file moca_hal.h.

◆ BOOL

#define BOOL   unsigned char

Definition at line 76 of file moca_hal.h.

◆ CHAR

#define CHAR   char

Definition at line 80 of file moca_hal.h.

◆ UCHAR

#define UCHAR   unsigned char

Definition at line 84 of file moca_hal.h.

◆ INT

#define INT   int

Definition at line 88 of file moca_hal.h.

◆ UINT

#define UINT   unsigned int

Definition at line 92 of file moca_hal.h.

◆ TRUE

#define TRUE   1

Definition at line 96 of file moca_hal.h.

◆ FALSE

#define FALSE   0

Definition at line 100 of file moca_hal.h.

◆ ENABLE

#define ENABLE   1

Definition at line 104 of file moca_hal.h.

◆ STATUS_SUCCESS

#define STATUS_SUCCESS   0

Definition at line 108 of file moca_hal.h.

◆ STATUS_FAILURE

#define STATUS_FAILURE   -1

Definition at line 112 of file moca_hal.h.

◆ STATUS_NOT_AVAILABLE

#define STATUS_NOT_AVAILABLE   -2

Definition at line 116 of file moca_hal.h.

Function Documentation

◆ moca_associatedDevice_callback_register()

void moca_associatedDevice_callback_register ( moca_associatedDevice_callback  callback_proc)