1 /* 2 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #ifndef NET_BDH_ADAPTER_H 10 #define NET_BDH_ADAPTER_H 11 12 #include <linux/netdevice.h> 13 #include "net_device.h" 14 15 16 #ifdef __cplusplus 17 #if __cplusplus 18 extern "C" { 19 #endif 20 #endif 21 22 23 void set_krn_netdev(struct net_device *netdev); 24 struct net_device* get_krn_netdev(void); 25 struct wiphy* get_krn_wiphy(void); 26 27 int32_t hdf_bdh6_netdev_init(struct NetDevice *netDev); 28 int32_t hdf_bdh6_netdev_open(struct NetDevice *netDev); 29 int32_t hdf_bdh6_netdev_stop(struct NetDevice *netDev); 30 31 32 struct NetDeviceInterFace* wal_get_net_dev_ops(void); 33 int dhd_netdev_changemtu_wrapper(struct net_device *netdev, int mtu); 34 struct net_device* GetLinuxInfByNetDevice(const struct NetDevice *netDevice); 35 36 #ifdef __cplusplus 37 #if __cplusplus 38 } 39 #endif 40 #endif 41 42 #endif 43