source: bootcd/isolinux/syslinux-6.03/com32/hdt/hdt-menu.h

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 4.6 KB
Line 
1/* ----------------------------------------------------------------------- *
2 *
3 *   Copyright 2009 Erwan Velu - All Rights Reserved
4 *
5 *   Permission is hereby granted, free of charge, to any person
6 *   obtaining a copy of this software and associated documentation
7 *   files (the "Software"), to deal in the Software without
8 *   restriction, including without limitation the rights to use,
9 *   copy, modify, merge, publish, distribute, sublicense, and/or
10 *   sell copies of the Software, and to permit persons to whom
11 *   the Software is furnished to do so, subject to the following
12 *   conditions:
13 *
14 *   The above copyright notice and this permission notice shall
15 *   be included in all copies or substantial portions of the Software.
16 *
17 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19 *   OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 *   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21 *   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22 *   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 *   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24 *   OTHER DEALINGS IN THE SOFTWARE.
25 *
26 * -----------------------------------------------------------------------
27 */
28
29#ifndef DEFINE_HDT_MENU_H
30#define DEFINE_HDT_MENU_H
31#include <stdio.h>
32#include <getkey.h>
33
34#include "menu.h"
35#include "help.h"
36//#include "cpuid.h"
37#include "sys/pci.h"
38#include "hdt-common.h"
39#include "dmi/dmi.h"
40#include "hdt-ata.h"
41
42#define EDITPROMPT 21
43
44#define SUBMENULEN 46
45
46#define SUBMENU_Y 3
47#define SUBMENU_X 29
48
49#define MAX_PCI_SUB_MENU 128
50#define MAX_MEMORY_SUB_MENU 32
51#define MAX_DISK_SUB_MENU 32
52
53struct s_my_menu {
54    unsigned char menu;
55    int items_count;
56};
57
58struct s_hdt_menu {
59    struct s_my_menu main_menu;
60    struct s_my_menu cpu_menu;
61    struct s_my_menu mobo_menu;
62    struct s_my_menu chassis_menu;
63    struct s_my_menu bios_menu;
64    struct s_my_menu ipmi_menu;
65    struct s_my_menu system_menu;
66    struct s_my_menu pci_menu;
67    struct s_my_menu pci_sub_menu[MAX_PCI_SUB_MENU];
68    struct s_my_menu kernel_menu;
69    struct s_my_menu memory_menu;
70    struct s_my_menu memory_sub_menu[MAX_MEMORY_SUB_MENU];
71    struct s_my_menu disk_menu;
72    struct s_my_menu disk_sub_menu[MAX_DISK_SUB_MENU];
73    struct s_my_menu battery_menu;
74    struct s_my_menu syslinux_menu;
75    struct s_my_menu about_menu;
76    struct s_my_menu summary_menu;
77    struct s_my_menu pxe_menu;
78    struct s_my_menu vesa_menu;
79    struct s_my_menu vesa_card_menu;
80    struct s_my_menu vesa_modes_menu;
81    struct s_my_menu vpd_menu;
82    struct s_my_menu acpi_menu;
83    struct s_my_menu acpi_apic_menu;
84    struct s_my_menu acpi_tables_menu;
85    int total_menu_count;       // Sum of all menus we have
86};
87
88TIMEOUTCODE ontimeout(void);
89void keys_handler(t_menusystem * ms
90                  __attribute__ ((unused)), t_menuitem * mi, int scancode);
91
92// PCI Stuff
93int compute_PCI(struct s_hdt_menu *hdt_menu, struct s_hardware *hardware);
94
95// KERNEL Stuff
96void compute_kernel(struct s_my_menu *menu, struct s_hardware *hardware);
97
98// Disk Stuff
99void compute_disks(struct s_hdt_menu *menu, struct s_hardware *hardware);
100
101// DMI Stuff
102void compute_motherboard(struct s_my_menu *menu, s_dmi * dmi);
103void compute_battery(struct s_my_menu *menu, s_dmi * dmi);
104void compute_system(struct s_my_menu *menu, s_dmi * dmi);
105void compute_chassis(struct s_my_menu *menu, s_dmi * dmi);
106void compute_bios(struct s_my_menu *menu, s_dmi * dmi);
107void compute_memory(struct s_hdt_menu *menu, s_dmi * dmi,
108                    struct s_hardware *hardware);
109void compute_ipmi(struct s_my_menu *menu, s_dmi * dmi);
110
111// VPD Stuff
112void compute_vpd(struct s_my_menu *menu, struct s_hardware *hardware);
113
114// Processor Stuff
115void compute_processor(struct s_my_menu *menu, struct s_hardware *hardware);
116
117// Syslinux stuff
118void compute_syslinuxmenu(struct s_my_menu *menu, struct s_hardware *hardware);
119
120// About menu
121void compute_aboutmenu(struct s_my_menu *menu);
122
123// Summary menu
124void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware);
125
126// PXE menu
127void compute_PXE(struct s_my_menu *menu, struct s_hardware *hardware);
128
129//VESA menu
130int compute_VESA(struct s_hdt_menu *hdt_menu, struct s_hardware *hardware);
131
132// ACPI menu
133int compute_ACPI(struct s_hdt_menu *hdt_menu, struct s_hardware *hardware);
134
135int start_menu_mode(struct s_hardware *hardware, char *version_string);
136void setup_menu(char *version);
137void compute_main_menu(struct s_hdt_menu *hdt_menu,
138                       struct s_hardware *hardware);
139void compute_submenus(struct s_hdt_menu *hdt_menu, struct s_hardware *hardware);
140#endif
Note: See TracBrowser for help on using the repository browser.