All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros
caviumaccess.h File Reference
#include <cvmx-config.h>
#include <cvmx.h>
#include <cvmx-version.h>
#include <cvmx-wqe.h>
#include <cvmx-fpa.h>
#include <cvmx-pow.h>
#include <cvmx-pko.h>
#include <cvmx-mdio.h>
Include dependency graph for caviumaccess.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CCaviumAccess
 
struct  CCaviumAccess::TPhyStatus
 
struct  CCaviumAccess::TCfgVlan
 
struct  CCaviumAccess::TNetEth
 
struct  CCaviumAccess::TNetVlan
 
struct  CCaviumAccess::TNetIp
 
struct  CCaviumAccess::TNetIpv6
 
struct  CCaviumAccess::TNetUdp
 
struct  CCaviumAccess::TNetRtp
 
struct  CCaviumAccess::TNetStun
 
struct  CCaviumAccess::TNetDtls
 
struct  CCaviumAccess::TNetVutp
 
struct  CCaviumAccess::TNetTcp
 
struct  CCaviumAccess::TTypeLength
 
struct  CCaviumAccess::TPacketInfo
 
struct  CCaviumAccess::TMac
 
struct  CCaviumAccess::TDestination
 
struct  CCaviumAccess::TVsnNet
 

Macros

#define IP2STRING(value)   (((value) >> 24) & 0xff), (((value) >> 16) & 0xff), (((value) >> 8) & 0xff), (((value) >> 0) & 0xff)
 
#define GRP_MASK(x)   (0x1 << (x))
 
#define CORE_MASK(x)   (0x1 << (x))
 
#define IP_OFFSET   4
 
#define cavium_panic(...)
 
#define CAVIUM_ASSERT(exp, msg)
 

Macro Definition Documentation

#define CAVIUM_ASSERT (   exp,
  msg 
)
Value:
{ \
if(!(exp)) cavium_panic msg; \
}
#define cavium_panic(...)
Definition: caviumaccess.h:22

Definition at line 30 of file caviumaccess.h.

#define cavium_panic (   ...)
Value:
{ \
printf("CAVIUM_PANIC:" __VA_ARGS__); \
printf("\n"); \
exit(-1); \
}

Definition at line 22 of file caviumaccess.h.

#define CORE_MASK (   x)    (0x1 << (x))

Definition at line 19 of file caviumaccess.h.

#define GRP_MASK (   x)    (0x1 << (x))

Definition at line 18 of file caviumaccess.h.

#define IP2STRING (   value)    (((value) >> 24) & 0xff), (((value) >> 16) & 0xff), (((value) >> 8) & 0xff), (((value) >> 0) & 0xff)

Definition at line 15 of file caviumaccess.h.

#define IP_OFFSET   4

Definition at line 20 of file caviumaccess.h.