summaryrefslogtreecommitdiffstats
path: root/private/ntos/fw/mips/jzsetup.h
blob: a46711ce85a27301a5752b342da2ce1a37ed5e6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
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_