blob: 03e59c9bb1ae5491466d2166871f1181a1c1f863 [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
Jacob Garber37bec0b2019-06-28 10:10:37 -060030extern void docpuid(uint32_t idx, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx);
Jordan Crouse7249f792008-03-20 00:11:05 +000031
Uwe Hermann3a406fe2008-03-20 01:11:28 +000032void print_module_title(WINDOW *win, const char *title);
Jordan Crouse7249f792008-03-20 00:11:05 +000033
Yasha Cherikovskyb7eb1712015-11-14 19:16:58 +020034#define SCREEN_Y 25
35#define SCREEN_X 80
36
Jordan Crouse7249f792008-03-20 00:11:05 +000037#endif