blob: ebd501a46eeb0ede67e65179e4266a9b93ed7328 [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 Lezcanob301b082011-06-15 15:45:12 +020016struct display_ops {
17 int (*display)(void);
18 int (*select)(void);
19};
Daniel Lezcanod96731a2011-06-15 15:45:12 +020020
Daniel Lezcano971515a2011-06-15 15:45:12 +020021extern int display_print_line(int window, int line, char *str,
22 int bold, void *data);
23
24extern int display_refresh_pad(int window);
25extern int display_reset_cursor(int window);
26extern void *display_get_row_data(int window);
27
Daniel Lezcanob301b082011-06-15 15:45:12 +020028extern int display_init(int wdefault);
29extern int display_register(int win, struct display_ops *ops);
Daniel Lezcanod96731a2011-06-15 15:45:12 +020030extern int display_refresh(void);
Daniel Lezcano176e69d2011-06-15 15:45:12 +020031extern int display_keystroke(void *data);
Daniel Lezcano971515a2011-06-15 15:45:12 +020032
33/* FIXME */
34extern void print_sensor_header(void);
35extern void print_clock_header(void);
36extern void print_regulator_header(void);