Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175444433
D6343.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D6343.diff
View Options
Index: head/sys/dev/sfxge/common/ef10_nic.c
===================================================================
--- head/sys/dev/sfxge/common/ef10_nic.c
+++ head/sys/dev/sfxge/common/ef10_nic.c
@@ -972,6 +972,22 @@
}
+#define EF10_LEGACY_PF_PRIVILEGE_MASK \
+ (MC_CMD_PRIVILEGE_MASK_IN_GRP_ADMIN | \
+ MC_CMD_PRIVILEGE_MASK_IN_GRP_LINK | \
+ MC_CMD_PRIVILEGE_MASK_IN_GRP_ONLOAD | \
+ MC_CMD_PRIVILEGE_MASK_IN_GRP_PTP | \
+ MC_CMD_PRIVILEGE_MASK_IN_GRP_INSECURE_FILTERS | \
+ MC_CMD_PRIVILEGE_MASK_IN_GRP_MAC_SPOOFING | \
+ MC_CMD_PRIVILEGE_MASK_IN_GRP_UNICAST | \
+ MC_CMD_PRIVILEGE_MASK_IN_GRP_MULTICAST | \
+ MC_CMD_PRIVILEGE_MASK_IN_GRP_BROADCAST | \
+ MC_CMD_PRIVILEGE_MASK_IN_GRP_ALL_MULTICAST | \
+ MC_CMD_PRIVILEGE_MASK_IN_GRP_PROMISCUOUS)
+
+#define EF10_LEGACY_VF_PRIVILEGE_MASK 0
+
+
__checkReturn efx_rc_t
ef10_get_privilege_mask(
__in efx_nic_t *enp,
Index: head/sys/dev/sfxge/common/hunt_impl.h
===================================================================
--- head/sys/dev/sfxge/common/hunt_impl.h
+++ head/sys/dev/sfxge/common/hunt_impl.h
@@ -42,6 +42,67 @@
extern "C" {
#endif
+/* Missing register definitions */
+#ifndef ER_DZ_TX_PIOBUF_OFST
+#define ER_DZ_TX_PIOBUF_OFST 0x00001000
+#endif
+#ifndef ER_DZ_TX_PIOBUF_STEP
+#define ER_DZ_TX_PIOBUF_STEP 8192
+#endif
+#ifndef ER_DZ_TX_PIOBUF_ROWS
+#define ER_DZ_TX_PIOBUF_ROWS 2048
+#endif
+
+#ifndef ER_DZ_TX_PIOBUF_SIZE
+#define ER_DZ_TX_PIOBUF_SIZE 2048
+#endif
+
+#define HUNT_PIOBUF_NBUFS (16)
+#define HUNT_PIOBUF_SIZE (ER_DZ_TX_PIOBUF_SIZE)
+
+#define HUNT_MIN_PIO_ALLOC_SIZE (HUNT_PIOBUF_SIZE / 32)
+
+
+/* NIC */
+
+extern __checkReturn efx_rc_t
+hunt_board_cfg(
+ __in efx_nic_t *enp);
+
+
+/* PHY */
+
+#if EFSYS_OPT_BIST
+
+extern __checkReturn efx_rc_t
+hunt_bist_enable_offline(
+ __in efx_nic_t *enp);
+
+extern __checkReturn efx_rc_t
+hunt_bist_start(
+ __in efx_nic_t *enp,
+ __in efx_bist_type_t type);
+
+extern __checkReturn efx_rc_t
+hunt_bist_poll(
+ __in efx_nic_t *enp,
+ __in efx_bist_type_t type,
+ __out efx_bist_result_t *resultp,
+ __out_opt __drv_when(count > 0, __notnull)
+ uint32_t *value_maskp,
+ __out_ecount_opt(count) __drv_when(count > 0, __notnull)
+ unsigned long *valuesp,
+ __in size_t count);
+
+extern void
+hunt_bist_stop(
+ __in efx_nic_t *enp,
+ __in efx_bist_type_t type);
+
+#endif /* EFSYS_OPT_BIST */
+
+
+
/*
* FIXME: This is just a power of 2 which fits in an MCDI v1 message, and could
* possibly be increased, or the write size reported by newer firmware used
@@ -172,10 +233,6 @@
__in efx_nic_t *enp);
extern __checkReturn efx_rc_t
-hunt_board_cfg(
- __in efx_nic_t *enp);
-
-extern __checkReturn efx_rc_t
ef10_nic_set_drv_limits(
__inout efx_nic_t *enp,
__in efx_drv_limits_t *edlp);
@@ -623,35 +680,6 @@
#endif /* EFSYS_OPT_PHY_PROPS */
-#if EFSYS_OPT_BIST
-
-extern __checkReturn efx_rc_t
-hunt_bist_enable_offline(
- __in efx_nic_t *enp);
-
-extern __checkReturn efx_rc_t
-hunt_bist_start(
- __in efx_nic_t *enp,
- __in efx_bist_type_t type);
-
-extern __checkReturn efx_rc_t
-hunt_bist_poll(
- __in efx_nic_t *enp,
- __in efx_bist_type_t type,
- __out efx_bist_result_t *resultp,
- __out_opt __drv_when(count > 0, __notnull)
- uint32_t *value_maskp,
- __out_ecount_opt(count) __drv_when(count > 0, __notnull)
- unsigned long *valuesp,
- __in size_t count);
-
-extern void
-hunt_bist_stop(
- __in efx_nic_t *enp,
- __in efx_bist_type_t type);
-
-#endif /* EFSYS_OPT_BIST */
-
/* TX */
@@ -778,43 +806,6 @@
#endif /* EFSYS_OPT_QSTATS */
-/* PIO */
-
-/* Missing register definitions */
-#ifndef ER_DZ_TX_PIOBUF_OFST
-#define ER_DZ_TX_PIOBUF_OFST 0x00001000
-#endif
-#ifndef ER_DZ_TX_PIOBUF_STEP
-#define ER_DZ_TX_PIOBUF_STEP 8192
-#endif
-#ifndef ER_DZ_TX_PIOBUF_ROWS
-#define ER_DZ_TX_PIOBUF_ROWS 2048
-#endif
-
-#ifndef ER_DZ_TX_PIOBUF_SIZE
-#define ER_DZ_TX_PIOBUF_SIZE 2048
-#endif
-
-#define HUNT_PIOBUF_NBUFS (16)
-#define HUNT_PIOBUF_SIZE (ER_DZ_TX_PIOBUF_SIZE)
-
-#define HUNT_MIN_PIO_ALLOC_SIZE (HUNT_PIOBUF_SIZE / 32)
-
-#define EF10_LEGACY_PF_PRIVILEGE_MASK \
- (MC_CMD_PRIVILEGE_MASK_IN_GRP_ADMIN | \
- MC_CMD_PRIVILEGE_MASK_IN_GRP_LINK | \
- MC_CMD_PRIVILEGE_MASK_IN_GRP_ONLOAD | \
- MC_CMD_PRIVILEGE_MASK_IN_GRP_PTP | \
- MC_CMD_PRIVILEGE_MASK_IN_GRP_INSECURE_FILTERS | \
- MC_CMD_PRIVILEGE_MASK_IN_GRP_MAC_SPOOFING | \
- MC_CMD_PRIVILEGE_MASK_IN_GRP_UNICAST | \
- MC_CMD_PRIVILEGE_MASK_IN_GRP_MULTICAST | \
- MC_CMD_PRIVILEGE_MASK_IN_GRP_BROADCAST | \
- MC_CMD_PRIVILEGE_MASK_IN_GRP_ALL_MULTICAST | \
- MC_CMD_PRIVILEGE_MASK_IN_GRP_PROMISCUOUS)
-
-#define EF10_LEGACY_VF_PRIVILEGE_MASK 0
-
typedef uint32_t efx_piobuf_handle_t;
#define EFX_PIOBUF_HANDLE_INVALID ((efx_piobuf_handle_t) -1)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 11, 10:06 PM (4 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40629925
Default Alt Text
D6343.diff (4 KB)
Attached To
Mode
D6343: sfxge(4): prepare for moving EF10 definitions to ef10_impl.h
Attached
Detach File
Event Timeline
Log In to Comment