xref: /f-stack/dpdk/drivers/net/bnxt/bnxt_util.h (revision 4418919f)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2014-2018 Broadcom
3  * All rights reserved.
4  */
5 
6 #ifndef _BNXT_UTIL_H_
7 #define _BNXT_UTIL_H_
8 
9 #ifndef BIT
10 #define BIT(n)	(1UL << (n))
11 #endif /* BIT */
12 
13 int bnxt_check_zero_bytes(const uint8_t *bytes, int len);
14 void bnxt_eth_hw_addr_random(uint8_t *mac_addr);
15 
16 #endif /* _BNXT_UTIL_H_ */
17