Chameleon

Chameleon Commit Details

Date:2011-06-24 02:39:04 (12 years 9 months ago)
Author:Azimutz
Commit:1042
Parents: 1041
Message:Start cleaning boot.h...
Changes:
M/branches/azimutz/Chazi/i386/boot2/boot.h

File differences

branches/azimutz/Chazi/i386/boot2/boot.h
2929
3030
3131
32
33
34
35
36
3732
3833
3934
......
5550
5651
5752
58
59
60
53
54
55
6156
6257
6358
64
59
60
61
62
6563
6664
6765
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
6890
6991
7092
7193
72
7394
7495
7596
......
110131
111132
112133
113
114
115
116
117
118
119
120134
121135
122
136
123137
124138
125139
......
128142
129143
130144
131
145
132146
133147
134148
......
162176
163177
164178
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180179
181180
182181
#ifndef __BOOT2_BOOT_H
#define __BOOT2_BOOT_H
//Azi:
// Todo: don't include headers like boot.h on other headers, unless...!
// move keys to the headers of the files they're in, if they have it!?
// check header wrappers...
//#include "saio_internal.h" // the only one needed by boot.h it self.
#include "bootstruct.h"
/*
* Undeclared (or undeclared here)
*/
/*
"-checkers" gui.c, getValFK;
"ProductVersion" - options.c (boot.c on trunk) - getValFK
"biosdev" mboot.c, getValFBK
"timeout" mboot.c, getValFBK
"partno" mboot.c, getValFBK
"DumpSPD" spd.c, getBollFK
"-checkers" gui.c, getValFK;
"DumpSPD" spd.c, getBollFK - seems unsed***
*/
/*
* gone to modules:
//#define kGraphicsEnablerKey"GraphicsEnabler"// GraphicsEnabler.cgetBoolFK
//#define kUseAtiROMKey"UseAtiROM"// ati.cgetBoolFK ?? modules
//#define kAtiConfigKey"AtiConfig"// ati.cgetStringFK
//#define kATYbinimageKey"ATYbinimage"// ati.cgetBoolFK
//#define kUseNvidiaROMKey"UseNvidiaROM"// nvidia.cgetBoolFK
//#define kVBIOSKey"VBIOS"// nvidia.cgetBoolFK
//#define kUseMemDetectKey"UseMemDetect"// platform.cgetBoolFK
*/
/*
separate into:
- internal use (change these to "blablabla")
- kernel & booter flags/arguments
- no good at boot prompt
- good at boot prompt
- booter options/patches
*/
/*
* Keys used in system Boot.plist - these end with "Key".
*/
//identifier string locationtypecomment
#define kTextModeKey "Text Mode" // graphics.cgetNumberArraiFP- default 80x25 - kFlag - does it work??
//#define kProductVersionKey "ProductVersion" // options.cgetValFK- (boot.c on trunk) - reverted
#define kDefaultPartitionKey "Default Partition" // sys.cgetStringFK
#define kHidePartitionKey "Hide Partition" // disk.cgetValFK
#define kWakeKey "Wake" // boot.cgetBoolFK
#define kForceWakeKey "ForceWake" // boot.cgetBoolFK
#define kWakeKeyImageKey "WakeImage" // boot.cgetValFK- location???
//#define kUseAtiROMKey "UseAtiROM" // ati.cgetBoolFK ?? modules
//#define kAtiConfigKey "AtiConfig" // ati.cgetStringFK
//#define kATYbinimageKey "ATYbinimage" // ati.cgetBoolFK
//#define kUseNvidiaROMKey "UseNvidiaROM" // nvidia.cgetBoolFK
//#define kVBIOSKey "VBIOS" // nvidia.cgetBoolFK
#define kGraphicsModeKey "Graphics Mode" // graphics.cgetNumberArraiFP- kFlag
#define kAutoResolutionKey "AutoResolution" // boot.cgetBoolFK
//#define kGraphicsEnablerKey "GraphicsEnabler" // GraphicsEnabler.cgetBoolFK
#define kDSDTKey "DSDT" // acpi_patcher.cgetValFK
#define kDropSSDTKey "DropSSDT" // acpi_patcher.cgetBoolFK
#define kRestartFixKey "RestartFix" // acpi_patcher.cgetBoolFK- revert to true?
#define kEnableC2StatesKey "EnableC2State" // acpi_patcher.cgetBoolFK
#define kEnableC3StatesKey "EnableC3State" // acpi_patcher.cgetBoolFK
#define kEnableC4StatesKey "EnableC4State" // acpi_patcher.cgetBoolFK
//#define kUseMemDetectKey "UseMemDetect" // platform.cgetBoolFK
#define kSMBIOSdefaultsKey "SMBIOSdefaults" // smbios_patcher.cgetBoolFK
#define kSMBIOSKey "SMBIOS" // fake_efi.cgetValFK
//Azi: should this be changed to "SystemID"? BootHelp.txt matches SystemId
#define kBootTimeout -1
#define kCDBootTimeout 8
//Azi: place ?? Well, somehow this change of place seemd a good idea
// to me at the time; if i just remembered why ??? - check in what files are these used!***
enum {
kBackspaceKey = 0x08,
kTabKey = 0x09,
kReturnKey = 0x0d,
kEscapeKey = 0x1b,
kUpArrowkey = 0x4800,
kDownArrowkey = 0x5000,
kASCIIKeyMask = 0x7f,
kF2Key = 0x3c00, //Azi:autoresolution
kF5Key = 0x3f00,
kF10Key = 0x4400
};
/*
* A global set by boot() to record the device that the booter
* was loaded from.

Archive Download the corresponding diff file

Revision: 1042