|
#define | _SHR_CORE_ALL -17 |
|
#define | _SHR_CORE_FIELD2ID(field) ((field) != _SHR_COSQ_GPORT_COMMON_ALL_CORES_VALUE ? field : _SHR_CORE_ALL) |
|
#define | _SHR_CORE_ID2FIELD(id) ((id) != _SHR_CORE_ALL ? id : _SHR_COSQ_GPORT_COMMON_ALL_CORES_VALUE) |
|
#define | _SHR_COSQ_GPORT_COMMON_ALL_CORES_VALUE _SHR_COSQ_GPORT_COMMON_CORE_MASK |
|
#define | _SHR_COSQ_GPORT_COMMON_CORE_BITS 3 |
|
#define | _SHR_COSQ_GPORT_COMMON_CORE_MASK ((1 << _SHR_COSQ_GPORT_COMMON_CORE_BITS) - 1) |
|
#define | _SHR_COSQ_GPORT_COMMON_CORE_SHIFT _SHR_COSQ_GPORT_COMMON_QUEUE_BITS |
|
#define | _SHR_COSQ_GPORT_COMMON_QUEUE_BITS 18 |
|
#define | _SHR_COSQ_GPORT_COMMON_QUEUE_MASK ((1 << _SHR_COSQ_GPORT_COMMON_QUEUE_BITS) - 1) |
|
#define | _SHR_FIELD_CTR_PROC_MASK ((1 << 4) - 1) /*4 bits for counter engines in Arad */ |
|
#define | _SHR_FIELD_CTR_PROC_MASK_LEGACY ((1 << 2) - 1) /*2 bits for counter engines in Arad */ |
|
#define | _SHR_FIELD_CTR_PROC_SHIFT 27 /* minimum 20 for the Statistic-Report Counter in Jericho */ |
|
#define | _SHR_FIELD_CTR_PROC_SHIFT_GET(_stat_id) (_SHR_FIELD_STAT_ID_IS_LEGACY(_stat_id) ? _SHR_FIELD_CTR_PROC_SHIFT_LEGACY : _SHR_FIELD_CTR_PROC_SHIFT) |
|
#define | _SHR_FIELD_CTR_PROC_SHIFT_LEGACY 29 /* minimum 20 for the Statistic-Report Counter in Arad */ |
|
#define | _SHR_FIELD_CTR_SET_MASK ((1 << _SHR_FIELD_CTR_PROC_SHIFT) - 1) |
|
#define | _SHR_FIELD_CTR_SET_MASK_LEGACY ((1 << _SHR_FIELD_CTR_PROC_SHIFT_LEGACY) - 1) |
|
#define | _SHR_FIELD_CTR_SET_SHIFT 0 |
|
#define | _SHR_FIELD_CTR_SET_SHIFT_LEGACY 0 |
|
#define | _SHR_FIELD_STAT_ID_CNTR_LEGACY_GET(_stat_id) (((_stat_id) >> _SHR_FIELD_CTR_SET_SHIFT_LEGACY) & _SHR_FIELD_CTR_SET_MASK_LEGACY) |
|
#define | _SHR_FIELD_STAT_ID_CNTR_NEW_GET(_stat_id) (((_stat_id) >> _SHR_FIELD_CTR_SET_SHIFT) & _SHR_FIELD_CTR_SET_MASK) |
|
#define | _SHR_FIELD_STAT_ID_COUNTER_GET(_stat_id) |
|
#define | _SHR_FIELD_STAT_ID_IS_LEGACY(_stat_id) (!((_stat_id >> 31) & 0x1)) |
|
#define | _SHR_FIELD_STAT_ID_LEGACY (0x1 << 31) |
|
#define | _SHR_FIELD_STAT_ID_LEGACY_SET(_proc, _ctr) |
|
#define | _SHR_FIELD_STAT_ID_NEW_SET(_proc, _ctr) |
|
#define | _SHR_FIELD_STAT_ID_PROC_LEGACY_GET(_stat_id) (((_stat_id) >> _SHR_FIELD_CTR_PROC_SHIFT_LEGACY) & _SHR_FIELD_CTR_PROC_MASK_LEGACY) |
|
#define | _SHR_FIELD_STAT_ID_PROC_NEW_GET(_stat_id) (((_stat_id) >> _SHR_FIELD_CTR_PROC_SHIFT) & _SHR_FIELD_CTR_PROC_MASK) |
|
#define | _SHR_FIELD_STAT_ID_PROCESSOR_GET(_stat_id) |
|
#define | _SHR_FIELD_STAT_ID_SET(_stat_id, _proc, _ctr) (_stat_id = _SHR_FIELD_STAT_ID_NEW_SET(_proc, _ctr)) |
|
#define | _SHR_GPORT_BLACK_HOLE (_SHR_GPORT_TYPE_BLACK_HOLE << _SHR_GPORT_TYPE_SHIFT) |
|
#define | _SHR_GPORT_INVALID (-1) |
|
#define | _SHR_GPORT_IS_BLACK_HOLE(_gport) ((_gport) == _SHR_GPORT_BLACK_HOLE) |
|
#define | _SHR_GPORT_IS_COSQ(_gport) (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_COSQ) |
|
#define | _SHR_GPORT_IS_LOCAL(_gport) |
|
#define | _SHR_GPORT_IS_MCAST_QUEUE_GROUP(_gport) (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_MCAST_QUEUE_GROUP) |
|
#define | _SHR_GPORT_IS_MIRROR(_gport) (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_MIRROR) |
|
#define | _SHR_GPORT_IS_MODPORT(_gport) (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_MODPORT) |
|
#define | _SHR_GPORT_IS_SCHEDULER(_gport) (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_SCHEDULER) |
|
#define | _SHR_GPORT_IS_SYSTEM_PORT(_gport) (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_SYSTEM_PORT) |
|
#define | _SHR_GPORT_IS_TRAP(_gport) (((_gport) >> _SHR_GPORT_TYPE_TRAP_SHIFT) == _SHR_GPORT_TYPE_TRAP) |
|
#define | _SHR_GPORT_IS_TRUNK(_gport) (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_TRUNK) |
|
#define | _SHR_GPORT_IS_TUNNEL(_gport) (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_TUNNEL) |
|
#define | _SHR_GPORT_IS_UCAST_QUEUE_GROUP(_gport) (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_UCAST_QUEUE_GROUP) |
|
#define | _SHR_GPORT_LOCAL_CPU (_SHR_GPORT_TYPE_LOCAL_CPU << _SHR_GPORT_TYPE_SHIFT) |
|
#define | _SHR_GPORT_LOCAL_GET(_gport) (((_gport) >> _SHR_GPORT_PORT_SHIFT) & _SHR_GPORT_PORT_MASK) |
|
#define | _SHR_GPORT_LOCAL_SET(_gport, _port) |
|
#define | _SHR_GPORT_LOCAL_TYPE_COMMON (0) |
|
#define | _SHR_GPORT_LOCAL_TYPE_FABRIC (1) |
|
#define | _SHR_GPORT_LOCAL_TYPE_MASK (0x1f) |
|
#define | _SHR_GPORT_LOCAL_TYPE_SHIFT (21) |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_CORE_GET(_gport) _SHR_CORE_FIELD2ID(((_gport) >> _SHR_COSQ_GPORT_COMMON_CORE_SHIFT) & _SHR_COSQ_GPORT_COMMON_CORE_MASK) |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_CORE_QUEUE_SET(_gport, _core, _qid) |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_GET(_gport) _SHR_GPORT_MCAST_QUEUE_GROUP_QID_GET(_gport) |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_QID_GET(_gport) (((_gport) >> _SHR_GPORT_MCAST_QUEUE_GROUP_QID_SHIFT) & _SHR_GPORT_MCAST_QUEUE_GROUP_QID_MASK) |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_QID_MASK 0x3fff |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_QID_SHIFT 0 |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_QUEUE_GET(_gport) |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_QUEUE_SET(_gport, _qid) |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_SET(_gport, _qid) |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_GET(_gport) (((_gport) >> _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_SHIFT) & _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_MASK) |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_MASK 0xfff |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_SHIFT 14 |
|
#define | _SHR_GPORT_MCAST_QUEUE_GROUP_SYSQID_SET(_gport, _sysport_id, _qid) |
|
#define | _SHR_GPORT_MIRROR_GET(_gport) (((_gport) >> _SHR_GPORT_MIRROR_SHIFT) & _SHR_GPORT_MIRROR_MASK) |
|
#define | _SHR_GPORT_MIRROR_MASK 0xffff |
|
#define | _SHR_GPORT_MIRROR_SET(_gport, _value) |
|
#define | _SHR_GPORT_MIRROR_SHIFT 0 |
|
#define | _SHR_GPORT_MODID_MASK 0x7fff |
|
#define | _SHR_GPORT_MODID_SHIFT 11 |
|
#define | _SHR_GPORT_MODPORT_MODID_GET(_gport) (((_gport) >> _SHR_GPORT_MODID_SHIFT) & _SHR_GPORT_MODID_MASK) |
|
#define | _SHR_GPORT_MODPORT_PORT_GET(_gport) (((_gport) >> _SHR_GPORT_PORT_SHIFT) & _SHR_GPORT_PORT_MASK) |
|
#define | _SHR_GPORT_MODPORT_SET(_gport, _module, _port) |
|
#define | _SHR_GPORT_NONE (0) |
|
#define | _SHR_GPORT_PORT_MASK 0x7ff |
|
#define | _SHR_GPORT_PORT_SHIFT 0 |
|
#define | _SHR_GPORT_SCHEDULER_CORE_GET(_gport) _SHR_CORE_FIELD2ID((((_gport) >> _SHR_GPORT_SCHEDULER_CORE_SHIFT) & _SHR_GPORT_SCHEDULER_CORE_MASK)) |
|
#define | _SHR_GPORT_SCHEDULER_CORE_MASK _SHR_COSQ_GPORT_COMMON_CORE_MASK |
|
#define | _SHR_GPORT_SCHEDULER_CORE_SET(_gport, _scheduler_id, _core_id) |
|
#define | _SHR_GPORT_SCHEDULER_CORE_SHIFT 23 |
|
#define | _SHR_GPORT_SCHEDULER_GET(_gport) (((_gport) >> _SHR_GPORT_SCHEDULER_SHIFT) & _SHR_GPORT_SCHEDULER_MASK) |
|
#define | _SHR_GPORT_SCHEDULER_MASK 0x7fffff |
|
#define | _SHR_GPORT_SCHEDULER_NODE_GET(_gport) (((_gport) >> _SHR_GPORT_SCHEDULER_NODE_SHIFT) & _SHR_GPORT_SCHEDULER_NODE_MASK) |
|
#define | _SHR_GPORT_SCHEDULER_NODE_MASK 0xfffff |
|
#define | _SHR_GPORT_SCHEDULER_NODE_SET(_gport, _level, _node) |
|
#define | _SHR_GPORT_SCHEDULER_NODE_SHIFT 0 |
|
#define | _SHR_GPORT_SCHEDULER_SET(_gport, _id) _SHR_GPORT_SCHEDULER_CORE_SET(_gport, _id, _SHR_CORE_ALL) |
|
#define | _SHR_GPORT_SCHEDULER_SHIFT 0 |
|
#define | _SHR_GPORT_SYSTEM_PORT_ID_GET(_gport) (((_gport) >> _SHR_GPORT_SYSTEM_PORT_SHIFT) & _SHR_GPORT_SYSTEM_PORT_MASK) |
|
#define | _SHR_GPORT_SYSTEM_PORT_ID_SET(_gport, _id) |
|
#define | _SHR_GPORT_SYSTEM_PORT_MASK 0xffffff |
|
#define | _SHR_GPORT_SYSTEM_PORT_SHIFT 0 |
|
#define | _SHR_GPORT_TRAP_GET_ID(_gport) (((_gport) >> _SHR_GPORT_TRAP_ID_SHIFT) & _SHR_GPORT_TRAP_ID_MASK) |
|
#define | _SHR_GPORT_TRAP_GET_SNOOP_STRENGTH(_gport) (((_gport) >> _SHR_GPORT_TRAP_SNOOP_STRENGTH_SHIFT & _SHR_GPORT_TRAP_SNOOP_STRENGTH_MASK)) |
|
#define | _SHR_GPORT_TRAP_GET_STRENGTH(_gport) (((_gport) >> _SHR_GPORT_TRAP_STRENGTH_SHIFT & _SHR_GPORT_TRAP_STRENGTH_MASK)) |
|
#define | _SHR_GPORT_TRAP_ID_MASK 0xfff |
|
#define | _SHR_GPORT_TRAP_ID_SHIFT 0 |
|
#define | _SHR_GPORT_TRAP_SET(_gport, _trap_id, _trap_strength, _snoop_strength) |
|
#define | _SHR_GPORT_TRAP_SNOOP_STRENGTH_MASK 0xf |
|
#define | _SHR_GPORT_TRAP_SNOOP_STRENGTH_SHIFT 16 |
|
#define | _SHR_GPORT_TRAP_STRENGTH_MASK 0xf |
|
#define | _SHR_GPORT_TRAP_STRENGTH_SHIFT 12 |
|
#define | _SHR_GPORT_TRUNK_GET(_gport) (((_gport) >> _SHR_GPORT_TRUNK_SHIFT) & _SHR_GPORT_TRUNK_MASK) |
|
#define | _SHR_GPORT_TRUNK_MASK 0x3ffffff |
|
#define | _SHR_GPORT_TRUNK_SET(_gport, _trunk_id) |
|
#define | _SHR_GPORT_TRUNK_SHIFT 0 |
|
#define | _SHR_GPORT_TUNNEL_ID_GET(_gport) (((_gport) >> _SHR_GPORT_TUNNEL_SHIFT) & _SHR_GPORT_TUNNEL_MASK) |
|
#define | _SHR_GPORT_TUNNEL_ID_SET(_gport, _tunnel_id) |
|
#define | _SHR_GPORT_TUNNEL_MASK 0x3ffffff |
|
#define | _SHR_GPORT_TUNNEL_SHIFT 0 |
|
#define | _SHR_GPORT_TYPE_BLACK_HOLE 4 /* Black hole destination */ |
|
#define | _SHR_GPORT_TYPE_CHILD 20 /* Child port */ |
|
#define | _SHR_GPORT_TYPE_COSQ 30 /* cosq gport */ |
|
#define | _SHR_GPORT_TYPE_DESTMOD_QUEUE_GROUP 41 /* DMVOQ gport */ |
|
#define | _SHR_GPORT_TYPE_EGRESS_CHILD 22 /* Egress child port */ |
|
#define | _SHR_GPORT_TYPE_EGRESS_GROUP 21 /* Egress group port */ |
|
#define | _SHR_GPORT_TYPE_EGRESS_MODPORT 23 /* Egress Mod and port */ |
|
#define | _SHR_GPORT_TYPE_LOCAL 1 /* Port on local unit */ |
|
#define | _SHR_GPORT_TYPE_LOCAL_CPU 5 /* CPU destination */ |
|
#define | _SHR_GPORT_TYPE_MASK 0x3f |
|
#define | _SHR_GPORT_TYPE_MCAST 11 /* Multicast Set */ |
|
#define | _SHR_GPORT_TYPE_MCAST_QUEUE_GROUP 12 /* Multicast Queue Group */ |
|
#define | _SHR_GPORT_TYPE_MCAST_SUBSCRIBER_QUEUE_GROUP 25 /* Local Multicast Queue Group */ |
|
#define | _SHR_GPORT_TYPE_MIRROR 15 /* Mirror destination. */ |
|
#define | _SHR_GPORT_TYPE_MODPORT 2 /* Module ID and port */ |
|
#define | _SHR_GPORT_TYPE_PROFILE 40 |
|
#define | _SHR_GPORT_TYPE_SCHEDULER 13 /* Scheduler */ |
|
#define | _SHR_GPORT_TYPE_SHIFT 26 |
|
#define | _SHR_GPORT_TYPE_SYSTEM_PORT 27 /* DPP System-Port */ |
|
#define | _SHR_GPORT_TYPE_TRAP |
|
#define | _SHR_GPORT_TYPE_TRAP_MASK (_SHR_GPORT_TYPE_MASK<<1|1) /* 0x4f */ |
|
#define | _SHR_GPORT_TYPE_TRAP_SHIFT (_SHR_GPORT_TYPE_SHIFT-1) /* 25 */ |
|
#define | _SHR_GPORT_TYPE_TRUNK 3 /* Trunk ID */ |
|
#define | _SHR_GPORT_TYPE_TUNNEL 19 /* Tunnel ID */ |
|
#define | _SHR_GPORT_TYPE_UCAST_QUEUE_GROUP 9 /* Queue Group */ |
|
#define | _SHR_GPORT_TYPE_UCAST_SUBSCRIBER_QUEUE_GROUP 24 /* Local Queue Group */ |
|
#define | _SHR_GPORT_UCAST_QUEUE_GROUP_MASK 0x3ffffff |
|
#define | _SHR_GPORT_UCAST_QUEUE_GROUP_QID_GET(_gport) (((_gport) >> _SHR_GPORT_UCAST_QUEUE_GROUP_QID_SHIFT) & _SHR_GPORT_UCAST_QUEUE_GROUP_QID_MASK) |
|
#define | _SHR_GPORT_UCAST_QUEUE_GROUP_QID_MASK 0x3fff |
|
#define | _SHR_GPORT_UCAST_QUEUE_GROUP_QID_SHIFT 0 |
|
#define | _SHR_GPORT_UCAST_QUEUE_GROUP_SET(_gport, _qid) |
|
#define | _SHR_GPORT_UCAST_QUEUE_GROUP_SHIFT 0 |
|
#define | _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_GET(_gport) (((_gport) >> _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_SHIFT) & _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_MASK) |
|
#define | _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_MASK 0xfff |
|
#define | _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_SHIFT 14 |
|
#define | _SHR_GPORT_UCAST_QUEUE_GROUP_SYSQID_SET(_gport, _sysport_id, _qid) |
|