Merge tag 'powerpc-4.15-7' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[sfrench/cifs-2.6.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / ia_css_device_access.h
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 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 _IA_CSS_DEVICE_ACCESS_H
16 #define _IA_CSS_DEVICE_ACCESS_H
17
18 /* @file
19  * File containing internal functions for the CSS-API to access the CSS device.
20  */
21
22 #include <type_support.h> /* for uint*, size_t */
23 #include <system_types.h> /* for hrt_address */
24 #include <ia_css_env.h>   /* for ia_css_hw_access_env */
25
26 void
27 ia_css_device_access_init(const struct ia_css_hw_access_env *env);
28
29 uint8_t
30 ia_css_device_load_uint8(const hrt_address addr);
31
32 uint16_t
33 ia_css_device_load_uint16(const hrt_address addr);
34
35 uint32_t
36 ia_css_device_load_uint32(const hrt_address addr);
37
38 uint64_t
39 ia_css_device_load_uint64(const hrt_address addr);
40
41 void
42 ia_css_device_store_uint8(const hrt_address addr, const uint8_t data);
43
44 void
45 ia_css_device_store_uint16(const hrt_address addr, const uint16_t data);
46
47 void
48 ia_css_device_store_uint32(const hrt_address addr, const uint32_t data);
49
50 void
51 ia_css_device_store_uint64(const hrt_address addr, const uint64_t data);
52
53 void
54 ia_css_device_load(const hrt_address addr, void *data, const size_t size);
55
56 void
57 ia_css_device_store(const hrt_address addr, const void *data, const size_t size);
58
59 #endif /* _IA_CSS_DEVICE_ACCESS_H */