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