blob: 6362a481767021a68176ca2d17a8c4eccc18afdc [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 Lezcano269de4f2011-08-25 15:46:13 +020016enum { CLOCK, REGULATOR, SENSOR, GPIO };
Daniel Lezcano4120e262011-06-15 15:45:12 +020017
Daniel Lezcanob301b082011-06-15 15:45:12 +020018struct display_ops {
Daniel Lezcanod577aaa2011-06-21 00:57:08 +020019 int (*display)(bool refresh);
Daniel Lezcanob301b082011-06-15 15:45:12 +020020 int (*select)(void);
Daniel Lezcanoa12163d2011-06-21 00:57:08 +020021 int (*find)(const char *);
Daniel Lezcano73b40022011-06-21 00:57:08 +020022 int (*selectf)(void);
Daniel Lezcanob301b082011-06-15 15:45:12 +020023};
Daniel Lezcanod96731a2011-06-15 15:45:12 +020024
Daniel Lezcano971515a2011-06-15 15:45:12 +020025extern int display_print_line(int window, int line, char *str,
26 int bold, void *data);
27
28extern int display_refresh_pad(int window);
29extern int display_reset_cursor(int window);
30extern void *display_get_row_data(int window);
31
Daniel Lezcanob301b082011-06-15 15:45:12 +020032extern int display_init(int wdefault);
33extern int display_register(int win, struct display_ops *ops);
Daniel Lezcano372ffba2011-06-21 00:57:08 +020034extern int display_column_name(const char *line);
Nishanth Menon962d1c42011-09-20 11:31:17 +020035
36#define NAME_MAX 255