mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "platform: msm: Add snapshot of msm_11ad driver"
This commit is contained in:
commit
2da77626ea
5 changed files with 1811 additions and 0 deletions
|
|
@ -91,4 +91,15 @@ config QPNP_REVID
|
|||
numbers in the kernel log along with the PMIC option status. The PMIC
|
||||
type is mapped to a QTI chip part number and logged as well.
|
||||
|
||||
config MSM_11AD
|
||||
tristate "Platform driver for 11ad chip"
|
||||
depends on PCI
|
||||
depends on PCI_MSM
|
||||
help
|
||||
This module adds required platform support for wireless adapter based on
|
||||
Qualcomm Technologies, Inc. 11ad chip, integrated into MSM platform
|
||||
|
||||
If you choose to build it as a module, it will be called
|
||||
msm_11ad_proxy.
|
||||
|
||||
endmenu
|
||||
|
|
|
|||
|
|
@ -10,3 +10,4 @@ obj-$(CONFIG_MSM_GENI_SE) += msm-geni-se.o
|
|||
obj-$(CONFIG_USB_BAM) += usb_bam.o
|
||||
obj-$(CONFIG_QPNP_REVID) += qpnp-revid.o
|
||||
obj-$(CONFIG_SPS) += sps/
|
||||
obj-$(CONFIG_MSM_11AD) += msm_11ad/
|
||||
|
|
|
|||
11
drivers/platform/msm/msm_11ad/Makefile
Normal file
11
drivers/platform/msm/msm_11ad/Makefile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
obj-$(CONFIG_MSM_11AD) += msm_11ad_proxy.o
|
||||
|
||||
msm_11ad_proxy-y := msm_11ad.o
|
||||
subdir-ccflags-y += -D__CHECK_ENDIAN__
|
||||
|
||||
# need to locate wil_platform.h
|
||||
WIL_11AD_PATH = $(srctree)/drivers/net/wireless/ath/wil6210
|
||||
subdir-ccflags-y += -I$(WIL_11AD_PATH)
|
||||
|
||||
1755
drivers/platform/msm/msm_11ad/msm_11ad.c
Normal file
1755
drivers/platform/msm/msm_11ad/msm_11ad.c
Normal file
File diff suppressed because it is too large
Load diff
33
drivers/platform/msm/msm_11ad/msm_11ad.h
Normal file
33
drivers/platform/msm/msm_11ad/msm_11ad.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#ifndef __MSM_11AD_H__
|
||||
#define __MSM_11AD_H__
|
||||
|
||||
struct device;
|
||||
struct wil_platform_ops;
|
||||
struct wil_platform_rops;
|
||||
|
||||
/* msm_11ad_dev_init - call when binding to device, during probe()
|
||||
* @dev: device structure of pci device
|
||||
* @ops: pointer to operations supported by platform driver
|
||||
* Will be filled by this function call
|
||||
* @rops: pointer to callback functions provided by wil device driver.
|
||||
* the platform driver copies the structure contents to its
|
||||
* internal storage. May be NULL if device driver does not
|
||||
* support rops.
|
||||
* @wil_handle: context for wil device driver, will be provided
|
||||
* when platform driver invokes any of the callback
|
||||
* functions in rops. May be NULL if rops is also NULL
|
||||
*/
|
||||
void *msm_11ad_dev_init(struct device *dev, struct wil_platform_ops *ops,
|
||||
const struct wil_platform_rops *rops, void *wil_handle);
|
||||
|
||||
/* call on insmod */
|
||||
int msm_11ad_modinit(void);
|
||||
|
||||
/* call on rmmod */
|
||||
void msm_11ad_modexit(void);
|
||||
|
||||
#endif /* __MSM_11AD_H__ */
|
||||
Loading…
Reference in a new issue