7052999153
- Translate Truflow action types for Thor to HCAPI RM resource defined SRAM banks. - move module type enum definitions to tf_core API - Switch to subtype concept for RM. - alloc/free working for Thor SRAM table type for full AR. Signed-off-by: Farah Smith <farah.smith@broadcom.com> Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
22 lines
457 B
C
22 lines
457 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2014-2021 Broadcom
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef _BNXT_UTIL_H_
|
|
#define _BNXT_UTIL_H_
|
|
|
|
#ifndef BIT
|
|
#define BIT(n) (1UL << (n))
|
|
#endif /* BIT */
|
|
#ifndef BIT_MASK
|
|
#define BIT_MASK(len) (BIT(len) - 1)
|
|
#endif /* BIT_MASK */
|
|
|
|
#define PCI_SUBSYSTEM_ID_OFFSET 0x2e
|
|
|
|
int bnxt_check_zero_bytes(const uint8_t *bytes, int len);
|
|
void bnxt_eth_hw_addr_random(uint8_t *mac_addr);
|
|
|
|
#endif /* _BNXT_UTIL_H_ */
|