]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_device_access.h
2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
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.
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
15 #ifndef _IA_CSS_DEVICE_ACCESS_H
16 #define _IA_CSS_DEVICE_ACCESS_H
19 * File containing internal functions for the CSS-API to access the CSS device.
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 */
27 ia_css_device_access_init(const struct ia_css_hw_access_env
*env
);
30 ia_css_device_load_uint8(const hrt_address addr
);
33 ia_css_device_load_uint16(const hrt_address addr
);
36 ia_css_device_load_uint32(const hrt_address addr
);
39 ia_css_device_load_uint64(const hrt_address addr
);
42 ia_css_device_store_uint8(const hrt_address addr
, const uint8_t data
);
45 ia_css_device_store_uint16(const hrt_address addr
, const uint16_t data
);
48 ia_css_device_store_uint32(const hrt_address addr
, const uint32_t data
);
51 ia_css_device_store_uint64(const hrt_address addr
, const uint64_t data
);
54 ia_css_device_load(const hrt_address addr
, void *data
, const size_t size
);
57 ia_css_device_store(const hrt_address addr
, const void *data
, const size_t size
);
59 #endif /* _IA_CSS_DEVICE_ACCESS_H */