ReactOS  0.4.13-dev-464-g6b95727
hardware.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) 1998-2001 Klaus P. Gerlicher
4 
5 Module Name:
6 
7  hardwar.h
8 
9 Abstract:
10 
11  HEADER for hardware.c
12 
13 Environment:
14 
15  LINUX 2.2.X
16  Kernel mode only
17 
18 Author:
19 
20  Klaus P. Gerlicher
21 
22 Revision History:
23 
24  15-Nov-2000: general cleanup of source files
25 
26 Copyright notice:
27 
28  This file may be distributed under the terms of the GNU Public License.
29 
30 --*/
31 typedef struct tagWindow
32 {
36 }WINDOW,*PWINDOW;
37 
38 // pointer indirection table for output functions
39 typedef struct _OUTPUT_HANDLERS
40 {
43  void (*Flush) (void);
47  void (*PrintLogo) (BOOLEAN bShow);
48  void (*PrintCursor) (BOOLEAN bForce);
56 
57 // pointer indirection table for input functions
58 typedef struct _INPUT_HANDLERS
59 {
63 
66 
67 enum
68 {
74 };
75 
76 typedef enum _ETERMINALMODE
77 {
84 
86 
87 extern WINDOW wWindow[];
88 extern BOOLEAN bRev;
89 extern BOOLEAN bGrayed;
90 extern BOOLEAN bCursorEnabled;
91 
92 // install and remove handler
93 BOOLEAN ConsoleInit(void);
94 void ConsoleShutdown(void);
95 
96 // OUTPUT handler
97 void Print(USHORT Window,LPSTR p);
100 void Clear(USHORT window);
101 void PutChar(LPSTR p,ULONG x,ULONG y);
102 void ClrLine(ULONG line);
103 void ShowCursor(void);
104 void HideCursor(void);
108 void PrintLogo(BOOLEAN bShow);
109 void PrintCursor(BOOLEAN bForce);
110 void PrintGraf(ULONG x,ULONG y,UCHAR c);
111 void ScrollUp(USHORT Window);
112 void Home(USHORT Window);
113 void InvertLine(ULONG line);
114 void FillLine(ULONG line,UCHAR c);
115 void PrintTemplate(void);
116 void PrintCaption(void);
118 void SuspendPrintRingBuffer(BOOLEAN bSuspend);
119 void HatchLine(ULONG line);
120 void SaveGraphicsState(void);
121 void RestoreGraphicsState(void);
122 void SetWindowGeometry(PVOID pWindow);
123 
124 // INPUT handler
125 UCHAR GetKeyPolled(void);
126 void FlushKeyboardQueue(void);
127 
128 
129 BOOLEAN PrintRingBufferOffset(ULONG ulLines,ULONG ulOffset);
131 void PrintRingBuffer(ULONG ulLines);
134 void EmptyRingBuffer(void);
135 void CheckRingBuffer(void);
137 void ResetColor(void);
138 
141 
142 extern ULONG ulOutputLock;
143 
144 #define Acquire_Output_Lock() \
145 { \
146  save_flags(ulOutputLock); \
147  cli(); \
148 }
149 
150 #define Release_Output_Lock() \
151  restore_flags(ulOutputLock);
152 
153 #define NOT_IMPLEMENTED()
154 
155 extern USHORT usCaptionColor;
156 #define COLOR_CAPTION usCaptionColor
157 extern USHORT usCaptionText;
158 #define COLOR_TEXT usCaptionText
160 #define COLOR_FOREGROUND usForegroundColor
162 
163 #undef COLOR_BACKGROUND
164 #define COLOR_BACKGROUND usBackgroundColor
165 extern USHORT usHiLiteColor;
166 #define COLOR_HILITE usHiLiteColor
void(* PrintLogo)(BOOLEAN bShow)
Definition: hardware.h:47
void CheckRingBuffer(void)
Definition: hardware.c:133
void SetBackgroundColor(ECOLORS c)
Definition: hardware.c:590
void SuspendPrintRingBuffer(BOOLEAN bSuspend)
Definition: hardware.c:93
ETERMINALMODE eTerminalMode
Definition: hardware.c:56
USHORT usBackgroundColor
Definition: hardware.c:82
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
BOOLEAN bRev
Definition: hercules.c:53
struct _INPUT_HANDLERS INPUT_HANDLERS
void InvertLine(ULONG line)
Definition: hardware.c:642
void(* FlushKeyboardQueue)(void)
Definition: hardware.h:61
void RestoreGraphicsState(void)
Definition: hardware.c:906
USHORT usCaptionText
Definition: hardware.c:80
UCHAR GetKeyPolled(void)
Definition: hardware.c:926
enum _ETERMINALMODE ETERMINALMODE
void DisableScroll(USHORT Window)
Definition: hardware.c:543
ULONG ulOutputLock
Definition: hardware.c:76
void(* HideCursor)(void)
Definition: hardware.h:52
USHORT cy
Definition: hardware.h:33
struct _OUTPUT_HANDLERS OUTPUT_HANDLERS
void PrintCursor(BOOLEAN bForce)
Definition: hardware.c:788
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
void ConsoleShutdown(void)
Definition: hardware.c:1013
char * LPSTR
Definition: xmlstorage.h:182
void FlushKeyboardQueue(void)
Definition: hardware.c:935
void SetForegroundColor(ECOLORS c)
Definition: hardware.c:576
ULONG LinesInRingBuffer(void)
Definition: hardware.c:116
INPUT_HANDLERS ihandlers
Definition: hardware.c:66
void ScrollUp(USHORT Window)
Definition: hardware.c:672
void SaveGraphicsState(void)
Definition: hardware.c:897
void SetWindowGeometry(PVOID pWindow)
Definition: hardware.c:915
void(* SetBackgroundColor)(ECOLORS)
Definition: hardware.h:54
void EmptyRingBuffer(void)
Definition: hardware.c:104
void(* SetForegroundColor)(ECOLORS)
Definition: hardware.h:53
BOOLEAN ConsoleInit(void)
Definition: hardware.c:946
Definition: window.c:29
BOOLEAN bScrollDisabled
Definition: hardware.h:35
void ReplaceRingBufferCurrent(LPSTR s)
Definition: hardware.c:301
USHORT usHiLiteColor
Definition: hardware.c:83
struct tagWindow * PWINDOW
void PrintGraf(ULONG x, ULONG y, UCHAR c)
Definition: hardware.c:512
_ETERMINALMODE
Definition: hardware.h:76
BOOLEAN bGrayed
void(* ClrLine)(ULONG line)
Definition: hardware.h:44
void(* RestoreGraphicsState)(void)
Definition: hardware.h:50
unsigned char BOOLEAN
Definition: parser.c:48
struct _INPUT_HANDLERS * PINPUT_HANDLERS
struct _OUTPUT_HANDLERS * POUTPUT_HANDLERS
UCHAR(* GetKeyPolled)(void)
Definition: hardware.h:60
void ResetColor(void)
Definition: hardware.c:500
void(* PrintGraf)(ULONG x, ULONG y, UCHAR c)
Definition: hardware.h:42
BOOLEAN AddToRingBuffer(LPSTR p)
Definition: hardware.c:154
void PrintLogo(BOOLEAN bShow)
Definition: hardware.c:778
void(* PrintCursor)(BOOLEAN bForce)
Definition: hardware.h:48
const GLubyte * c
Definition: glext.h:8905
void(* ShowCursor)(void)
Definition: hardware.h:51
enum _ECOLORS ECOLORS
void CopyLineTo(USHORT dest, USHORT src)
Definition: hardware.c:632
USHORT usCaptionColor
Definition: hardware.c:79
BOOLEAN bCursorEnabled
Definition: hardware.c:51
BOOLEAN PrintRingBufferOffset(ULONG ulLines, ULONG ulOffset)
Definition: hardware.c:378
unsigned char UCHAR
Definition: xmlstorage.h:181
char line[200]
Definition: main.c:97
void Clear(USHORT window)
Definition: hardware.c:705
void ClrLine(ULONG line)
Definition: hardware.c:662
USHORT y
Definition: hardware.h:33
void HideCursor(void)
Definition: hardware.c:566
GLdouble s
Definition: gl.h:2039
void(* Flush)(void)
Definition: hardware.h:43
void(* SaveGraphicsState)(void)
Definition: hardware.h:49
void EnableScroll(USHORT Window)
Definition: hardware.c:532
GLenum src
Definition: glext.h:6340
static IHTMLWindow2 * window
Definition: events.c:77
void(* HatchLine)(ULONG line)
Definition: hardware.h:46
BOOLEAN PrintRingBufferHome(ULONG ulLines)
Definition: hardware.c:447
void FillLine(ULONG line, UCHAR c)
ULONG GLOBAL_SCREEN_WIDTH
Definition: hardware.c:62
unsigned short USHORT
Definition: pedump.c:61
USHORT usCurX
Definition: hardware.h:34
void PrintCaption(void)
Definition: hardware.c:721
WINDOW wWindow[]
Definition: hardware.c:59
USHORT usCurY
Definition: hardware.h:34
void(* CopyLineTo)(USHORT dest, USHORT src)
Definition: hardware.h:41
struct tagWindow WINDOW
void ShowCursor(void)
Definition: hardware.c:556
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
void(* InvertLine)(ULONG line)
Definition: hardware.h:45
USHORT usForegroundColor
Definition: hardware.c:81
void HatchLine(ULONG line)
Definition: hardware.c:652
OUTPUT_HANDLERS ohandlers
Definition: hardware.c:65
#define c
Definition: ke_i.h:80
unsigned int ULONG
Definition: retypes.h:1
void Print(USHORT Window, LPSTR p)
Definition: hardware.c:797
void ClrLineToEnd(USHORT Window, ULONG line, ULONG x)
static char * dest
Definition: rtl.c:135
void PrintTemplate(void)
Definition: hardware.c:741
void PrintRingBuffer(ULONG ulLines)
Definition: hardware.c:315
GLfloat GLfloat p
Definition: glext.h:8902
ULONG GLOBAL_SCREEN_HEIGHT
Definition: hardware.c:62
void PutChar(LPSTR p, ULONG x, ULONG y)
Definition: hardware.c:604
void Home(USHORT Window)
Definition: hardware.c:693