1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  */
6 
7 #ifndef _IA_CSS_DEVICE_ACCESS_H
8 #define _IA_CSS_DEVICE_ACCESS_H
9 
10 /* @file
11  * File containing internal functions for the CSS-API to access the CSS device.
12  */
13 
14 #include <type_support.h> /* for uint*, size_t */
15 #include <system_local.h> /* for hrt_address */
16 #include <ia_css_env.h>   /* for ia_css_hw_access_env */
17 
18 void
19 ia_css_device_access_init(const struct ia_css_hw_access_env *env);
20 
21 uint8_t
22 ia_css_device_load_uint8(const hrt_address addr);
23 
24 uint16_t
25 ia_css_device_load_uint16(const hrt_address addr);
26 
27 uint32_t
28 ia_css_device_load_uint32(const hrt_address addr);
29 
30 uint64_t
31 ia_css_device_load_uint64(const hrt_address addr);
32 
33 void
34 ia_css_device_store_uint8(const hrt_address addr, const uint8_t data);
35 
36 void
37 ia_css_device_store_uint16(const hrt_address addr, const uint16_t data);
38 
39 void
40 ia_css_device_store_uint32(const hrt_address addr, const uint32_t data);
41 
42 void
43 ia_css_device_store_uint64(const hrt_address addr, const uint64_t data);
44 
45 void
46 ia_css_device_load(const hrt_address addr, void *data, const size_t size);
47 
48 void
49 ia_css_device_store(const hrt_address addr, const void *data,
50 		    const size_t size);
51 
52 #endif /* _IA_CSS_DEVICE_ACCESS_H */
53