2020-09-08 20:25:44 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2008-03-20 01:11:05 +01:00
|
|
|
|
|
|
|
#ifndef COREINFO_H_
|
|
|
|
#define COREINFO_H_
|
|
|
|
|
|
|
|
#include <libpayload.h>
|
2008-03-31 22:30:18 +02:00
|
|
|
#include <config.h>
|
2008-03-20 01:11:05 +01:00
|
|
|
#include <curses.h>
|
|
|
|
|
|
|
|
struct coreinfo_module {
|
|
|
|
char name[15];
|
2008-03-20 02:11:28 +01:00
|
|
|
int (*init) (void);
|
|
|
|
int (*redraw) (WINDOW *);
|
|
|
|
int (*handle) (int);
|
2008-03-20 01:11:05 +01:00
|
|
|
};
|
|
|
|
|
2019-06-28 18:10:37 +02:00
|
|
|
extern void docpuid(uint32_t idx, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx);
|
2008-03-20 01:11:05 +01:00
|
|
|
|
2008-03-20 02:11:28 +01:00
|
|
|
void print_module_title(WINDOW *win, const char *title);
|
2008-03-20 01:11:05 +01:00
|
|
|
|
2015-11-14 18:16:58 +01:00
|
|
|
#define SCREEN_Y 25
|
|
|
|
#define SCREEN_X 80
|
|
|
|
|
2008-03-20 01:11:05 +01:00
|
|
|
#endif
|