slatecom_interface: move header file to include path

Move header file to include path for other driver to
call the slate_events_bridge interfaces.

Change-Id: I757a9a4249452c695b0566a08bbce39e3fd71de5
Signed-off-by: Ajit Kumar <kajit@codeaurora.org>
This commit is contained in:
Ajit Kumar 2021-05-27 15:55:26 +05:30
parent 59883b1977
commit 11f65a6f2f
2 changed files with 38 additions and 26 deletions

View File

@ -7,32 +7,7 @@
#define SLATE_EVENTS_BRIDGE_H
#include <linux/notifier.h>
enum event_group_type {
SEB_BUTTON,
SEB_QBG,
SEB_RSB,
SEB_TOUCH,
SEB_MAX
};
/* Use the seb_register_for_slate_event API to register for events for
* a particular group type.
* This API will return a handle that can be used to un-reg for events
* using the seb_unregister_for_slate_event API by passing in that handle
* as an argument.
*/
void *seb_register_for_slate_event(enum event_group_type event,
struct notifier_block *nb);
int seb_unregister_for_slate_event(void *seb_handle,
struct notifier_block *nb);
/* Use the seb_send_event_to_slate API to send an event to Slate.
* API return success/failure for the send event.
*/
int seb_send_event_to_slate(void *seb_handle, enum event_group_type event,
void *event_buf, uint32_t buf_size);
#include <linux/soc/qcom/slate_events_bridge_intf.h>
/* APIs for slate_event_bridge_rpmsg */
void seb_notify_glink_channel_state(bool state);

View File

@ -0,0 +1,37 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
*/
#ifndef SLATE_EVENTS_BRIDGE_INTF_H
#define SLATE_EVENTS_BRIDGE_INTF_H
#include <linux/notifier.h>
enum event_group_type {
SEB_BUTTON,
SEB_QBG,
SEB_RSB,
SEB_TOUCH,
SEB_MAX
};
/* Use the seb_register_for_slate_event API to register for events for
* a particular group type.
* This API will return a handle that can be used to un-reg for events
* using the seb_unregister_for_slate_event API by passing in that handle
* as an argument.
*/
void *seb_register_for_slate_event(enum event_group_type event,
struct notifier_block *nb);
int seb_unregister_for_slate_event(void *seb_handle,
struct notifier_block *nb);
/* Use the seb_send_event_to_slate API to send an event to Slate.
* API return success/failure for the send event.
*/
int seb_send_event_to_slate(void *seb_handle, enum event_group_type event,
void *event_buf, uint32_t buf_size);
#endif /* SLATE_EVENTS_BRIDGE_INTF_H */