mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
bits.h is not available in userspace
This commit is contained in:
parent
27c9241a69
commit
4ade485344
@ -37,7 +37,6 @@
|
||||
#define MQNIC_HW_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/bits.h>
|
||||
|
||||
#define MQNIC_MAX_IF 8
|
||||
#define MQNIC_MAX_PORTS 8
|
||||
@ -172,11 +171,11 @@
|
||||
#define MQNIC_IF_REG_PORT_OFFSET 0x0044
|
||||
#define MQNIC_IF_REG_PORT_STRIDE 0x0048
|
||||
|
||||
#define MQNIC_IF_FEATURE_RSS BIT(0)
|
||||
#define MQNIC_IF_FEATURE_PTP_TS BIT(4)
|
||||
#define MQNIC_IF_FEATURE_TX_CSUM BIT(8)
|
||||
#define MQNIC_IF_FEATURE_RX_CSUM BIT(9)
|
||||
#define MQNIC_IF_FEATURE_RX_HASH BIT(10)
|
||||
#define MQNIC_IF_FEATURE_RSS (1 << 0)
|
||||
#define MQNIC_IF_FEATURE_PTP_TS (1 << 4)
|
||||
#define MQNIC_IF_FEATURE_TX_CSUM (1 << 8)
|
||||
#define MQNIC_IF_FEATURE_RX_CSUM (1 << 9)
|
||||
#define MQNIC_IF_FEATURE_RX_HASH (1 << 10)
|
||||
|
||||
// Port CSRs
|
||||
#define MQNIC_PORT_REG_PORT_ID 0x0000
|
||||
@ -214,11 +213,11 @@
|
||||
#define MQNIC_PORT_REG_TDMA_ACTIVE_PERIOD_SEC_L 0x1048
|
||||
#define MQNIC_PORT_REG_TDMA_ACTIVE_PERIOD_SEC_H 0x104C
|
||||
|
||||
#define MQNIC_PORT_FEATURE_RSS BIT(0)
|
||||
#define MQNIC_PORT_FEATURE_PTP_TS BIT(4)
|
||||
#define MQNIC_PORT_FEATURE_TX_CSUM BIT(8)
|
||||
#define MQNIC_PORT_FEATURE_RX_CSUM BIT(9)
|
||||
#define MQNIC_PORT_FEATURE_RX_HASH BIT(10)
|
||||
#define MQNIC_PORT_FEATURE_RSS (1 << 0)
|
||||
#define MQNIC_PORT_FEATURE_PTP_TS (1 << 4)
|
||||
#define MQNIC_PORT_FEATURE_TX_CSUM (1 << 8)
|
||||
#define MQNIC_PORT_FEATURE_RX_CSUM (1 << 9)
|
||||
#define MQNIC_PORT_FEATURE_RX_HASH (1 << 10)
|
||||
|
||||
#define MQNIC_QUEUE_STRIDE 0x00000020
|
||||
#define MQNIC_CPL_QUEUE_STRIDE 0x00000020
|
||||
|
Loading…
x
Reference in New Issue
Block a user