diff options
author | Taku Izumi <izumi.taku@jp.fujitsu.com> | 2015-08-21 11:29:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-25 00:06:34 +0300 |
commit | 2fcbca687702163ae3a37ec4eac5905d6f119296 (patch) | |
tree | dff775d4786b9f8fe33787471ff62173d0012d2b /drivers/net/fjes/fjes.h | |
parent | a18aaec21ec8f4d2a4e09ad590437777a1ebf691 (diff) | |
download | linux-2fcbca687702163ae3a37ec4eac5905d6f119296.tar.xz |
fjes: platform_driver's .probe and .remove routine
This patch implements platform_driver's .probe and .remove
routine, and also adds board specific private data structure.
This driver registers net_device at platform_driver's .probe
routine and unregisters net_device at its .remove routine.
Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fjes/fjes.h')
-rw-r--r-- | drivers/net/fjes/fjes.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/net/fjes/fjes.h b/drivers/net/fjes/fjes.h index 15ded9642101..54bc189a997c 100644 --- a/drivers/net/fjes/fjes.h +++ b/drivers/net/fjes/fjes.h @@ -24,7 +24,32 @@ #include <linux/acpi.h> +#include "fjes_hw.h" + #define FJES_ACPI_SYMBOL "Extended Socket" +#define FJES_MAX_QUEUES 1 +#define FJES_TX_RETRY_INTERVAL (20 * HZ) + +/* board specific private data structure */ +struct fjes_adapter { + struct net_device *netdev; + struct platform_device *plat_dev; + + struct napi_struct napi; + struct rtnl_link_stats64 stats64; + + unsigned int tx_retry_count; + unsigned long tx_start_jiffies; + unsigned long rx_last_jiffies; + bool unset_rx_last; + + bool force_reset; + bool open_guard; + + bool irq_registered; + + struct fjes_hw hw; +}; extern char fjes_driver_name[]; extern char fjes_driver_version[]; |