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