Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved. |
| 3 | * |
| 4 | * This software is licensed under the terms of the GNU General Public |
| 5 | * License version 2, as published by the Free Software Foundation, and |
| 6 | * may be copied, distributed, and modified under those terms. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
Ben Chan | bbd500d | 2014-06-30 22:13:17 -0700 | [diff] [blame] | 14 | #ifndef __GDM72XX_GDM_WIMAX_H__ |
| 15 | #define __GDM72XX_GDM_WIMAX_H__ |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 16 | |
| 17 | #include <linux/netdevice.h> |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 18 | #include <linux/types.h> |
| 19 | #include "wm_ioctl.h" |
| 20 | #if defined(CONFIG_WIMAX_GDM72XX_QOS) |
| 21 | #include "gdm_qos.h" |
| 22 | #endif |
| 23 | |
| 24 | #define DRIVER_VERSION "3.2.3" |
| 25 | |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 26 | struct phy_dev { |
Michalis Pappas | ac1a3bf | 2014-05-09 18:08:28 +0800 | [diff] [blame] | 27 | void *priv_dev; |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 28 | struct net_device *netdev; |
Michalis Pappas | ac1a3bf | 2014-05-09 18:08:28 +0800 | [diff] [blame] | 29 | int (*send_func)(void *priv_dev, void *data, int len, |
| 30 | void (*cb)(void *cb_data), void *cb_data); |
| 31 | int (*rcv_func)(void *priv_dev, |
| 32 | void (*cb)(void *cb_data, void *data, int len), |
| 33 | void *cb_data); |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | struct nic { |
| 37 | struct net_device *netdev; |
| 38 | struct phy_dev *phy_dev; |
Michalis Pappas | ac1a3bf | 2014-05-09 18:08:28 +0800 | [diff] [blame] | 39 | struct data_s sdk_data[SIOC_DATA_MAX]; |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 40 | #if defined(CONFIG_WIMAX_GDM72XX_QOS) |
Michalis Pappas | ac1a3bf | 2014-05-09 18:08:28 +0800 | [diff] [blame] | 41 | struct qos_cb_s qos; |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 42 | #endif |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 43 | }; |
| 44 | |
Michalis Pappas | d0a3956 | 2014-05-09 18:08:20 +0800 | [diff] [blame] | 45 | int register_wimax_device(struct phy_dev *phy_dev, struct device *pdev); |
| 46 | int gdm_wimax_send_tx(struct sk_buff *skb, struct net_device *dev); |
| 47 | void unregister_wimax_device(struct phy_dev *phy_dev); |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 48 | |
Ben Chan | bbd500d | 2014-06-30 22:13:17 -0700 | [diff] [blame] | 49 | #endif /* __GDM72XX_GDM_WIMAX_H__ */ |