1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2010-2015, Intel Corporation.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU General Public License,
8  * version 2, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  */
15 
16 #ifndef _EVENT_FIFO_LOCAL_H
17 #define _EVENT_FIFO_LOCAL_H
18 
19 /*
20  * All events come from connections mapped on the system
21  * bus but do not use a global IRQ
22  */
23 #include "event_fifo_global.h"
24 
25 typedef enum {
26 	SP0_EVENT_ID,
27 	ISP0_EVENT_ID,
28 	STR2MIPI_EVENT_ID,
29 	N_EVENT_ID
30 } event_ID_t;
31 
32 #define	EVENT_QUERY_BIT		0
33 
34 /* Events are read from FIFO */
35 static const hrt_address event_source_addr[N_EVENT_ID] = {
36 	0x0000000000380000ULL,
37 	0x0000000000380004ULL,
38 	0xffffffffffffffffULL
39 };
40 
41 /* Read from FIFO are blocking, query data availability */
42 static const hrt_address event_source_query_addr[N_EVENT_ID] = {
43 	0x0000000000380010ULL,
44 	0x0000000000380014ULL,
45 	0xffffffffffffffffULL
46 };
47 
48 /* Events are written to FIFO */
49 static const hrt_address event_sink_addr[N_EVENT_ID] = {
50 	0x0000000000380008ULL,
51 	0x000000000038000CULL,
52 	0x0000000000090104ULL
53 };
54 
55 /* Writes to FIFO are blocking, query data space */
56 static const hrt_address event_sink_query_addr[N_EVENT_ID] = {
57 	0x0000000000380018ULL,
58 	0x000000000038001CULL,
59 	0x000000000009010CULL
60 };
61 
62 #endif /* _EVENT_FIFO_LOCAL_H */
63