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

Commit 41eb039b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qca402x: qca402 driver interface header"

parents 15275d16 20e714b5
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
* Qualcomm Technologies, Inc. MSM QCA402x

Required properties for parent node:
- compatible :
    - "qcom,qca402"

Optional properties
- endpoints : Number of endpoints used for communication with the QCA402x
               device
Example:
qcom,qca402x {
	compatible = "qcom,qca402";
	endpoints = <1>;
};
+5 −0
Original line number Diff line number Diff line
@@ -123,6 +123,11 @@
	qcom,rmnet-ipa {
		status = "disabled";
	};

	qcom,qca402x {
		compatible = "qcom,qca402";
		endpoints = <1>;
	};
};

&firmware {
+1 −0
Original line number Diff line number Diff line
@@ -26,5 +26,6 @@ header-y += msm_media_info.h
header-y += msmb_camera.h
header-y += msmb_generic_buf_mgr.h
header-y += msmb_isp.h
header-y += msmb_qca.h
header-y += msmb_ispif.h
header-y += msmb_pproc.h
 No newline at end of file
+62 −0
Original line number Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation.
 * All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
#ifndef __UAPI_LINUX_MSMB_QCA402X_H
#define __UAPI_LINUX_MSMB_QCA402X_H

#include <linux/types.h>
#include <linux/ioctl.h>
#define QCA402X_HTC

#define MSM_QCA_EVENT_ENQ_BUF  0
#define MSM_QCA_EVENT_SEND_MSG 1
#define MSM_QCA_EVENT_RECV_MSG 2

struct msm_qca_message_type {
	__u64 header;
	__u64 buff_addr;
	int fd;
	__u32 header_size;
	__u32 data_size;
	__u8 cmd;
	__u8 channel_id;
	__u8 is_ion_data;
	__u8 last_data;
};

struct msm_qca_event_type {
	__u8 cmd;
	__u8 channel_id;
};

struct msm_qca_event_list_type {
	__u64 events;
	__u32 num_events;
};

#define MSM_QCA402X_ENQUEUE_BUFFER \
	_IOWR(0xdd, 1, struct msm_qca_message_type)
#define MSM_QCA402X_SEND_MESSAGE \
	_IOWR(0xdd, 2, struct msm_qca_message_type)
#define MSM_QCA402X_RECEIVE_MESSAGE \
	_IOWR(0xdd, 3, struct msm_qca_message_type)
#define MSM_QCA402X_FLUSH_BUFFERS \
	_IOWR(0xdd, 4, struct msm_qca_event_list_type)
#define MSM_QCA402X_ABORT_MESSAGE \
	_IOWR(0xdd, 5, struct msm_qca_event_list_type)
#define MSM_QCA402X_REGISTER_EVENT \
	_IOWR(0xdd, 6, struct msm_qca_event_list_type)
#define MSM_QCA402X_UNREGISTER_EVENT \
	_IOWR(0xdd, 7, struct msm_qca_event_list_type)
#endif /*__UAPI_LINUX_MSMB_QCA402X_H*/