blob: 073c5f9a87ca12c7cbe0afb3c020a52dd2bb6745 [file] [log] [blame]
Jordan Crouse7249f792008-03-20 00:11:05 +00001/*
2 * This file is part of the coreinfo project.
3 *
4 * Copyright (C) 2008 Advanced Micro Devices, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Jordan Crouse7249f792008-03-20 00:11:05 +000014 */
15
16#ifndef COREINFO_H_
17#define COREINFO_H_
18
19#include <libpayload.h>
Uwe Hermannab5b3e02008-03-31 20:30:18 +000020#include <config.h>
Jordan Crouse7249f792008-03-20 00:11:05 +000021#include <curses.h>
22
23struct coreinfo_module {
24 char name[15];
Uwe Hermann3a406fe2008-03-20 01:11:28 +000025 int (*init) (void);
26 int (*redraw) (WINDOW *);
27 int (*handle) (int);
Jordan Crouse7249f792008-03-20 00:11:05 +000028};
29
Uwe Hermann3a406fe2008-03-20 01:11:28 +000030extern void docpuid(int, unsigned long *, unsigned long *, unsigned long *,
31 unsigned long *);
Jordan Crouse7249f792008-03-20 00:11:05 +000032
Uwe Hermann3a406fe2008-03-20 01:11:28 +000033void print_module_title(WINDOW *win, const char *title);
Jordan Crouse7249f792008-03-20 00:11:05 +000034
Yasha Cherikovskyb7eb1712015-11-14 19:16:58 +020035#define SCREEN_Y 25
36#define SCREEN_X 80
37
Jordan Crouse7249f792008-03-20 00:11:05 +000038#endif