xref: /OK3568_Linux_fs/u-boot/include/iomem.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * SPDX-License-Identifier:     GPL-2.0+
3  *
4  * (C) Copyright 2018 Rockchip Electronics Co., Ltd
5  *
6  */
7 
8 #ifndef _ROCKCHIP_IOMEM_H_
9 #define _ROCKCHIP_IOMEM_H_
10 
11 /**
12  * iomem_show() - Show iomem data. Usually for peripheral registers.
13  *
14  * @lable:	Title to show
15  * @base:	Base address of iomem
16  * @start:	Start offset
17  * @end:	End offset
18  */
19 void iomem_show(const char *label, unsigned long base, size_t start, size_t end);
20 
21 /**
22  * iomem_show_by_compatible() - Show iomem data and auto find base address by
23  *				compabile(sub string match).
24  *
25  * @compat:	Compatible name, sub string match.
26  * @start:	Start offset
27  * @end:	End offset
28  *
29  * eg: iomem_show_by_compatible("-grf", 0x0, 0x200);
30  *     first node that contains "-grf" will be dump.
31  *
32  */
33 void iomem_show_by_compatible(const char *compat, size_t start, size_t end);
34 
35 #endif
36