Loading drivers/soc/qcom/slate_events_bridge.h +1 −26 Original line number Diff line number Diff line Loading @@ -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); Loading include/linux/soc/qcom/slate_events_bridge_intf.h 0 → 100644 +37 −0 Original line number Diff line number Diff line /* 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 */ Loading
drivers/soc/qcom/slate_events_bridge.h +1 −26 Original line number Diff line number Diff line Loading @@ -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); Loading
include/linux/soc/qcom/slate_events_bridge_intf.h 0 → 100644 +37 −0 Original line number Diff line number Diff line /* 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 */