blob: f9a762ca6ac97c1ed33ad339ebd659ebe644a19b [file] [log] [blame]
Amit Aroraed3e5652010-10-27 12:02:53 +05301/*******************************************************************************
Amit Kucheriac0e17fc2011-01-17 09:35:52 +02002 * Copyright (C) 2010, Linaro Limited.
Amit Aroraed3e5652010-10-27 12:02:53 +05303 *
4 * This file is part of PowerDebug.
5 *
6 * All rights reserved. This program and the accompanying materials
7 * are made available under the terms of the Eclipse Public License v1.0
8 * which accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
10 *
11 * Contributors:
12 * Amit Arora <amit.arora@linaro.org> (IBM Corporation)
13 * - initial API and implementation
14 *******************************************************************************/
15
Daniel Lezcano4120e262011-06-15 15:45:12 +020016enum { CLOCK, REGULATOR, SENSOR };
17
Daniel Lezcanob301b082011-06-15 15:45:12 +020018struct display_ops {
19 int (*display)(void);
20 int (*select)(void);
21};
Daniel Lezcanod96731a2011-06-15 15:45:12 +020022
Daniel Lezcano971515a2011-06-15 15:45:12 +020023extern int display_print_line(int window, int line, char *str,
24 int bold, void *data);
25
26extern int display_refresh_pad(int window);
27extern int display_reset_cursor(int window);
28extern void *display_get_row_data(int window);
29
Daniel Lezcanob301b082011-06-15 15:45:12 +020030extern int display_init(int wdefault);
31extern int display_register(int win, struct display_ops *ops);
Daniel Lezcanodb145802011-06-21 00:57:08 +020032extern int display_refresh(int win);
Daniel Lezcano372ffba2011-06-21 00:57:08 +020033extern int display_column_name(const char *line);