[intelxl] Always issue "clear PXE mode" admin queue command

Remove knowledge of the GLLAN_RCTL_0 register (which changes location
between the XL810 and E810 register maps), and instead unconditionally
issue the "clear PXE mode" command with the EEXIST error silenced.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2022-08-11 15:28:03 +01:00
parent faf26bf8b8
commit 99242bbe2e
2 changed files with 11 additions and 13 deletions
+3 -4
View File
@@ -377,6 +377,9 @@ struct intelxl_admin_descriptor {
/** Admin descriptor uses data buffer */
#define INTELXL_ADMIN_FL_BUF 0x1000
/** Error: attempt to create something that already exists */
#define INTELXL_ADMIN_EEXIST 13
/** Admin queue */
struct intelxl_admin {
/** Descriptors */
@@ -577,10 +580,6 @@ struct intelxl_context_rx {
/** Queue Tail Pointer Register (offset) */
#define INTELXL_QXX_TAIL 0x8000
/** Global RLAN Control 0 register */
#define INTELXL_GLLAN_RCTL_0 0x12a500
#define INTELXL_GLLAN_RCTL_0_PXE_MODE 0x00000001UL /**< PXE mode */
/** Transmit data descriptor */
struct intelxl_tx_data_descriptor {
/** Buffer address */