2018-06-28 20:15:36 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2014-2018 Broadcom
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _BNXT_UTIL_H_
|
|
|
|
#define _BNXT_UTIL_H_
|
|
|
|
|
2019-10-02 01:23:34 +00:00
|
|
|
#ifndef BIT
|
|
|
|
#define BIT(n) (1UL << (n))
|
|
|
|
#endif /* BIT */
|
|
|
|
|
2018-06-28 20:15:36 +00:00
|
|
|
int bnxt_check_zero_bytes(const uint8_t *bytes, int len);
|
2019-07-17 10:41:27 +00:00
|
|
|
void bnxt_eth_hw_addr_random(uint8_t *mac_addr);
|
2018-06-28 20:15:36 +00:00
|
|
|
|
|
|
|
#endif /* _BNXT_UTIL_H_ */
|