blob: 004a5e96634407be1e60c9a74a6734d8495aeb37 [file] [log] [blame]
Jordan Crouse7249f792008-03-20 00:11:05 +00001/*
Jordan Crouse7249f792008-03-20 00:11:05 +00002 *
3 * Copyright (C) 2008 Advanced Micro Devices, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
Jordan Crouse7249f792008-03-20 00:11:05 +000013 */
14
15#ifndef COREINFO_H_
16#define COREINFO_H_
17
18#include <libpayload.h>
Uwe Hermannab5b3e02008-03-31 20:30:18 +000019#include <config.h>
Jordan Crouse7249f792008-03-20 00:11:05 +000020#include <curses.h>
21
22struct coreinfo_module {
23 char name[15];
Uwe Hermann3a406fe2008-03-20 01:11:28 +000024 int (*init) (void);
25 int (*redraw) (WINDOW *);
26 int (*handle) (int);
Jordan Crouse7249f792008-03-20 00:11:05 +000027};
28
Jacob Garber37bec0b2019-06-28 10:10:37 -060029extern void docpuid(uint32_t idx, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx);
Jordan Crouse7249f792008-03-20 00:11:05 +000030
Uwe Hermann3a406fe2008-03-20 01:11:28 +000031void print_module_title(WINDOW *win, const char *title);
Jordan Crouse7249f792008-03-20 00:11:05 +000032
Yasha Cherikovskyb7eb1712015-11-14 19:16:58 +020033#define SCREEN_Y 25
34#define SCREEN_X 80
35
Jordan Crouse7249f792008-03-20 00:11:05 +000036#endif