diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/fw/mips/jzsetup.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/ntos/fw/mips/jzsetup.h')
-rw-r--r-- | private/ntos/fw/mips/jzsetup.h | 154 |
1 files changed, 154 insertions, 0 deletions
diff --git a/private/ntos/fw/mips/jzsetup.h b/private/ntos/fw/mips/jzsetup.h new file mode 100644 index 000000000..a46711ce8 --- /dev/null +++ b/private/ntos/fw/mips/jzsetup.h @@ -0,0 +1,154 @@ +/*++ + +Copyright (c) 1991 Microsoft Corporation + +Module Name: + + jzsetup.h + +Abstract: + + This module contains the definitions for the Jazz setup program. + +Author: + + David M. Robinson (davidro) 25-Oct-1991 + +Revision History: + +--*/ + +#ifndef _JZSETUP_ +#define _JZSETUP_ + + +#include "fwp.h" +#include "jazzvdeo.h" +#include "jazzrtc.h" +#include "string.h" +#include "iodevice.h" +#include "jzstring.h" + +#define KeFlushWriteBuffer() + +#define MAX_NUMBER_OF_ENVIRONMENT_VARIABLES 20 + +#define EISA_NMI 0x70 + +extern PCHAR BootString[]; +extern ULONG ScsiHostId; + +typedef enum _BOOT_VARIABLES { + LoadIdentifierVariable, + SystemPartitionVariable, + OsLoaderVariable, + OsLoadPartitionVariable, + OsLoadFilenameVariable, + OsLoadOptionsVariable, + MaximumBootVariable + } BOOT_VARIABLE; + + +// +// Print macros. +// + +#define JzClearScreen() \ + JzPrint("%c2J", ASCII_CSI) + +#define JzSetScreenColor(FgColor, BgColor) \ + JzPrint("%c3%dm", ASCII_CSI, (UCHAR)FgColor); \ + JzPrint("%c4%dm", ASCII_CSI, (UCHAR)BgColor) + +#define JzSetScreenAttributes( HighIntensity, Underscored, ReverseVideo ) \ + JzPrint("%c0m", ASCII_CSI); \ + if (HighIntensity) { \ + JzPrint("%c1m", ASCII_CSI); \ + } \ + if (Underscored) { \ + JzPrint("%c4m", ASCII_CSI); \ + } \ + if (ReverseVideo) { \ + JzPrint("%c7m", ASCII_CSI); \ + } + +#define JzSetPosition( Row, Column ) \ + JzPrint("%c%d;%dH", ASCII_CSI, (Row + 1), (Column + 1)) + +#define JzStallExecution( Wait ) \ + { \ + ULONG HackStall; \ + for (HackStall = 0;HackStall < (Wait << 4);HackStall++) { \ + } \ + } + + + +// +// Routine prototypes. +// + +VOID +JzSetEthernet ( + VOID + ); + +VOID +JzSetTime ( + VOID + ); + +VOID +JzShowTime ( + BOOLEAN First + ); + +BOOLEAN +JzMakeDefaultConfiguration ( + VOID + ); + +VOID +JzMakeDefaultEnvironment ( + VOID + ); + +VOID +JzAddBootSelection ( + VOID + ); + +VOID +JzDeleteBootSelection ( + VOID + ); + +BOOLEAN +JzSetBootEnvironmentVariable ( + IN ULONG CurrentBootSelection + ); + +BOOLEAN +JzSetEnvironmentVariable ( + VOID + ); + +VOID +JzAddNetwork( + PCONFIGURATION_COMPONENT Parent + ); + +VOID +JzDeleteVariableSegment ( + PCHAR VariableName, + ULONG Selection + ); + +ULONG +JzGetSelection( + IN PCHAR Menu[], + IN ULONG NumberOfChoices, + IN ULONG DefaultChoice + ); + +#endif // _JZSETUP_ |