2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2010-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 __DMA_PRIVATE_H_INCLUDED__
16 #define __DMA_PRIVATE_H_INCLUDED__
18 #include "dma_public.h"
20 #include "device_access.h"
22 #include "assert_support.h"
24 STORAGE_CLASS_DMA_C void dma_reg_store(const dma_ID_t ID,
25 const unsigned int reg,
28 assert(ID < N_DMA_ID);
29 assert(DMA_BASE[ID] != (hrt_address)-1);
30 ia_css_device_store_uint32(DMA_BASE[ID] + reg*sizeof(hrt_data), value);
33 STORAGE_CLASS_DMA_C hrt_data dma_reg_load(const dma_ID_t ID,
34 const unsigned int reg)
36 assert(ID < N_DMA_ID);
37 assert(DMA_BASE[ID] != (hrt_address)-1);
38 return ia_css_device_load_uint32(DMA_BASE[ID] + reg*sizeof(hrt_data));
41 #endif /* __DMA_PRIVATE_H_INCLUDED__ */