2 * Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved.
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.
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.
17 #include <linux/netdevice.h>
18 #include <linux/types.h>
20 #include "gdm_endian.h"
22 #define MAX_NIC_TYPE 4
23 #define MAX_RX_SUBMIT_COUNT 3
24 #define DRIVER_VERSION "3.7.17.0"
33 enum CALLBACK_CONTEXT {
48 struct net_device *dev[MAX_NIC_TYPE];
49 int (*send_hci_func)(void *priv_dev, void *data, int len,
50 void (*cb)(void *cb_data), void *cb_data);
51 int (*send_sdu_func)(void *priv_dev, void *data, int len,
52 unsigned int dftEpsId, unsigned int epsId,
53 void (*cb)(void *cb_data), void *cb_data,
54 int dev_idx, int nic_type);
55 int (*rcv_func)(void *priv_dev,
56 int (*cb)(void *cb_data, void *data, int len,
58 void *cb_data, int context);
59 struct gdm_endian *(*get_endian)(void *priv_dev);
63 struct net_device *netdev;
64 struct phy_dev *phy_dev;
65 struct net_device_stats stats;
66 struct pdn_table pdn_table;
67 u8 dest_mac_addr[ETH_ALEN];
68 u8 src_mac_addr[ETH_ALEN];
73 int gdm_lte_event_init(void);
74 void gdm_lte_event_exit(void);
76 void start_rx_proc(struct phy_dev *phy_dev);
77 int register_lte_device(struct phy_dev *phy_dev, struct device *dev,
79 void unregister_lte_device(struct phy_dev *phy_dev);
81 #endif /* _GDM_LTE_H_ */