numam-dpdk/drivers/net/bnxt/bnxt_util.h
Kalesh AP b7c57f4e74 net/bnxt: use macro for bit definitions
use BIT macro instead of bit fields.

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
2019-10-08 12:14:30 +02:00

17 lines
343 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2014-2018 Broadcom
* All rights reserved.
*/
#ifndef _BNXT_UTIL_H_
#define _BNXT_UTIL_H_
#ifndef BIT
#define BIT(n) (1UL << (n))
#endif /* BIT */
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_ */