net/bnxt: refactor multi-queue Rx configuration
[dpdk.git] / drivers / net / bnxt / bnxt_util.h
index 2378833..64e97ee 100644 (file)
@@ -1,11 +1,18 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2014-2018 Broadcom
+ * 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 */
+
+#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_ */