aboutsummaryrefslogtreecommitdiff
path: root/powerdebug.h
diff options
context:
space:
mode:
authorAmit Arora <amit.arora@linaro.org>2010-10-25 16:03:21 +0530
committerAmit Arora <amit.arora@linaro.org>2010-10-25 16:03:21 +0530
commiteb6cba934b52f6685394d04bd1937ab7309fc9e1 (patch)
tree489c4e17ec3187b06913c183a46ceb6ed4e7b36a /powerdebug.h
parent67b03314155db2dd264e48ade570dcc3e6fd6236 (diff)
downloadpowerdebug-eb6cba934b52f6685394d04bd1937ab7309fc9e1.tar.gz
Read/Dump clock tree in/from memory
Diffstat (limited to 'powerdebug.h')
-rw-r--r--powerdebug.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/powerdebug.h b/powerdebug.h
index 6ce68cd..bb9f1c0 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -55,6 +55,10 @@ struct clock_info {
int flags;
int rate;
int usecount;
+ int num_children;
+ int last_child;
+ struct clock_info *parent;
+ struct clock_info **children;
} *clocks_info;
extern int numregulators;
@@ -65,7 +69,11 @@ extern void usage(char **argv);
extern void version(void);
extern void print_regulator_info(int verbose);
extern void dump_clock_info(int verbose);
-extern void dump_clock_info_recur(int verbose, char *clkdirpath);
+extern void read_clock_info(char *clkpath);
+extern struct clock_info *read_clock_info_recur(char *clkpath, int level, struct
+ clock_info *parent);
+extern void print_clock_info(struct clock_info *clk, int level, int bmp);
+extern void insert_children(struct clock_info **parent, struct clock_info *clk);
extern int read_and_print_clock_info(int verbose, int hrow, int selected);
extern int read_and_print_clock_one_level(int verbose, int hrow, int selected);
extern void get_sensor_info(char *path, char *name, char *sensor, int verbose);