Commit 524f6b29 authored by Jiawen Wu's avatar Jiawen Wu Committed by Jakub Kicinski

net: txgbe: Move defines into unified file

Remove txgbe.h, move defines into txgbe_type.h file.
Signed-off-by: default avatarJiawen Wu <jiawenwu@trustnetic.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8f727eec
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2015 - 2022 Beijing WangXun Technology Co., Ltd. */
#ifndef _TXGBE_H_
#define _TXGBE_H_
#define TXGBE_MAX_FDIR_INDICES 63
#define TXGBE_MAX_RX_QUEUES (TXGBE_MAX_FDIR_INDICES + 1)
#define TXGBE_MAX_TX_QUEUES (TXGBE_MAX_FDIR_INDICES + 1)
#define TXGBE_SP_MAX_TX_QUEUES 128
#define TXGBE_SP_MAX_RX_QUEUES 128
#define TXGBE_SP_RAR_ENTRIES 128
#define TXGBE_SP_MC_TBL_SIZE 128
#define TXGBE_MAC_STATE_DEFAULT 0x1
#define TXGBE_MAC_STATE_MODIFIED 0x2
#define TXGBE_MAC_STATE_IN_USE 0x4
extern char txgbe_driver_name[];
#endif /* _TXGBE_H_ */
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include "../libwx/wx_hw.h" #include "../libwx/wx_hw.h"
#include "txgbe_type.h" #include "txgbe_type.h"
#include "txgbe_hw.h" #include "txgbe_hw.h"
#include "txgbe.h"
/** /**
* txgbe_init_thermal_sensor_thresh - Inits thermal sensor thresholds * txgbe_init_thermal_sensor_thresh - Inits thermal sensor thresholds
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include "../libwx/wx_hw.h" #include "../libwx/wx_hw.h"
#include "txgbe_type.h" #include "txgbe_type.h"
#include "txgbe_hw.h" #include "txgbe_hw.h"
#include "txgbe.h"
char txgbe_driver_name[] = "txgbe"; char txgbe_driver_name[] = "txgbe";
......
...@@ -67,6 +67,20 @@ ...@@ -67,6 +67,20 @@
#define TXGBE_PBANUM1_PTR 0x06 #define TXGBE_PBANUM1_PTR 0x06
#define TXGBE_PBANUM_PTR_GUARD 0xFAFA #define TXGBE_PBANUM_PTR_GUARD 0xFAFA
#define TXGBE_MAX_FDIR_INDICES 63
#define TXGBE_MAX_RX_QUEUES (TXGBE_MAX_FDIR_INDICES + 1)
#define TXGBE_MAX_TX_QUEUES (TXGBE_MAX_FDIR_INDICES + 1)
#define TXGBE_SP_MAX_TX_QUEUES 128
#define TXGBE_SP_MAX_RX_QUEUES 128
#define TXGBE_SP_RAR_ENTRIES 128
#define TXGBE_SP_MC_TBL_SIZE 128
#define TXGBE_MAC_STATE_DEFAULT 0x1
#define TXGBE_MAC_STATE_MODIFIED 0x2
#define TXGBE_MAC_STATE_IN_USE 0x4
struct txgbe_mac_addr { struct txgbe_mac_addr {
u8 addr[ETH_ALEN]; u8 addr[ETH_ALEN];
u16 state; /* bitmask */ u16 state; /* bitmask */
...@@ -85,4 +99,6 @@ struct txgbe_adapter { ...@@ -85,4 +99,6 @@ struct txgbe_adapter {
char eeprom_id[32]; char eeprom_id[32];
}; };
extern char txgbe_driver_name[];
#endif /* _TXGBE_TYPE_H_ */ #endif /* _TXGBE_TYPE_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment