19d4fa1a1SMauro Carvalho Chehab /* 29d4fa1a1SMauro Carvalho Chehab * Support for Intel Camera Imaging ISP subsystem. 39d4fa1a1SMauro Carvalho Chehab * Copyright (c) 2015, Intel Corporation. 49d4fa1a1SMauro Carvalho Chehab * 59d4fa1a1SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify it 69d4fa1a1SMauro Carvalho Chehab * under the terms and conditions of the GNU General Public License, 79d4fa1a1SMauro Carvalho Chehab * version 2, as published by the Free Software Foundation. 89d4fa1a1SMauro Carvalho Chehab * 99d4fa1a1SMauro Carvalho Chehab * This program is distributed in the hope it will be useful, but WITHOUT 109d4fa1a1SMauro Carvalho Chehab * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 119d4fa1a1SMauro Carvalho Chehab * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 129d4fa1a1SMauro Carvalho Chehab * more details. 139d4fa1a1SMauro Carvalho Chehab */ 149d4fa1a1SMauro Carvalho Chehab 159d4fa1a1SMauro Carvalho Chehab #ifndef _IA_CSS_DEVICE_ACCESS_H 169d4fa1a1SMauro Carvalho Chehab #define _IA_CSS_DEVICE_ACCESS_H 179d4fa1a1SMauro Carvalho Chehab 189d4fa1a1SMauro Carvalho Chehab /* @file 199d4fa1a1SMauro Carvalho Chehab * File containing internal functions for the CSS-API to access the CSS device. 209d4fa1a1SMauro Carvalho Chehab */ 219d4fa1a1SMauro Carvalho Chehab 229d4fa1a1SMauro Carvalho Chehab #include <type_support.h> /* for uint*, size_t */ 23f90e73ceSMauro Carvalho Chehab #include <system_local.h> /* for hrt_address */ 249d4fa1a1SMauro Carvalho Chehab #include <ia_css_env.h> /* for ia_css_hw_access_env */ 259d4fa1a1SMauro Carvalho Chehab 269d4fa1a1SMauro Carvalho Chehab void 279d4fa1a1SMauro Carvalho Chehab ia_css_device_access_init(const struct ia_css_hw_access_env *env); 289d4fa1a1SMauro Carvalho Chehab 299d4fa1a1SMauro Carvalho Chehab uint8_t 309d4fa1a1SMauro Carvalho Chehab ia_css_device_load_uint8(const hrt_address addr); 319d4fa1a1SMauro Carvalho Chehab 329d4fa1a1SMauro Carvalho Chehab uint16_t 339d4fa1a1SMauro Carvalho Chehab ia_css_device_load_uint16(const hrt_address addr); 349d4fa1a1SMauro Carvalho Chehab 359d4fa1a1SMauro Carvalho Chehab uint32_t 369d4fa1a1SMauro Carvalho Chehab ia_css_device_load_uint32(const hrt_address addr); 379d4fa1a1SMauro Carvalho Chehab 389d4fa1a1SMauro Carvalho Chehab uint64_t 399d4fa1a1SMauro Carvalho Chehab ia_css_device_load_uint64(const hrt_address addr); 409d4fa1a1SMauro Carvalho Chehab 419d4fa1a1SMauro Carvalho Chehab void 429d4fa1a1SMauro Carvalho Chehab ia_css_device_store_uint8(const hrt_address addr, const uint8_t data); 439d4fa1a1SMauro Carvalho Chehab 449d4fa1a1SMauro Carvalho Chehab void 459d4fa1a1SMauro Carvalho Chehab ia_css_device_store_uint16(const hrt_address addr, const uint16_t data); 469d4fa1a1SMauro Carvalho Chehab 479d4fa1a1SMauro Carvalho Chehab void 489d4fa1a1SMauro Carvalho Chehab ia_css_device_store_uint32(const hrt_address addr, const uint32_t data); 499d4fa1a1SMauro Carvalho Chehab 509d4fa1a1SMauro Carvalho Chehab void 519d4fa1a1SMauro Carvalho Chehab ia_css_device_store_uint64(const hrt_address addr, const uint64_t data); 529d4fa1a1SMauro Carvalho Chehab 539d4fa1a1SMauro Carvalho Chehab void 549d4fa1a1SMauro Carvalho Chehab ia_css_device_load(const hrt_address addr, void *data, const size_t size); 559d4fa1a1SMauro Carvalho Chehab 569d4fa1a1SMauro Carvalho Chehab void 579d4fa1a1SMauro Carvalho Chehab ia_css_device_store(const hrt_address addr, const void *data, 589d4fa1a1SMauro Carvalho Chehab const size_t size); 599d4fa1a1SMauro Carvalho Chehab 609d4fa1a1SMauro Carvalho Chehab #endif /* _IA_CSS_DEVICE_ACCESS_H */ 61