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

Commit ac2254da authored by Venkat Chinta's avatar Venkat Chinta
Browse files

msm: camera: isp: Move event bottom-halves to hardware layer



Currently the bottom half for all hardware events resides in
the hardware manager layer. This bottom half polls all VFE
hardware for the occurrence of all types of events every time
it is invoked. This change moves bottom-half processing to
the hardware layer and adds an event callback function in the
hardware manager layer. This callback function is invoked by
the bottom-halves in the hardware layer with knowledge of the
specific resource and event type and hardware index, thus
eliminating the need to poll all hardware for all types of
events.

Change-Id: If1a50e2386d6d0d73f9e8b9ecceed72fcb73023c
Signed-off-by: default avatarVenkat Chinta <vchinta@codeaurora.org>
parent 364475ab
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 */

#ifndef _CAM_HW_INTF_H_
@@ -73,4 +73,8 @@ struct cam_hw_intf {
	void                        *hw_priv;
};

/* hardware event callback function type */
typedef int (*cam_hw_mgr_event_cb_func)(void *priv, uint32_t evt_id,
	void *evt_data);

#endif /* _CAM_HW_INTF_H_ */
Loading