raptor.h (1329B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 6 * 7 * File: raptor.h 8 * Purpose: Function declarations for Raptor bcm functions 9 */ 10 11 #ifndef _BCM_INT_RAPTOR_H_ 12 #define _BCM_INT_RAPTOR_H_ 13 #ifndef _BCM_INT_RAVEN_H_ 14 #define _BCM_INT_RAVEN_H_ 15 16 #ifdef BCM_FIELD_SUPPORT 17 #define _BCM_RP_FIELD_IPBM_INDEX(_unit_, _port_, _slice_) \ 18 (((_port_) << (SOC_IS_RAVEN((_unit_)) ? 4 : (SOC_IS_HAWKEYE((_unit_)) ? 2 : 3))) | (_slice_)) 19 extern int _bcm_field_raptor_init(int, _field_control_t *); 20 extern int _bcm_field_raven_qualify_ttl(int unit, bcm_field_entry_t entry, 21 uint8 data, uint8 mask); 22 extern int _bcm_field_raven_qualify_ttl_get(int unit, bcm_field_entry_t entry, 23 uint8 *data, uint8 *mask); 24 extern int _bcm_field_raptor_qualify_ip_type_get(int unit, 25 bcm_field_entry_t entry, 26 bcm_field_IpType_t *type, 27 bcm_field_qualify_t qual); 28 #endif /* BCM_FIELD_SUPPORT */ 29 30 #endif /* !_BCM_INT_RAVEN_H_ */ 31 #endif /* !_BCM_INT_RAPTOR_H_ */