Linux-libre 4.14.12-gnu
[librecmc/linux-libre.git] / drivers / staging / media / atomisp / pci / atomisp2 / atomisp_helper.h
1 /*
2  * Support for Medifield PNW Camera Imaging ISP subsystem.
3  *
4  * Copyright (c) 2010 Intel Corporation. All Rights Reserved.
5  *
6  * Copyright (c) 2010 Silicon Hive www.siliconhive.com.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License version
10  * 2 as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  * 02110-1301, USA.
21  *
22  */
23 #ifndef _atomisp_helper_h_
24 #define _atomisp_helper_h_
25 extern void __iomem *atomisp_io_base;
26
27 static inline void __iomem *atomisp_get_io_virt_addr(unsigned int address)
28 {
29         void __iomem *ret = atomisp_io_base + (address & 0x003FFFFF);
30         return ret;
31 }
32 #endif
33