fjes: net_device_ops.ndo_open and .ndo_stop
[deliverable/linux.git] / drivers / net / fjes / fjes.h
CommitLineData
658d439b
TI
1/*
2 * FUJITSU Extended Socket Network Device driver
3 * Copyright (c) 2015 FUJITSU LIMITED
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, see <http://www.gnu.org/licenses/>.
16 *
17 * The full GNU General Public License is included in this distribution in
18 * the file called "COPYING".
19 *
20 */
21
22#ifndef FJES_H_
23#define FJES_H_
24
25#include <linux/acpi.h>
26
2fcbca68
TI
27#include "fjes_hw.h"
28
658d439b 29#define FJES_ACPI_SYMBOL "Extended Socket"
2fcbca68
TI
30#define FJES_MAX_QUEUES 1
31#define FJES_TX_RETRY_INTERVAL (20 * HZ)
e5d486dc 32#define FJES_OPEN_ZONE_UPDATE_WAIT (300) /* msec */
2fcbca68
TI
33
34/* board specific private data structure */
35struct fjes_adapter {
36 struct net_device *netdev;
37 struct platform_device *plat_dev;
38
39 struct napi_struct napi;
40 struct rtnl_link_stats64 stats64;
41
42 unsigned int tx_retry_count;
43 unsigned long tx_start_jiffies;
44 unsigned long rx_last_jiffies;
45 bool unset_rx_last;
46
47 bool force_reset;
48 bool open_guard;
49
50 bool irq_registered;
51
52 struct fjes_hw hw;
53};
658d439b
TI
54
55extern char fjes_driver_name[];
56extern char fjes_driver_version[];
8cdc3f6c 57extern const u32 fjes_support_mtu[];
658d439b
TI
58
59#endif /* FJES_H_ */
This page took 0.028179 seconds and 5 git commands to generate.