blob: 7e6b199ac31749d2aa76a30237e5999c5ef3483f [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 Lezcano971515a2011-06-15 15:45:12 +020016#define TOTAL_FEATURE_WINS 3 /* Regulator, Clock and Sensor (for now) */
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 Lezcanod96731a2011-06-15 15:45:12 +020032extern int display_next_panel(void);
33extern int display_prev_panel(void);
34extern int display_next_line(void);
35extern int display_prev_line(void);
36extern int display_refresh(void);
Daniel Lezcano971515a2011-06-15 15:45:12 +020037extern int display_select(void);
38
39/* FIXME */
40extern void print_sensor_header(void);
41extern void print_clock_header(void);
42extern void print_regulator_header(void);