Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1a62985 authored by Lior David's avatar Lior David
Browse files

platform: msm: Add snapshot of msm_11ad driver



This change adds snapshot of the msm_11ad driver,
the platform driver for the 11ad chip managed by
the wil6210 driver.

This snapshot is taken as of commit <480942b449979>
(msm_11ad: remove msm PCIe shadow control)
This change also include this fix for compilation:
The original code uses the functions arm_iommu_attach_device,
arm_iommu_detach_device, arm_iommu_create_mapping and
arm_iommu_release_mapping. These functions are now deprecated
and renamed with __depr prefix. For now fixed the code by
renaming the function calls.

Change-Id: Iddb0b38bcfaf2a74f0809c99d02050838a7323da
Signed-off-by: default avatarLior David <liord@codeaurora.org>
parent d5c7199f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -144,6 +144,18 @@ config IPA_UT
	  The user interface to run and control the tests is debugfs file
	  system.

config MSM_11AD
	tristate "Platform driver for 11ad chip"
	depends on PCI
	depends on PCI_MSM
	default n
	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.

config IPA_EMULATION
	bool "IPA on X86 Linux (IPA emulation support)"
	depends on X86 && IPA3
+1 −0
Original line number Diff line number Diff line
@@ -11,3 +11,4 @@ obj-$(CONFIG_GSI) += gsi/
obj-$(CONFIG_IPA3) += ipa/
obj-$(CONFIG_USB_BAM) += usb_bam.o
obj-$(CONFIG_QCOM_GENI_SE) += qcom-geni-se.o
obj-$(CONFIG_MSM_11AD) += msm_11ad/
+11 −0
Original line number Diff line number Diff line
# 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 = drivers/net/wireless/ath/wil6210
subdir-ccflags-y += -I$(WIL_11AD_PATH)
+1603 −0

File added.

Preview size limit exceeded, changes collapsed.

+33 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2015-2019, 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__ */